Wholesale prices API (/v1/agri)
Daily wholesale prices from Punjab's mandis (the Punjab AMIS) and Sindh's (the Sindh AMIS). About the data: Wholesale (mandi) prices.
#GET /v1/agri/markets · public
Every market, with market_id, name (readable, e.g. "Rahim Yar Khan"; name_raw is the publisher's spelling), slug, is_major (updated every evening), province (the provincial list that reports it), region (where the market is: Punjab's daily report also covers Karachi, Hyderabad, Quetta and Gwadar), district and the dates it has prices for. ?province=Punjab or ?province=Sindh lists one province.
#GET /v1/agri/commodities · public
Every commodity, with commodity_id, name (English; urdu_name holds the Urdu name where the publisher gives one, name_raw the publisher's text), slug, crop, category (Grains, Vegetables, Fruits), unit and province. crop ties the provinces together: Sindh's graded varieties carry the slug of the Punjab commodity of the same crop (sindh_onion_grade_1 → crop: "onion"); a commodity with no counterpart carries its own slug. Punjab prices are pkr_per_100kg (pkr_per_dozen for bananas); Sindh's are pkr_per_kg (pkr_per_dozen for bananas). Sindh ids are above 900000 and its slugs start sindh_ (e.g. sindh_potato_grade_1, market sindh_karachi). ?province= filters.
#GET /v1/agri/prices 🔑
A commodity's daily prices in one market, or in every market if you leave market out.
| Param | Notes |
|---|---|
commodity |
Required. AMIS id or slug, e.g. onion, 1 (wheat) |
market |
AMIS id or slug, e.g. lahore. Leave it out for every market |
from, to |
Date range (YYYY-MM-DD). Clamped to your plan's history window |
limit |
1–10000 (default 1000) |
sort |
desc (default) or asc |
format |
json or csv |
{
"success": true,
"commodity": { "commodity_id": 1, "name": "Wheat", "slug": "wheat", "category": "Grains", "unit": "pkr_per_100kg" },
"market": { "market_id": 2, "name": "Faisalabad", "slug": "faisalabad" },
"source": "AMIS Punjab (Directorate of Agriculture, Economics & Marketing)",
"data": [
{ "date": "2026-10-05", "market": "Faisalabad", "market_id": 2, "commodity": "Wheat", "commodity_id": 1,
"min": 11500.0, "max": 12000.0, "fqp": 11750.0, "quantity": null, "unit": "pkr_per_100kg" }
],
"count": 1
}
fqp is the fair-quality price, the representative one. min and max are the day's range; for dates before October 2026 they are null, because the history carries the fair-quality price only. Every row also carries fqp_per_kg (Rs per kg, from per-100-kg or per-kg prices; null for dozen-priced fruit), plus province, region, market_slug and commodity_slug.
#GET /v1/agri/latest 🔑
The most recent price (within the last 30 days) for each market and commodity — built for a "today's mandi rates" table. Pass one or both filters:
| Param | Returns |
|---|---|
commodity |
that commodity's latest price in every market that reported it |
market |
every commodity's latest price in that market |
crop |
every commodity of that crop in both provinces — Punjab's commodity and Sindh's graded varieties |
province |
with crop: Punjab or Sindh only |
| combinations | e.g. crop + market, or commodity + market |
format |
json or csv |
curl -H "X-API-Key: pk_live_xxx" "https://api.pakdatahub.com/v1/agri/latest?crop=onion"
{
"success": true,
"crop": "onion",
"sources": { "Punjab": "AMIS Punjab (Directorate of Agriculture, Economics & Marketing)",
"Sindh": "Sindh Agricultural Market Intelligence (Sindh Agriculture Department)" },
"data": [
{ "date": "2026-10-15", "market": "Lahore", "market_id": 1, "market_slug": "lahore", "region": "Punjab",
"commodity": "Onion", "commodity_id": 23, "commodity_slug": "onion", "province": "Punjab",
"min": 17000.0, "max": 18000.0, "fqp": 17500.0, "quantity": null, "unit": "pkr_per_100kg", "fqp_per_kg": 175.0 },
{ "date": "2026-10-16", "market": "Karachi", "market_id": 900007, "market_slug": "sindh_karachi", "region": "Sindh",
"commodity": "Onion, Grade 1", "commodity_id": 900159, "commodity_slug": "sindh_onion_grade_1", "province": "Sindh",
"min": null, "max": null, "fqp": 173.0, "quantity": null, "unit": "pkr_per_kg", "fqp_per_kg": 173.0 }
],
"count": 143
}
Passing none of commodity, market or crop returns 422. The same data is on the site, free, in Rs per kg: today's mandi rates in any market of either province, and a page per crop covering both provinces (e.g. /mandi/onion).
#Errors
404 for an unknown commodity or market, 401 without a key, 422 for a bad parameter. Same envelope as the rest of the API (errors).