Usda Crop Data Scraper
Pricing
Pay per usage
Usda Crop Data Scraper
Usda Crop Data Scraper. Extract structured data with automatic pagination, proxy rotation, and JSON/CSV export. Pay only for results.
What it does
USDA Crop Data Scraper extracts agricultural crop production data from the USDA National Agricultural Statistics Service (NASS) QuickStats database. It retrieves production volumes, crop yields, and harvested acreage for any commodity by state and year. The actor queries multiple USDA API endpoints to combine production, yield, and area data into comprehensive crop statistics records.
Why use it
Access to USDA crop data is essential for agricultural commodity traders, farm management companies, agricultural researchers, policy analysts, food industry supply chain planners, and agtech startups. While the USDA website provides data access, this actor automates the extraction and structuring of data for programmatic use. Get clean, standardized data that integrates directly into your analytics pipelines, trading models, or research databases.
How it works
- The actor validates the provided USDA API key and search parameters.
- It queries the USDA NASS QuickStats API for production data matching the specified commodity and year.
- Parallel requests fetch yield and harvested area data for the same parameters.
- Data is cross-referenced by state to combine production, yield, and acreage in each record.
- Results are pushed to the Apify dataset with standardized field names.
- If no API key is provided, the actor outputs instructions for obtaining a free key.
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
apiKey | string | (required) | USDA QuickStats API key (free at https://quickstats.nass.usda.gov/api) |
commodity | string | "CORN" | Agricultural commodity (e.g., CORN, WHEAT, SOYBEANS, COTTON) |
year | string | "2023" | Year for crop data |
state | string | (optional) | US state to filter results (e.g., IOWA, ILLINOIS) |
Output fields
| Field | Type | Description |
|---|---|---|
commodity | string | Commodity name |
state | string | US state or US TOTAL |
year | string | Data year |
production | number | Total production volume |
yield | number | Yield per acre |
acres | number | Harvested acreage |
unit | string | Unit of measurement (e.g., BU for bushels) |
source | string | Data source attribution |
Cost estimate
The USDA QuickStats API is completely free with a registered API key. The pay-per-event pricing is $0.00075 per result. Retrieving all state-level data for a commodity typically returns 40-60 records, costing approximately $0.03-$0.045. Memory usage is minimal at 512 MB default.
Tips
- Get your free API key at https://quickstats.nass.usda.gov/api - it only requires an email address.
- Common commodities: CORN, WHEAT, SOYBEANS, COTTON, RICE, BARLEY, OATS, SORGHUM.
- State names should be in uppercase (e.g., IOWA, not Iowa).
- Leave the state field empty to get data for all states plus the US total.
- For related agricultural data, check out Farm Market Prices and Organic Certification Lookup.
