Launch Countdown
00Days
:
00Hours
:
00Min
:
00Sec
Back to Home
CropCare Logo

CropCare

CropCare API Documentation

Integrate powerful crop disease detection capabilities directly into your applications and systems.

Getting Started

Our REST API provides programmatic access to our crop disease detection engine. Get started in minutes with comprehensive documentation and code examples.

Fast Processing

Get crop disease detection results in under 2 seconds with our optimized cloud infrastructure.

Secure Authentication

Industry-standard API key authentication with rate limiting and usage monitoring.

Comprehensive Documentation

Complete API documentation with code examples in multiple programming languages.

99.9% Uptime

Reliable cloud infrastructure with global CDN and automatic failover capabilities.

Data Privacy

Your images are processed securely and not stored on our servers unless explicitly requested.

RESTful Design

Clean, intuitive REST API design that follows industry best practices and standards.

Quick Start Examples

cURL Example

curl -X POST https://api.cropcare.hamez.dev/v1/analyze \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "image=@crop_leaf.jpg" \
  -F "crop_type=tomato"

Python Example

import requests

url = "https://api.cropcare.hamez.dev/v1/analyze"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}
files = {
    "image": open("crop_leaf.jpg", "rb"),
    "crop_type": (None, "tomato")
}

response = requests.post(url, headers=headers, files=files)
result = response.json()

JavaScript Example

const formData = new FormData();
formData.append('image', fileInput.files[0]);
formData.append('crop_type', 'tomato');

fetch('https://api.cropcare.hamez.dev/v1/analyze', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: formData
})
.then(response => response.json())
.then(data => console.log(data));

Response Example

{
  "status": "success",
  "analysis": {
    "disease_detected": true,
    "disease_name": "Late Blight",
    "confidence": 0.94,
    "severity": "moderate",
    "treatment_recommendations": [
      "Apply copper-based fungicide",
      "Improve air circulation",
      "Reduce watering frequency"
    ],
    "prevention_tips": [
      "Plant resistant varieties",
      "Ensure proper spacing"
    ]
  }
}

API Pricing

Pay only for what you use with our transparent pricing model.

Developer Support

First 1,000 requests/month: Free
1,001 - 10,000 requests: $0.10 per request
10,000+ requests: $0.05 per request

Developer Support

Need help integrating? Our developer support team is here to help you get up and running quickly.