Pull USDA commodity price and market news reports (e.g., livestock, dairy, grain) programmatically using the USDA AMS MyMarketNews (MARS) API.
domain: mymarketnews.ams.usda.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Register for a MyMarketNews account and obtain a personal API key from the user profile.
Call the MARS API base endpoint at https://marsapi.ams.usda.gov/ with the API key for authentication.
Query the reports resource, specifying which report(s)/commodity data set is needed (e.g., livestock, dairy, grain).
Apply the API's supported sorting and filtering parameters to narrow the result set to the fields/date range needed.
Parse the JSON (or XLSX) response and handle documented error codes per the API's error reference.
Known gotchas
This is a government data source (USDA AMS); report definitions and field names are subject to change, so consult the change-history page before hardcoding parsers.
The MARS API does not currently support webhooks, so near-real-time updates require polling on an appropriate interval.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?