API reference/Agriculture & Food/Agriculture Rankings

Agriculture Rankings

Rank countries by cereal yield, fertilizer use, farm share of GDP and other agriculture indicators.

GET/api/v1/food/rankings

Data source

Query parameters

ParameterDescriptionTry value
indicator
string
cereal-yield (default), cereal-production, fertilizer-use, arable-land, agriculture-share-gdp, undernourishment, …
order
string
desc (default) or asc
limit
number
Rows (default 20)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.