ResilienceService

GetFoodStocks

Returns seeded PSD cereal balances with FAOSTAT gap fill. PRO-gated. Requires entitlement tier >= 1.

get/api/resilience/v1/get-food-stocks

Request

  • Base URL: https://api.worldmonitor.app
  • URL: https://api.worldmonitor.app/api/resilience/v1/get-food-stocks
  • Auth: one of:
    • API key in header X-WorldMonitor-Key
    • API key in header X-Api-Key
    • HTTP bearer

Query parameters

countryCodestring

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

commoditystring

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

jmespathstring

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

OK

fetchedAtstring

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

unavailableboolean

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

calorieWeightedStocksToUsenumber double

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

Changes

No recorded changes to this operation across all 1 revision of this API.