Corn Yield Data JSON

Use the USDA NASS county crop yields cache to query annual county-level corn yield data from static JSON files served by jsDelivr.

Point lookup

Fetch the discovery index, then fetch the county/crop leaf for corn. Read the series marked with "canonical": true.

GET https://cdn.jsdelivr.net/gh/ProductOfAmerica/usda-county-yields@main/data/index.json
GET https://cdn.jsdelivr.net/gh/ProductOfAmerica/usda-county-yields@main/data/states/19/counties/169/corn.json

Example: Story County, Iowa corn yield 2024

curl -s "https://cdn.jsdelivr.net/gh/ProductOfAmerica/usda-county-yields@main/data/states/19/counties/169/corn.json" \
  | jq '.series[] | select(.canonical) | .values["2024"]'
# 215.5

Batch query

For all Iowa counties in one corn request, use the state/crop rollup.

GET https://cdn.jsdelivr.net/gh/ProductOfAmerica/usda-county-yields@main/data/states/19/crops/corn.json