{"uid":"cap_zp2G_EZveI31uuuS8lK4V","slug":"world-bank-country-data-single-indicator-time-series-3ef3812a","name":"World Bank Country Data – Single Indicator Time Series","description":"An economic or social indicator for a country over 3-40 years: values, change, average and trend direction.","url":"https://world-bank.x402tookit.com/indicator-series?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["country","indicator"],"properties":{"years":{"type":"integer","description":"How many years back, 3 to 40, default 10"},"country":{"type":"string","description":"Country name or ISO code"},"indicator":{"type":"string","description":"gdp, gdp_growth, gdp_per_capita, population, inflation, unemployment, life_expectancy, debt_gdp, internet, co2_per_capita"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"iso3":{"type":["null","string"]},"label":{"type":["null","string"]},"newest":{"type":["null","object"],"properties":{"year":{"type":["null","number"]},"value":{"type":["null","number"]}}},"oldest":{"type":["null","object"],"properties":{"year":{"type":["null","number"]},"value":{"type":["null","number"]}}},"series":{"type":["array","null"],"items":{"type":"object","properties":{"year":{"type":["null","number"]},"value":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"average":{"type":["null","number"]},"country":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"indicator":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"changeRatio":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NIsAwmPWm1TGejZZsYFb6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a time-series of a single World Bank economic or social indicator for a country, including yearly values, average, change ratio, and trend verdict over 3–40 years.","exampleAgentPrompt":"Pull the World Bank GDP per capita data for Mexico over the last 20 years and tell me the average, the overall change, and whether the trend is up or down.","exampleUseCases":[{"title":"Country inflation trend for investment research","prompt":"Get me the World Bank inflation data for Turkey over the past 15 years — I want the yearly values, average inflation rate, and whether the trend has been worsening or improving."},{"title":"Life expectancy progress for a development report","prompt":"Show me how life expectancy has changed in Sub-Saharan countries — starting with Kenya — over the last 30 years using World Bank data, including the average and the overall change ratio."},{"title":"Unemployment trend for a policy brief","prompt":"What does the World Bank say about unemployment in Spain over the past 25 years? Give me the year-by-year series, the average, and the trend direction."}],"resultDescription":"Returns a structured object with: a year-by-year series of indicator values, the newest and oldest data points with their years, an average across the period, a change ratio between first and last, a trend verdict, a plain-language summary, the country name, ISO3 code, indicator label, data source URL, attribution, and optional disclaimer or degraded flag.","failureModes":["Unknown country name or ISO code returns an error or empty result","Unsupported indicator string outside the allowed enum returns an error","Requesting fewer than 3 or more than 40 years returns a validation error","World Bank source data unavailable for the requested period may trigger a degraded flag with partial results","Network timeout or upstream World Bank API unavailability"],"whenToPreferThis":"Choose this endpoint when you need a full time-series breakdown of a single economic or social indicator for one country — including trend direction, average, and change ratio — rather than a snapshot or cross-country ranking. Prefer it over the country profile endpoint (which only shows the latest values) and over the GDP-specific growth endpoint when you need non-GDP indicators like inflation, unemployment, life expectancy, debt-to-GDP, internet penetration, or CO2 per capita.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:35:40.450Z","isFirstParty":false,"canonicalSlug":"world-bank-country-data-single-indicator-time-series-3ef3812a"}