Discover/USDA API
live

USDA APInass.usda.gov

Access USDA NASS QuickStats parameter discovery, publications calendar, and Cropland Data Layer download links via 3 structured endpoints. No API key required.

Endpoint health
verified 3d ago
get_publications_calendar
quickstats_discover_params
get_cropland_data_layer_links
3/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the USDA API?

This API exposes 3 endpoints covering USDA National Agricultural Statistics Service (NASS) data: parameter discovery for the QuickStats database, a publications calendar, and Cropland Data Layer (CDL) download links. The quickstats_discover_params endpoint returns all accepted values for any QuickStats filter parameter — sector, commodity, state, statistic category, and more — without requiring a NASS API key. Coverage spans crop production, livestock, farm economics, and geospatial land-use layers from 2008 onward.

Try it
Filter values by sector.
The parameter to discover values for (e.g., sector_desc, group_desc, commodity_desc, state_alpha, statisticcat_desc, agg_level_desc).
api.parse.bot/scraper/55100b29-3e49-45e3-89e0-bfb55ac41e47/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/55100b29-3e49-45e3-89e0-bfb55ac41e47/quickstats_discover_params?sector_desc=ANIMALS+%26+PRODUCTS&target_param=sector_desc' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace nass-usda-gov-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: USDA NASS data discovery — sectors, commodities, calendar, CDL."""
from parse_apis.usda_nass_quickstats_publications_api import (
    NASS, Sector, ParameterNotFound
)

client = NASS()

# 1. Discover all available sectors in QuickStats
sectors = client.parameterdiscoveries.discover(target_param="sector_desc")
print(f"Parameter: {sectors.parameter}")
for val in sectors.values:
    print(f"  Sector: {val.value} — {val.label}")

# 2. Discover commodity groups within the CROPS sector using the enum
crops_groups = client.parameterdiscoveries.discover(
    target_param="group_desc", sector_desc=Sector.CROPS
)
print(f"\nCROP groups found: {len(crops_groups.values)}")
for val in crops_groups.values[:3]:
    print(f"  {val.label}")

# 3. Retrieve the publications calendar for a specific month
calendar = client.publicationscalendars.get(year="2025", month="05")
print(f"\nReports for {calendar.year}-{calendar.month}: {len(calendar.reports)}")
for report in calendar.reports[:3]:
    print(f"  {report.title} — {report.url}")

# 4. Retrieve Cropland Data Layer download links
cdl = client.croplanddatalayers.get()
print(f"\nCDL datasets available: {len(cdl.cdl_resources)}")
for resource in cdl.cdl_resources[:3]:
    print(f"  {resource.title} — {resource.url}")

# 5. Handle a not-found error gracefully
try:
    client.parameterdiscoveries.discover(target_param="nonexistent_param")
except ParameterNotFound as exc:
    print(f"\nParameter not found: {exc.target_param}")

print("\nExercised: discover params / publications calendar / CDL links / error handling")
All endpoints · 3 totalmissing one? ·

Discover valid parameter values for building QuickStats queries using the keyless internal web API. Returns all accepted values for a target parameter, optionally filtered by sector. Use to enumerate sectors, commodity groups, commodities, states, statistical categories, and aggregation levels available in the QuickStats database.

Input
ParamTypeDescription
sector_descstringFilter values by sector.
target_paramstringThe parameter to discover values for (e.g., sector_desc, group_desc, commodity_desc, state_alpha, statisticcat_desc, agg_level_desc).
Response
{
  "type": "object",
  "fields": {
    "values": "array of objects with 'value' and 'label' string fields",
    "parameter": "string, the target parameter that was queried"
  }
}

About the USDA API

QuickStats Parameter Discovery

The quickstats_discover_params endpoint returns valid values for any QuickStats query parameter, such as sector_desc, group_desc, commodity_desc, state_alpha, or statisticcat_desc. Each response includes a values array of objects with value and label fields, plus a parameter string confirming which field was queried. You can narrow results by passing a sector_desc filter — accepted values are CROPS, ANIMALS & PRODUCTS, DEMOGRAPHICS, ECONOMICS, and ENVIRONMENTAL. This makes it straightforward to enumerate exactly which commodity names, state codes, or statistic categories exist before constructing a downstream QuickStats query.

Publications Calendar

The get_publications_calendar endpoint returns scheduled NASS report releases for a given month and year. Pass year in YYYY format and month in zero-padded MM format. The response includes a reports array where each object contains a title, a url linking to the calendar landing page, and a params field. This is useful for tracking when crop production estimates, livestock inventories, or census releases are scheduled to publish.

Cropland Data Layer Downloads

