USDA NASS Agricultural Statistics Scraper avatar

USDA NASS Agricultural Statistics Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
USDA NASS Agricultural Statistics Scraper

USDA NASS Agricultural Statistics Scraper

Scrape USDA National Agricultural Statistics Service (NASS) QuickStats data - crop production, prices, area harvested, livestock, and agricultural census data by commodity, state, and year. No API key required.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

Extract agricultural statistics from the USDA National Agricultural Statistics Service (NASS) QuickStats database — crop production, prices, area harvested, livestock, and agricultural census data by commodity, state, and year.

What This Actor Does

This actor scrapes the USDA NASS QuickStats database to extract structured agricultural data including:

  • Crop production volumes (bushels, tons, bales)
  • Area harvested and planted (acres)
  • Prices received by farmers (per bushel, per hundredweight)
  • Livestock inventory and sales
  • Agricultural census data (every 5 years)
  • County, state, and national level statistics

No API key required — data is fetched directly from the NASS QuickStats website. If you have a free NASS API key, you can optionally provide it for direct API access.

Data Source

USDA National Agricultural Statistics Service — QuickStats
Website: https://quickstats.nass.usda.gov/
Free API key available at: https://quickstats.nass.usda.gov/api

Use Cases

  • Agricultural market analysis — Track crop prices and production trends
  • Supply chain research — Analyze commodity availability by region and year
  • Academic research — Access standardized USDA agricultural data
  • Farm economics — Study income, expenses, and profitability metrics
  • Food system analysis — Map production geography for specific commodities

Input Parameters

ParameterTypeDescription
modeSelectSearch mode: searchCommodity, searchByState, browseCensus, searchSurvey
commodityStringCrop or commodity name (e.g. CORN, SOYBEANS, WHEAT, COTTON, CATTLE)
stateSelectUS state or "US TOTAL" for national data
yearString4-digit year (e.g. 2022)
sectorSelectData sector: CROPS, ANIMALS & PRODUCTS, ECONOMICS, DEMOGRAPHICS, ENVIRONMENTAL
sourceSelectSURVEY (annual) or CENSUS (every 5 years)
agg_levelSelectGeographic aggregation: NATIONAL, STATE, COUNTY, etc.
apiKeyStringOptional NASS API key (free, get at quickstats.nass.usda.gov/api)
maxItemsIntegerMaximum records to return (default: 100, max: 5000)

Output Fields

FieldTypeDescription
source_descStringProgram: SURVEY or CENSUS
yearIntegerYear of the data
period_descStringPeriod (YEAR, APR, MARKETING YEAR, etc.)
agg_level_descStringGeographic level (NATIONAL, STATE, COUNTY)
state_nameStringState name
state_fips_codeStringState FIPS code
county_nameStringCounty name (county-level data)
county_codeStringCounty FIPS code
commodity_descStringCommodity name (CORN, SOYBEANS, etc.)
statisticcat_descStringCategory (AREA HARVESTED, PRODUCTION, PRICE RECEIVED)
unit_descStringUnit of measurement (ACRES, BU, $ / BU)
valueNumberStatistical value
cv_percentNumberCoefficient of variation % (data quality)
domain_descStringDomain (TOTAL, CHEMICAL, ECONOMIC CLASS)
domaincat_descStringDomain category
sector_descStringSector (CROPS, ANIMALS & PRODUCTS, etc.)
data_itemStringFull data item description
scrapedAtStringISO-8601 scrape timestamp

Example Output

{
"source_desc": "SURVEY",
"year": 2022,
"period_desc": "YEAR",
"agg_level_desc": "STATE",
"state_name": "Iowa",
"state_fips_code": "19",
"commodity_desc": "CORN",
"statisticcat_desc": "PRODUCTION",
"unit_desc": "BU",
"value": 2466834000.0,
"cv_percent": 2.1,
"domain_desc": "TOTAL",
"domaincat_desc": "NOT SPECIFIED",
"sector_desc": "CROPS",
"data_item": "CORN, GRAIN - PRODUCTION, MEASURED IN BU",
"scrapedAt": "2026-06-02T10:00:00+00:00"
}

Modes

searchCommodity (default)

Search for all data for a specific commodity. Combine with state and year to narrow down.

searchByState

Get all agricultural statistics for a specific state in a given year.

browseCensus

Browse agricultural census data (collected every 5 years: 2017, 2022). Census data is more comprehensive than survey data.

searchSurvey

Search annual survey data by commodity and filters.

Common Commodities

CORN, SOYBEANS, WHEAT, COTTON, RICE, SORGHUM, BARLEY, OATS, SUNFLOWER, POTATOES, TOMATOES, APPLES, CATTLE, HOGS, CHICKENS, TURKEYS, MILK, EGGS, HONEY

Data Note: Suppressed Values

USDA NASS suppresses some data to protect individual farmer privacy. Suppressed values are indicated in the raw data as (D), (Z), etc. This actor omits the value field for suppressed records (dimensional fields like state, commodity, and year are still included).

Frequently Asked Questions

Q: Is an API key required?
A: No. This actor works without an API key by fetching data through the QuickStats website. If you have a free NASS API key, provide it via apiKey for potentially faster access.

Q: How do I get a free API key?
A: Register at https://quickstats.nass.usda.gov/api. The key is free and provides higher rate limits.

Q: What is the difference between SURVEY and CENSUS data?
A: SURVEY data is collected annually and provides timely estimates. CENSUS data is collected every 5 years (2012, 2017, 2022) and provides more detailed, comprehensive counts.

Q: How many records can I get?
A: Up to 5,000 records per run. For large extracts, run multiple queries with different filters.

Q: What does CV% mean?
A: The Coefficient of Variation percentage indicates data quality. Lower values indicate more reliable estimates. Values above 25% should be used with caution.