Skip to main content
GET
GetFoodStocks

Authorizations

X-WorldMonitor-Key
string
header
required

User-issued WorldMonitor API key.

Query Parameters

countryCode
string

ISO 3166-1 alpha-2, or WORLD. Empty returns the unfiltered snapshot.

commodity
string

Commodity slug (wheat, corn, rice, soybeans, barley, palmOil). Empty = all.

jmespath
string

Optional JMESPath expression applied server-side to project or reduce the JSON response before it is returned (mirrors the MCP jmespath argument). Invalid expressions, expressions larger than 1024 UTF-8 bytes, or projections that exceed the 256 KB output cap return HTTP 400 with a {_jmespath_error, original_keys} envelope. Grammar and worked examples: https://www.worldmonitor.app/docs/mcp-jmespath.

Response

Successful response

GetFoodStocksResponse is the filtered seed snapshot.

records
object[]
fetchedAt
string

ISO-8601 time the seeder wrote resilience:food-stocks:v1. Empty when unavailable.

unavailable
boolean

True when the seed is missing or unreadable (not a confirmed zero).

calorieWeightedStocksToUse
number<double>

Calorie-weighted stocks-to-use for the requested country, or 0 when unknown / unfiltered.