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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
program | text | Program | 3 of 3 |
year | number | Year | 3 of 3 |
period | text | Period | 3 of 3 |
week_ending_date | date | Week ending date | 0 of 3 |
geo_level | text | Place level | 3 of 3 |
state | text | State | 3 of 3 |
state_code | text | State code | 3 of 3 |
state_ansi | text | State ansi | 3 of 3 |
ag_district | text | Ag district | 3 of 3 |
ag_district_code | text | Ag district code | 3 of 3 |
county | text | County | 3 of 3 |
county_ansi | text | County ansi | 3 of 3 |
county_fips | text | County fips | 3 of 3 |
commodity | text | Commodity | 3 of 3 |
data_item | text | Data item | 3 of 3 |
unit | text | Unit | 3 of 3 |
domain | text | Domain | 3 of 3 |
domain_category | text | Domain category | 3 of 3 |
value | number | Value | 3 of 3 |
value_code | text | Value code | 0 of 3 |
cv_pct | number | Cv (%) | 3 of 3 |
cv_code | text | Cv code | 0 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Program | Period | Place level | Ag district | Ag district code | County | County ansi | County fips | Commodity | Data item | Unit | Domain | Domain category | Value | Value code | Cv (%) | Cv code | State | State code | State ansi | Year | Week ending date |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | CENSUS | END OF DEC | COUNTY | CENTRAL | 50 | BOONE | 015 | 19015 | CATTLE | CATTLE, (EXCL COWS) - INVENTORY | HEAD | TOTAL | NOT SPECIFIED | 8,212 | — | 8.9% | — | IOWA | IA | 19 | 2022 | — |
| 2 | CENSUS | END OF DEC | COUNTY | CENTRAL | 50 | BOONE | 015 | 19015 | CATTLE | CATTLE, (EXCL COWS) - OPERATIONS WITH INVENTORY | OPERATIONS | TOTAL | NOT SPECIFIED | 118 | — | 6.8% | — | IOWA | IA | 19 | 2022 | — |
| 3 | CENSUS | END OF DEC | COUNTY | CENTRAL | 50 | BOONE | 015 | 19015 | CATTLE | CATTLE, COWS - INVENTORY | HEAD | TOTAL | NOT SPECIFIED | 3,840 | — | 8.3% | — | IOWA | IA | 19 | 2022 | — |
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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.