{"uid":"cap_tlLZn-UROnYOZzSoa6Wru","slug":"world-bank-economic-indicator-lookup-39bd470e","name":"World Bank Economic Indicator Lookup","description":"World Bank indicator values for one country by year, e.g. GDP in current US dollars (NY.GDP.MKTP.CD), from the World Bank open data API. Annual data; the latest years can be missing or revised.","url":"https://api.chainmarket-api.workers.dev/api/finance/world-bank?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":"string","description":"How many most recent years, 1 to 30 (default 5)"},"country":{"type":"string","description":"ISO 2 or 3 letter country code, e.g. US, DEU, BR"},"indicator":{"type":"string","description":"World Bank indicator code, e.g. NY.GDP.MKTP.CD, SP.POP.TOTL"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"rows":[{"year":2025,"value":30769700000000},{"year":2024,"value":29298013000000}],"source":"https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD","country":"United States","checkedAt":"2026-10-23T09:36:18.513Z","indicator":"GDP (current US$)","lastUpdated":"2026-10-08","indicatorCode":"NY.GDP.MKTP.CD"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GlqBBFS8LRfL3ndaLr_Tn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches historical World Bank economic indicator data for a given country and indicator code, returning time-series values by year.","exampleAgentPrompt":"Pull the World Bank GDP data (indicator NY.GDP.MKTP.CD) for the United States for the last 10 years.","exampleUseCases":[{"title":"GDP trend analysis for research","prompt":"Get me the last 15 years of GDP data for Germany using World Bank indicator NY.GDP.MKTP.CD so I can analyze the trend."},{"title":"Population data for demographic report","prompt":"Look up the World Bank population indicator SP.POP.TOTL for Brazil for the last 5 years."},{"title":"Inflation data for country comparison","prompt":"Fetch the World Bank inflation indicator FP.CPI.TOTL.ZG for India for the most recent 3 years."}],"resultDescription":"A JSON object containing an array of year/value pairs for the requested indicator, the country name, the indicator code and human-readable label, the source URL pointing to the World Bank API, and a timestamp of when the data was last checked and last updated.","failureModes":["Invalid or unsupported ISO country code returns an error or empty result","Unknown or misspelled World Bank indicator code returns no data","Requesting more than 30 years is outside the allowed range","World Bank API upstream unavailability causes a failed response","Years parameter outside 1–30 range may be rejected or clamped"],"whenToPreferThis":"Choose this endpoint when you need structured, time-series World Bank economic data (GDP, population, inflation, trade, etc.) for a specific country without needing a World Bank API key or account setup. It is ideal for AI agents that need pay-per-call, frictionless access to macroeconomic statistics from an authoritative source. Prefer it over general web search when you need clean, structured numerical data tied to a specific World Bank indicator code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:45:55.440Z","isFirstParty":false,"canonicalSlug":"world-bank-economic-indicator-lookup-39bd470e"}