Usda Market News

v0.2.1
io.github.pipeworx-io/usda-market-news Checked 2 days ago Published 28 days ago

USDA AMS Market News -- Livestock Mandatory Price Reporting (LMR).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ams_report

Read dated rows from one USDA AMS livestock price report (Livestock Mandatory Price Reporting). Every response states the report family, report title, market type and office, and each row keeps its own basis fields (class, selling basis, grade, weight range) plus price low / high / weighted-average as separate fields: ranges are never collapsed and nothing is averaged here. Pick a section (see sections in ams_report_search; prices are usually in "Detail", not "Summary"). With no date it returns the most recent report date. If AMS has no rows for the requested date or section (not published yet…

ParameterTypeDescription
report_id *numberReport id from ams_report_search, e.g. 2466 (5 Area Daily Weighted Average Direct Slaughter Cattle).
datestringOne report date, ISO YYYY-MM-DD.
end_datestringRange end, ISO.
limitnumberMax rows (default 100, max 500). Newest first.
sectionstringSection name, case-insensitive (default "Summary"), e.g. "Detail".
start_datestringRange start, ISO (use with end_date).

ams_market_report

Read dated rows from one USDA AMS My Market News report (fruit and vegetable shipping-point / terminal / import-crossing prices, grain, hay, cotton and other non-livestock reports). Every row keeps AMS's own fields: commodity, variety, package or unit, origin, and low / high / mostly / mean price as separate values; nothing is averaged. Optional `commodity` keeps only rows whose commodity, variety or group contains that word (e.g. "lime"); optional `district` keeps rows whose district or market location contains that text (e.g. "mexico crossings through texas"). If the report has rows but none…

ParameterTypeDescription
report_id *numberReport id from ams_market_report_search.
_apiKeystringOptional. The gateway supplies the platform My Market News key; pass your own only to override.
commoditystringKeep only rows whose commodity / variety / group contains this word, e.g. "lime".
datestringOne report date, ISO YYYY-MM-DD.
districtstringKeep only rows whose district or market location contains this text, e.g. "mexico crossings through texas" or "mcallen".
end_datestringRange end, ISO.
limitnumberMax rows (default 100, max 500). Newest first.
sectionstringReport section name, case-insensitive. Omit to read the data sections (header sections are skipped).
start_datestringRange start, ISO (use with end_date).