{"uid":"cap_hSzbpDCTOV9dDvbFrsA-j","slug":"agents-x402stock-xyz-world-bank-indicator-annual-time-series-by-country-10e14e9a","name":"World Bank Indicator Annual Time Series by Country","description":"Annual time series of one World Bank indicator for a country, with latest value, prior year, and change. Indicators: gdp, gdp-growth, gdp-per-capita, inflation, unemployment, population, govt-debt, current-account, exports, fdi. Pick the country with `?country=US` (ISO2/ISO3, default US) and the span with `?limit=` years (default 10). Cross-country macro reference. Source: World Bank (CC BY 4.0).","url":"https://agents.x402stock.xyz/api/v1/world-bank/{indicator}","method":"GET","headers":{},"bodySchema":{"type":"object","required":["indicator"],"properties":{"limit":{"type":"integer","default":10,"maximum":66,"exclusiveMinimum":0},"country":{"type":"string","default":"US","pattern":"^[A-Za-z]{2,3}$"},"indicator":{"type":"string","description":"World Bank WDI indicator code, e.g. NY.GDP.MKTP.CD."}}},"responseSchema":{"type":"object","required":["source","as_of","indicator","indicator_code","indicator_name","country","last_updated","latest","prior","change","change_percent","history","attribution"],"properties":{"as_of":{"anyOf":[{"type":"string"},{"type":"null"}]},"prior":{"anyOf":[{"type":"object","required":["year","value"],"properties":{"year":{"type":"string"},"value":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},"change":{"anyOf":[{"type":"number"},{"type":"null"}]},"latest":{"anyOf":[{"type":"object","required":["year","value"],"properties":{"year":{"type":"string"},"value":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},"source":{"type":"string","const":"world_bank"},"country":{"type":"object","required":["code","name","iso3"],"properties":{"code":{"type":"string"},"iso3":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"history":{"type":"array","items":{"type":"object","required":["year","value"],"properties":{"year":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}},"indicator":{"type":"string"},"attribution":{"type":"string"},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}]},"change_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"indicator_code":{"type":"string"},"indicator_name":{"type":"string"}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TX3VwMSQJKGv0CzFbxQqf","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.x402stock.xyz","brandSlug":"agents-x402stock-xyz-mpp","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns an annual time series for a named World Bank macro indicator (e.g. GDP, inflation, unemployment) for a given country, including latest value, prior year, and year-over-year change.","exampleAgentPrompt":"Pull the World Bank GDP growth time series for India over the last 15 years and tell me the latest value, what it was the year before, and how much it changed.","exampleUseCases":[{"title":"Country macro briefing before investment decision","prompt":"Give me a 10-year history of Germany's government debt-to-GDP ratio from the World Bank, including the most recent figure and how it changed year over year."},{"title":"Comparing inflation trends across emerging markets","prompt":"Fetch the World Bank inflation time series for Brazil for the last 20 years — I want to see the latest number, the prior year, and the full annual history."},{"title":"Unemployment snapshot for policy research","prompt":"What does the World Bank say about unemployment in South Africa right now? Give me the latest value, the previous year's figure, and a 10-year trend."}],"resultDescription":"A JSON object containing the indicator slug and full World Bank indicator code and name, country code and name, the latest available year and value, the prior year and value, absolute and percent change, a full array of annual {year, value} history entries up to the requested limit, a source tag ('world_bank'), an as_of date, last_updated timestamp, and a CC BY 4.0 attribution string.","failureModes":["Unknown indicator slug returns a 404 or error response","Invalid or unrecognized country code returns an error","World Bank data may have a 1-2 year lag so 'latest' may not be the current calendar year","Some country-indicator combinations have sparse or missing data, resulting in null values in history","limit values outside the allowed range (1–66) return a validation error"],"whenToPreferThis":"Use this endpoint when you need structured, World Bank-sourced annual macro data for a specific country and indicator, including year-over-year change context. It is preferred over raw World Bank API calls because it normalises the response into a consistent schema with latest/prior/change fields pre-computed, supports simple indicator slug names (e.g. 'gdp' instead of 'NY.GDP.MKTP.CD'), and is accessible pay-per-call without API keys. It covers cross-country reference for 10 named macro indicators spanning GDP, inflation, unemployment, population, debt, trade, FDI, and more.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-11T18:30:01.535Z","isFirstParty":false}