Country Economic Indicators

Get a country's GDP, growth, inflation, unemployment and population from the World Bank, for judging a counterparty's jurisdiction.

Pay by wallet (x402) country-economic-indicators

Example

Input
{
  "country_code": "SE"
}
Answer
{
  "indicators": {
    "gdp_usd": {
      "year": "2025",
      "value": 668998664082.081
    },
    "population": {
      "year": "2023",
      "value": 10521556
    },
    "inflation_percent": {
      "year": "2025",
      "value": 1.9
    },
    "gdp_growth_percent": {
      "year": "2025",
      "value": 1.2
    },
    "unemployment_percent": {
      "year": "2024",
      "value": 8.1
    }
  },
  "country_code": "SE",
  "requested_year": "most_recent",
  "indicator_codes": {
    "gdp_usd": "NY.GDP.MKTP.CD",
    "population": "SP.POP.TOTL",
    "inflation_percent": "FP.CPI.TOTL.ZG",
    "gdp_growth_percent": "NY.GDP.MKTP.KD.ZG",
    "unemployment_percent": "SL.UEM.TOTL.ZS"
  }
}

Inputs

FieldTypeRequiredWhat it is
yearstringNoOptional specific 4-digit year (default is most recent available)
indicatorsarrayNoOptional list of indicator keys to fetch instead of the default set. Valid keys: gdp_usd, gdp_growth_percent, gdp_per_capita_usd, inflation_percent, unemployment_percent, population, gni_per_capita_usd, exports_percent_gdp, imports_percent_gdp, fdi_inflow_percent_gdp
country_codestringYesISO 2-letter or 3-letter country code (e.g. SE, US, DE, SWE)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
indicatorsobjectAlways (present in every successful answer)
country_codestringAlways (present in every successful answer)
requested_yearstringAlways (present in every successful answer)
indicator_codesobjectAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "country-economic-indicators",
    "inputs": {
      "country_code": "SE"
    },
    "max_price_cents": 8
  }'

Limitations

  • Indicators can cover different years

    World Bank indicators are collected on independent national reporting schedules (GDP may be 2025, unemployment 2024, population 2023 for the same country). Each indicator entry carries its own 'year'; there is no single as-of date for the whole response.

  • Some indicator/country/year combinations have no data

    Smaller economies and territories often have gaps in specific series (especially labour and FDI indicators). An indicator with value:null and an unavailable_reason means the World Bank has no observation for that country/period — not that the value is zero.

  • Only 10 selected indicators are supported

    Only 10 KYB-relevant indicator keys are exposed via the 'indicators' parameter. The World Bank publishes far more series; this capability does not expose arbitrary WDI indicator codes.

    What to do instead: For indicators outside this curated set, query api.worldbank.org directly with the desired series code