Official grain, pulse and spice price API in USD/MT
One API for official prices published by national ministries and agencies, normalised to USD per metric ton, with market type, original price and unit, FX rate and citation on every row. JSON or CSV.
Live today: 2,559 commercially licensed series from 45 countries and 38 official sources.
For procurement teams, traders, importers and exporters who need sourced official prices inside their ERP, BI or cost model.
No FAO or WFP data: their licence is free-use only, so they are never included in the API or paid downloads.
Included in the Business plan (10,000 calls/month) and the API plan (100,000 calls/month).
See API plans GET /api/v1/catalog
Quick start
curl -H "Authorization: Bearer gh_..." \ "https://grainhub-mx.vercel.app/api/v1/origins?c=garbanzo&type=wholesale&format=csv"
Fields per row (origins)
group, commodity, family, country, market, market_type, usd_per_metric_tonne, original_amount, original_currency, original_unit, as_of, fx_date, fx_rate, source, source_url, citation, quality_class, quality_label, quality_ranked, cadence, fetched_at, licence, license_url
Available on the Business plan (10,000 calls/month) and the API plan (100,000 calls/month). Authenticate with your license key (starts with gh_) in the Authorization header. New: GET /api/v1/origins?c=ajonjoli&type=wholesale&format=csv returns the multi-origin compilation in USD/t with market type, original price and unit, FX and citation per row (no FAO data).
Rice quality classes (new, additive fields)
quality_class, quality_label and quality_ranked are appended to every row (JSON) and as the last columns (CSV); no existing field changed and family is still the published name. For rice, quality_class is built only from what the official source publishes: a form (paddy, milled, brown, parboiled or unstated) plus dot-separated attributes. If the source states no attribute, the value is unclassified or <form>.nograde and quality_ranked is false: do not compare or rank it against other series. For non-rice products all three fields are null.
type: glutinous, basmati, fragrant, irri, japonica, indica, coarse, brewers, second-heads, fancy, gkp, gkg · broken: b100, b5, b15, b25, broken · grain: long, medium, short, medium-short, round, wide · grade: first, second, low, well-milled, regular-milled
{ "group": "arroz", "commodity": "Arroz oro, blanco de primera (Quintal)", "family": "Arroz", "market_type": "wholesale",
"quality_class": "milled.first", "quality_label": "Milled white rice · first / top quality", "quality_ranked": true, ... }GET /api/v1/world-catalog
World catalog (free, no key): inputs, origins, market types, freshness and each source’s licence.
curl https://grainhub-mx.vercel.app/api/v1/world-catalog
GET /api/v1/catalog
Products and markets (ids, names, slugs). Public.
curl https://grainhub-mx.vercel.app/api/v1/catalog
GET /api/v1/prices
Parameters: product (id or slug, required), market (id or slug, optional), from / to (YYYY-MM-DD), format=json|csv, history=1 (adds 1998–2022 monthly-view history).
curl -H "Authorization: Bearer gh_..." \ "https://grainhub-mx.vercel.app/api/v1/prices?product=garbanzo-chico&market=central-abasto-iztapalapa-cdmx&from=2026-01-01"
Response: rows = [week, marketId, origin, min, max, mostFrequent, notes]. Header X-RateLimit-Remaining.
Cite the source: SNIIM, Secretaría de Economía.