The get_cropland_data_layer_links endpoint requires no inputs and returns cdl_resources: an array of objects with title (a description that includes file size) and url (a direct download link) fields. Resources cover national CDLs at both 10m and 30m resolution, cultivated layers, frequency layers, and confidence layers from 2008 to the present in GeoTIFF/ZIP format. These files are suitable for GIS workflows, land-use analysis, and agricultural mapping applications.

Reliability & maintenanceVerified

The USDA API is a managed, monitored endpoint for nass.usda.gov — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when nass.usda.gov changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official nass.usda.gov API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Enumerate all valid commodity names in the CROPS sector before building a QuickStats data pull
  • Monitor the NASS publications calendar to trigger alerts when new crop production reports are scheduled
  • Download Cropland Data Layer GeoTIFFs for multi-year land-use change analysis
  • Build a state-level agricultural dashboard by iterating over all valid state_alpha values returned by parameter discovery
  • Identify which statistic categories (e.g., AREA HARVESTED, YIELD) are available for a given commodity
  • Automate ingestion of annual CDL confidence layers for validating crop classification models
  • Track upcoming NASS livestock inventory and farm economics report dates for research scheduling
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does USDA NASS have an official developer API?+
Yes. NASS provides the QuickStats API at https://quickstats.nass.usda.gov/api, which requires a free API key and supports querying the full statistical database by commodity, geography, year, and category. The Parse API complements it by exposing parameter discovery, the publications calendar, and CDL download links without requiring a key.
What does `quickstats_discover_params` return when I pass a `sector_desc` filter?+
It returns a values array scoped to that sector, where each entry has a value string (the raw parameter value) and a label string. The parameter field in the response confirms which QuickStats field was queried. For example, filtering by sector_desc=CROPS and target_param=commodity_desc returns only crop commodity names.
Does the API return the actual statistical data from QuickStats — yields, production volumes, prices?+
Not currently. The API covers parameter discovery (valid filter values), the publications calendar, and CDL download links. It does not return QuickStats statistical records themselves. You can fork it on Parse and revise to add an endpoint that calls the NASS QuickStats API with a key to retrieve the underlying data rows.
How current are the Cropland Data Layer links returned by `get_cropland_data_layer_links`?+
The endpoint returns links for layers from 2008 to the present as listed on the NASS CDL page. File availability depends on when NASS publishes new annual layers, typically in winter or spring following the reference year. The title field includes file size, which can help distinguish annual updates from archived layers.
Can I filter the publications calendar by report type or crop sector?+
The get_publications_calendar endpoint accepts only year and month parameters; filtering by report type or sector is not currently supported. Each report object includes a title and url field that can be used for client-side filtering. You can fork the API on Parse and revise it to add category-based filtering if the calendar source exposes that structure.
Page content last updated . Spec covers 3 endpoints from nass.usda.gov.
Related APIs in Government PublicSee all →
nassgeodata.gmu.edu API
Access detailed USDA crop data including acreage statistics, satellite imagery, and crop classifications for any location across the United States. Compare agricultural patterns year-over-year, download raster data files, or retrieve specific crop information at the point level to analyze farming trends and land use.
upag.gov.in API
Access comprehensive agricultural data including crop production estimates, minimum support prices (MSP), crop yield trends, and planting calendars for both domestic and international markets. Search through agricultural reports and statistics to track commodity prices, production forecasts, and seasonal crop information.
data.ers.usda.gov API
Access comprehensive economic and demographic data for any US county, including unemployment rates, employment figures, income levels, poverty statistics, and population characteristics from the USDA Economic Research Service. Search and filter across all 3,143 US counties to analyze rural economic trends and county classifications for research, planning, or policy development.
naco.org API
Search and explore detailed U.S. county government information, including profiles, economic indicators, funding data, and research resources all in one place. Quickly access bulk county statistics and NACo insights to support planning, analysis, and decision-making at the local government level.
agweb.com API
Access real-time agricultural news, commodity futures prices for corn and soybeans, and local cash grain bids to stay informed on market trends and pricing. Search articles by category, view detailed market analysis, and get weekend market reports to make informed farming and trading decisions.
data.stats.gov.cn API
Access comprehensive statistical data, economic indicators, and official reports from China's National Bureau of Statistics through simple searches and structured queries. Retrieve detailed articles, data releases, indicator trends, and downloadable documents to analyze China's economic and social statistics.
fdc.nal.usda.gov API
Search across thousands of foods to get detailed nutritional information, serving sizes, and ingredient data from USDA's comprehensive food database. Find nutrition facts for branded products, legacy foods, and foundation foods all in one place.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.