{"uid":"cap_J0OV41N_z524sFiLeskuA","slug":"x402stock-world-bank-economic-indicator-api-03d898ff","name":"x402stock World Bank Economic Indicator API","description":"Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.","url":"https://x402stock.xyz/api/v1/world-bank/%7Bindicator%7D","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["country","limit"],"properties":{"limit":{"type":"integer","default":10,"maximum":66,"exclusiveMinimum":0},"country":{"type":"string","default":"US","pattern":"^[A-Za-z]{2,3}$"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","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}}}}},"responseSchema":{"type":"json","example":{"as_of":"2024-12-31T00:00:00.000Z","prior":{"year":"2023","value":27292170793214.4},"change":1458785337516.8,"latest":{"year":"2024","value":28750956130731.2},"source":"world_bank","country":{"code":"US","iso3":"USA","name":"United States"},"history":[{"year":"2024","value":28750956130731.2},{"year":"2023","value":27292170793214.4}],"indicator":"gdp","attribution":"Source: World Bank, World Development Indicators (CC BY 4.0)","last_updated":"2026-04-08","change_percent":5.35,"indicator_code":"NY.GDP.MKTP.CD","indicator_name":"GDP (current US$)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pHMEGSjEWeBAn7zj89PQ5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches World Bank development indicator data (e.g. GDP, population, inflation) for a given country, returning latest value, prior year, change, and historical series — paid per call in USDC via x402.","exampleAgentPrompt":"Pull the World Bank GDP indicator for the United States — give me the latest value, the prior year, and the last 10 years of history.","exampleUseCases":[{"title":"Compare inflation trends across countries","prompt":"Grab the World Bank CPI inflation indicator for Brazil, Argentina, and Turkey — I want the latest value, prior year change, and a 10-year historical series for each so I can compare how inflation has evolved across these emerging markets."},{"title":"Enrich country report with population data","prompt":"Pull the latest World Bank population data for Nigeria, including the prior year figure and the last 15 years of history — I'm putting together a market entry report and need official, sourced numbers I can cite."},{"title":"Track GDP growth for policy research","prompt":"Fetch the World Bank GDP growth indicator for Germany going back 20 years — I need the latest value, the year-over-year change, and the full historical series so I can model how the economy responded to major policy shifts."}],"resultDescription":"A JSON object containing: the World Bank indicator slug and full name, the country (code, name, ISO3), the latest data point (year + value), the prior year data point, absolute and percent change, a historical array of up to N year/value pairs, the last updated date, and an attribution string citing World Bank CC BY 4.0.","failureModes":["Unknown indicator code returns 404 or empty result","Invalid country code (not matching ^[A-Za-z]{2,3}$) returns validation error","Limit out of range (0 or above 66) returns schema validation error","World Bank data unavailable for a given indicator/country combination returns null latest/prior","Payment failure via x402 returns 402 with payment instructions","Network timeout or upstream World Bank API outage returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need authoritative, sourced World Bank development indicator data for any country without managing API keys or accounts. Ideal for global macro research, country comparison, economic modeling, or enriching reports with official international statistics. Prefer over scraping World Bank directly or using general-purpose search because it returns structured, normalized JSON with change calculations and attribution already included.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:29.368Z","isFirstParty":false}