{"uid":"cap_xtxPpP77BGNVtYyMkidjF","slug":"world-bank-macro-indicators-by-country-e988f236","name":"World Bank Macro Indicators by Country","description":"Pay-per-call utilities for AI agents over x402, USDC on Base.","url":"https://agents.crowdspark.me/v1/data/macro?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":[],"properties":{"to":{"type":"string","description":"Optional last year"},"from":{"type":"string","description":"Optional first year"},"limit":{"type":"string","description":"1 to 60 values per country, default 10"},"country":{"type":"string","description":"ISO2 or ISO3 code, or up to 10 joined with ;, default US"},"indicator":{"type":"string","description":"Alias such as gdp or inflation, or a World Bank code like NY.GDP.MKTP.CD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"series":[{"iso3":"USA","values":[{"year":2025,"value":30769700000000},{"year":2024,"value":29298013000000}],"country":"United States"}],"source":"World Bank Open Data API (CC BY 4.0)","indicator":{"code":"NY.GDP.MKTP.CD","name":"GDP (current US$)"},"last_updated":"2026-10-08"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZnSpt-awjmqWCg3yFKPCW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves World Bank macroeconomic indicators (GDP, inflation, unemployment, etc.) for up to 10 countries across a range of years","exampleAgentPrompt":"Can you pull the GDP and inflation figures for Germany, France, and the US for the last 5 years from the World Bank?","exampleUseCases":[{"title":"Emerging market economic comparison","prompt":"Get me GDP growth rate and inflation for Brazil, India, and South Africa for 2018 through 2023 so I can compare their economic trajectories."},{"title":"Debt sustainability research","prompt":"What is the debt-to-GDP ratio for Japan, Italy, and Greece for the most recent 10 years available from the World Bank?"},{"title":"FDI trend analysis","prompt":"Pull the foreign direct investment inflows for Vietnam, Indonesia, and Mexico for 2015 to 2022 — I want to see how FDI has trended in those manufacturing hubs."}],"resultDescription":"A JSON object containing a 'series' array with each requested country's ISO3 code, country name, and an array of year/value pairs sorted newest first; plus metadata including the indicator's World Bank code and name, the data source attribution, and the last_updated date.","failureModes":["Invalid or unrecognized country code returns empty or error response","Unknown indicator alias or World Bank code returns error","Requesting more than 10 countries in a single call may be rejected","Year range outside available World Bank data returns empty values","Rate limit or payment failure returns 402 or 429 status"],"whenToPreferThis":"Choose this endpoint when you need structured, multi-country macroeconomic time-series data from the World Bank — especially for GDP, inflation, unemployment, trade, or debt metrics — and want a clean JSON response without parsing raw World Bank API responses yourself. Prefer it over direct World Bank API calls for agent workflows requiring minimal integration overhead and x402 micropayment compatibility.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:40.555Z","isFirstParty":false,"canonicalSlug":"world-bank-macro-indicators-by-country-e988f236"}