USDA Crop & Livestock Statistics

USDA crop, livestock and farm statistics from NASS Quick Stats: one record per published figure, with year, period, state, county, commodity, data item, unit, value and coefficient of variation, from the surveys and the Census of Agriculture.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 23 fieldsv1.0

Data from quickstats.nass.usda.gov

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Commodity
Crop, animal or product as USDA names it, such as CORN, SOYBEANS, WHEAT, CATTLE, HOGS or MILK. Upper or lower case.
Example: CORN
Statisticoptional
What is measured, such as YIELD, PRODUCTION, AREA PLANTED, AREA HARVESTED, PRICE RECEIVED, INVENTORY, PROGRESS or CONDITION.
Example: YIELD
Data itemoptional
One exact data item, such as CORN, GRAIN - YIELD, MEASURED IN BU / ACRE. Leave empty for every item of the commodity and statistic.
Example: CORN, GRAIN - YIELD, MEASURED IN BU / ACRE
Totals onlyoptional
Only overall figures (domain TOTAL), without the breakdowns by farm size, sales class, chemical or other category.
Place leveloptional
Only figures at this level. Empty means national, state, agricultural district and county figures together.
Statesoptional
Only these states, as names or two-letter codes, such as IOWA or IA. One per line, or separated by commas.
Example: IA, IL, NE
Yearsoptional
Only these years, such as 2024 and 2025. One per line, or separated by commas.
Example: 2025
Year fromoptional
First year of a span of years, instead of listing them in years.
Example: 2015
Year tooptional
Last year of the span; the latest year when empty.
Example: 2025
Frequencyoptional
Only figures published at this frequency.
Sourceoptional
SURVEY for the yearly, monthly and weekly survey figures, CENSUS for the Census of Agriculture (every five years, down to county).

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/usda-nass-quick-stats/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/usda-nass-quick-stats/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"commodity":"CORN"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

commoditytextrequired
Crop, animal or product as USDA names it, such as CORN, SOYBEANS, WHEAT, CATTLE, HOGS or MILK. Upper or lower case.
example: CORN
statistictext
What is measured, such as YIELD, PRODUCTION, AREA PLANTED, AREA HARVESTED, PRICE RECEIVED, INVENTORY, PROGRESS or CONDITION.
example: YIELD
data_itemtext
One exact data item, such as CORN, GRAIN - YIELD, MEASURED IN BU / ACRE. Leave empty for every item of the commodity and statistic.
example: CORN, GRAIN - YIELD, MEASURED IN BU / ACRE
totals_onlyyes/no
Only overall figures (domain TOTAL), without the breakdowns by farm size, sales class, chemical or other category.
default: falseexample: true
geo_leveltext
Only figures at this level. Empty means national, state, agricultural district and county figures together.
example: STATEone of: NATIONAL, STATE, AGRICULTURAL DISTRICT, COUNTY
stateslist
Only these states, as names or two-letter codes, such as IOWA or IA.
example: IA, IL, NE
yearslist
Only these years, such as 2024 and 2025.
example: 2025
year_fromnumber
First year of a span of years, instead of listing them in years.
example: 2015
year_tonumber
Last year of the span; the latest year when empty.
example: 2025
frequencytext
Only figures published at this frequency.
example: ANNUALone of: ANNUAL, MONTHLY, WEEKLY, POINT IN TIME, SEASON
sourcetext
SURVEY for the yearly, monthly and weekly survey figures, CENSUS for the Census of Agriculture (every five years, down to county).
example: SURVEYone of: SURVEY, CENSUS

What's in each record

23 fields: 22 here, 1 technical one under Technical details.

