# USDA NASS Crop Production & Grain Stocks API

> USDA NASS Crop Production & Grain Stocks API is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns US crop production, yield, acreage, and grain stocks data from USDA NASS QuickStats for a given commodity, with optional state and year filtering, including year-over-year change.

## Facts

- Endpoint: GET https://payai.agentstools.dev/agri/production
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usda-nass-crop-production-grain-stocks-api-bd7524cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L1W6-l8zx2f07wnhfAD1Z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability usda-nass-crop-production-grain-stocks-api-bd7524cf
```

Example prompt: What were US soybean production figures for Illinois in 2022, and how did that compare to the prior year? Pull from USDA NASS data.

## When to prefer this

Use this endpoint when you need authoritative US agricultural production, yield, acreage, or grain stocks data for corn, soybeans, wheat, or cotton — sourced directly from USDA NASS QuickStats. Prefer this over general economic data APIs when the query is specifically about US crop commodities, especially when state-level breakdowns or year-over-year comparisons are needed.

## Known failure modes

- Invalid or unsupported commodity returns an error — only corn, soybeans, wheat, and cotton are supported
- Year out of range (before 2000 or after 2100) returns a validation error
- Invalid 2-letter state code returns an error or no data
- Data not yet available for the requested year may return empty or latest available data
- Network or upstream USDA NASS API unavailability may cause failures

## How this service works

US crop production, yield, acreage and grain stocks from USDA NASS QuickStats by commodity, with an optional state and year. Returns a normalized cited series plus the year-over-year change.

## Output

A normalized, cited time series of the requested metric (production, yield, acreage, or stocks) for the specified commodity and optional state, including the year-over-year change, sourced from USDA NASS QuickStats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "year": {
       "type": "integer",
       "maximum": 2100,
       "minimum": 2000,
       "description": "Optional as-of year (default latest available)"
      },
      "state": {
       "type": "string",
       "description": "Optional 2-letter US state code (default national)"
      },
      "metric": {
       "enum": [
        "production",
        "yield",
        "acreage",
        "stocks"
       ],
       "type": "string",
       "description": "Which series to return (default production)"
      },
      "commodity": {
       "enum": [
        "corn",
        "soybeans",
        "wheat",
        "cotton"
       ],
       "type": "string",
       "description": "Commodity (default corn)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usda-nass-crop-production-grain-stocks-api-bd7524cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
