US Crop Statistics
official annual survey estimates for a US crop, nationally or for one state: yield, production, area planted or harvested, or price received, one series per class (e.g. corn for grain and for silage), newest year first.
GET
/api/v1/food/us/cropsAlso included in Commodity 360, Farm 360 , which joins it with 6 other APIs in one call.
Query parameters
| Parameter | Description | Try value |
|---|---|---|
commoditystring required | Crop name: CORN, SOYBEANS, WHEAT, COTTON, RICE, SORGHUM, BARLEY, OATS… | |
statstring | yield (default), production, area-planted, area-harvested or price-received | |
statestring | Two-letter state code (default: US total) | |
yearsnumber | Years of history (default 10, max 30) | |
apikeystring required | Your API key. Can also be sent as the X-API-Key header. | demo key used here |
Response envelope
Success: { data, meta: { fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504. Add format= for JSON Lines, CSV, TSV, Excel, XML or YAML (how it works).