Resources · API
Build on top of
Build on top of
CROPGEM.
A simple REST API for crop data, live market prices, and AI disease detection. JSON in, JSON out.
Authentication
All requests are made from an authenticated session, or with an API key for server-to-server use.
Include your API key as a bearer token on every request.
curl https://api.cropgem.app/v1/market-prices \
-H "Authorization: Bearer YOUR_API_KEY"
Endpoints
Core resources available today.
GET/api/crops
List all crops for the authenticated farmer.
{
"success": true,
"crops": [
{ "id": "c_1", "name": "Tomato", "variety": "Hybrid 4", "stage": "Flowering" }
]
}
GET/api/market-prices
Fetch live mandi prices, filterable by state, district, market, and commodity.
{
"success": true,
"prices": [
{ "market": "Cuttack", "commodity": "Paddy", "modal_price": 2340 }
]
}
POST/api/disease-detection
Upload a leaf image and receive an AI diagnosis with confidence score and treatment steps.
{
"success": true,
"result": {
"disease": "Late Blight",
"confidence": 0.96,
"treatment": ["Remove infected leaves", "Apply fungicide"]
}
}