API Reference
Base URL: https://krishiji.com/api/v1/public
Authentication
All requests must include an API key in the Authorization header:
Authorization: Bearer kj_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Generate a key from your dashboard after your partner application is approved.
Errors & rate limits
401missing or invalid API key403partner not approved or suspended404resource not found429rate limit exceeded (Free: 60/min, Pro: 600/min). IncludesRetry-Afterheader.
Response envelope
{
"data": [...],
"meta": { "page": 1, "per_page": 25, "total": 412, "last_page": 17 },
"links": {
"self": "...?page=1",
"next": "...?page=2",
"prev": null
}
}
Products
/api/v1/public/products
List marketplace products. Filters: category, state, organic.
curl -H 'Authorization: Bearer kj_live_XXXX' \ 'https://example.com/api/v1/public/products?category=Grains&state=Punjab&page=1'
/api/v1/public/products/{id}
Get one product by id.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/products/123
Sellers
/api/v1/public/sellers
List active sellers (tenants). Filters: state, business_type.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/sellers
/api/v1/public/sellers/{id}
Get one seller by id.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/sellers/42
Mandi
/api/v1/public/mandi-prices
Daily mandi prices. Filters: commodity, state, mandi, date (YYYY-MM-DD).
curl -H 'Authorization: Bearer kj_live_XXXX' \ 'https://example.com/api/v1/public/mandi-prices?commodity=Wheat&state=Madhya%20Pradesh'
Commodities
/api/v1/public/commodities
Master list of supported commodities.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/commodities
Schemes
/api/v1/public/schemes
Government schemes. Filters: level, featured.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/schemes?featured=true
/api/v1/public/schemes/{slug}
Get a scheme by slug.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/schemes/pm-kisan
Weather
/api/v1/public/weather/{state}/{city}
Current weather + 5-day forecast.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/weather/Punjab/Ludhiana
Metadata
/api/v1/public/meta/states
List of state names known to the platform.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/meta/states
/api/v1/public/meta/categories
List of product categories.
curl -H 'Authorization: Bearer kj_live_XXXX' \ https://example.com/api/v1/public/meta/categories