Validate grain quality specs API
Validate caller-supplied grain lot moisture, protein, test weight, foreign material, damage, and grade against supplied specs.
The Validate grain quality specs operation is part of the Agriculture & Commodity Intelligence API on BRAINIAC.software. Validate caller-supplied grain lot moisture, protein, test weight, foreign material, damage, and grade against supplied specs. It is exposed as POST /api/v1/agriculture-intelligence/grain-quality-spec-validate and priced at $0.03 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied fields, weather, calendars, yields, prices, input costs, grain lots/specs, and insurance evidence Open-Meteo when openMeteo is requested World Bank Open Data when worldBank is requested Limitations: No paid commodity feed or authenticated agricultural platform is used and no API key is required. Missing values are not invented. Yield and cost calculations use only supplied quantities, rates, prices, and optional stress factors. Crop calendars are validated against caller-supplied windows only—not regulatory planting mandates. Grain and insurance checks use supplied specs/checklists only. Coverage is not confirmed. Market-risk reports aggregate only sections for which records were supplied or optionally fetched. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Analyze crop weather exposure, Validate crop calendars, Estimate crop yields, Normalize commodity price series. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/agriculture-intelligence/grain-quality-spec-validateExample request
curl -i -X POST "https://www.brainiac.software/api/v1/agriculture-intelligence/grain-quality-spec-validate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"asOf": "2026-11-04T21:00:00.000Z",
"grainSpecs": [
{
"id": "S1",
"commodity": "wheat",
"maxMoisturePct": 13.5,
"minProteinPct": 11,
"minTestWeight": 58,
"maxForeignMaterialPct": 2,
"maxDamagePct": 4,
"requiredGrade": "US No. 2",
"source": "Caller-supplied contract"
}
],
"grainLots": [
{
"id": "L1",
"lotId": "LOT-1",
"commodity": "wheat",
"moisturePct": 12.8,
"proteinPct": 12.1,
"testWeight": 60,
"foreignMaterialPct": 1.2,
"damagePct": 2,
"grade": "US No. 2",
"source": "Caller-supplied elevator"
},
{
"id": "L2",
"lotId": "LOT-2",
"commodity": "wheat",
"moisturePct": 14.2,
"proteinPct": 10.5,
"testWeight": 56,
"foreignMaterialPct": 2.5,
"damagePct": 5,
"grade": "US No. 3",
"source": "Caller-supplied elevator"
}
]
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Analyze crop weather exposure — $0.04 USDC
- Validate crop calendars — $0.03 USDC
- Estimate crop yields — $0.04 USDC
- Normalize commodity price series — $0.03 USDC
Related APIs
Agriculture & Commodity Intelligence APIFull docsHow it works