Basics

  • Program

    SURVEY or CENSUS.

    Example CENSUS

  • Period

    The reference period: YEAR, a forecast such as YEAR - AUG FORECAST, MARKETING YEAR, a month, a week such as WEEK #14, or a point in time.

    Example END OF DEC

  • Place level

    NATIONAL, STATE, AGRICULTURAL DISTRICT or COUNTY.

    Example COUNTY

  • Ag district

    USDA agricultural statistics district, such as NORTHWEST.

    Example CENTRAL

  • Ag district code

    Code of the agricultural statistics district within the state.

    Example 50

  • County

    County name as USDA writes it.

    Example BOONE

  • County ansi

    Three-digit county FIPS (ANSI) code within the state.

    Example 015

  • County fips

    Five-digit county FIPS code (state and county), such as 19015, for joining with other county data.

    Example 19015

  • Commodity

    The commodity, such as CORN or CATTLE.

    Example CATTLE

  • Data item

    The full data item: commodity, class, statistic and unit, such as CORN, GRAIN - YIELD, MEASURED IN BU / ACRE.

    Example CATTLE, (EXCL COWS) - INVENTORY

  • Unit

    Unit of the value, such as BU / ACRE, ACRES, HEAD or PCT PLANTED.

    Example HEAD

  • Domain

    The breakdown the figure belongs to; TOTAL for overall figures.

    Example TOTAL

  • Domain category

    The category inside the breakdown, such as a farm size class; NOT SPECIFIED for overall figures.

    Example NOT SPECIFIED

  • Value

    The figure as a number, in the unit shown.

    Example 8,212

  • Value code

    The NASS symbol published instead of a number, such as (D) for withheld.

    Example (D)

  • Cv (%)

    Coefficient of variation of the figure, in percent, when NASS publishes one.

    Example 8.9%

  • Cv code

    The NASS symbol published instead of a coefficient of variation, such as (L) or (H).

    Example (D)

Location

  • State

    State name as USDA writes it, such as IOWA; US TOTAL for national figures.

    Example IOWA

  • State code

    Two-letter postal code of the state, such as IA.

    Example IA

  • State ansi

    Two-digit state FIPS (ANSI) code, such as 19.

    Example 19

Dates

  • Year

    The year the figure is for.

    Example 2022

  • Week ending date

    Last day of the week, for weekly figures.

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • ID idA stable key for this one figure, made from its program, year, period, place, data item and domain category.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
programtextProgram3 of 3
yearnumberYear3 of 3
periodtextPeriod3 of 3
week_ending_datedateWeek ending date0 of 3
geo_leveltextPlace level3 of 3
statetextState3 of 3
state_codetextState code3 of 3
state_ansitextState ansi3 of 3
ag_districttextAg district3 of 3
ag_district_codetextAg district code3 of 3
countytextCounty3 of 3
county_ansitextCounty ansi3 of 3
county_fipstextCounty fips3 of 3
commoditytextCommodity3 of 3
data_itemtextData item3 of 3
unittextUnit3 of 3
domaintextDomain3 of 3
domain_categorytextDomain category3 of 3
valuenumberValue3 of 3
value_codetextValue code0 of 3
cv_pctnumberCv (%)3 of 3
cv_codetextCv code0 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordProgramPeriodPlace levelAg districtAg district codeCountyCounty ansiCounty fipsCommodityData itemUnitDomainDomain categoryValueValue codeCv (%)Cv codeStateState codeState ansiYearWeek ending date
1CENSUSEND OF DECCOUNTYCENTRAL50BOONE01519015CATTLECATTLE, (EXCL COWS) - INVENTORYHEADTOTALNOT SPECIFIED8,212—8.9%—IOWAIA192022—
2CENSUSEND OF DECCOUNTYCENTRAL50BOONE01519015CATTLECATTLE, (EXCL COWS) - OPERATIONS WITH INVENTORYOPERATIONSTOTALNOT SPECIFIED118—6.8%—IOWAIA192022—
3CENSUSEND OF DECCOUNTYCENTRAL50BOONE01519015CATTLECATTLE, COWS - INVENTORYHEADTOTALNOT SPECIFIED3,840—8.3%—IOWAIA192022—

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Figures are USDA NASS public-domain data as Quick Stats publishes them; NASS adds and revises figures as its reports come out, often several times a week. USDA does not endorse this API.
  • Quick Stats serves at most 50,000 rows per query. Larger questions are split by year, then by state; a single state and year still above 50,000 rows is skipped. At most 20,000 records per run.
  • Names follow USDA wording (CORN, AREA HARVESTED, IOWA), in any letter case. A commodity or statistic USDA does not use stops the run with close names. week_ending_date is filled only for weekly figures.
  • value is empty when NASS publishes a symbol instead of a number; the symbol is in value_code: (D) withheld to avoid disclosing single farms, (Z) less than half the unit shown, (NA) not available, (X) not applicable, (S) too few reports.
  • cv_pct (the coefficient of variation) is published only with some figures, such as the Census of Agriculture and county estimates, and is empty otherwise; (L) and (H) in cv_code mean below 0.05 percent and 99.95 percent or more.
  • Annual crop figures include NASS forecasts (period such as YEAR - AUG FORECAST) next to the final YEAR figure; keep the period you need.
  • Covers national, state, agricultural district and county figures only, not regions, ZIP codes or watersheds. unit is read from the data item and is empty when the item names none.

Version history

A run uses the live version unless the request names another one with version.