{"uid":"cap_jCzUFB10KjD-4u-YYjmSt","slug":"datakoot-compare-countries-world-bank-indicators-e4e25a1e","name":"Datakoot Compare Countries (World Bank Indicators)","description":"48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.","url":"https://x402.datakoot.com/api/compare_countries?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"string"},"description":"Array of country codes or names to compare, e.g. [\"US\", \"DE\", \"JP\"]."},"indicator":{"type":"string","description":"World Bank indicator key: gdp, gdp_per_capita, gdp_growth, inflation, population, unemployment, life_expectancy, exports, imports, govt_debt_pct_gdp, real_interest_rate, fdi, co2_per_capita, internet_users. Call list_indicators for the full set. Raw World Bank codes are also accepted."}}},"responseSchema":{"type":"json","example":{"code":"NY.GDP.MKTP.CD","source":"World Bank (CC-BY 4.0)","ranking":[{"year":"2025","value":30769700000000,"country":"United States"},{"year":"2025","value":19498039388042.6,"country":"China"}],"indicator":"GDP (current US$)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_-NwLYkCzJvwAbz77I7PjL","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":"Compares multiple countries side-by-side on a World Bank economic or development indicator, returning a ranked list of values by country and year.","exampleAgentPrompt":"Compare GDP per capita for the US, Germany, and Japan using World Bank data and tell me how they rank.","exampleUseCases":[{"title":"G7 economic benchmarking report","prompt":"Rank the G7 countries — US, UK, Canada, France, Germany, Italy, and Japan — by GDP growth rate and show me the latest World Bank figures."},{"title":"Emerging market inflation comparison","prompt":"Compare inflation rates across Brazil, India, South Africa, and Mexico so I can see which emerging market has the most price pressure right now."},{"title":"CO2 emissions per capita analysis","prompt":"Which country pollutes more per person — the US, China, or Germany? Pull the CO2 per capita figures from World Bank and rank them."}],"resultDescription":"Returns a JSON object containing the World Bank indicator name, its code, the data source, and a ranked array of objects each with a country name, the latest year available, and the indicator value in its native unit (e.g. current USD for GDP, percentage for unemployment).","failureModes":["Unknown indicator key returns an error — use list_indicators to verify valid keys","Invalid or unrecognized country code/name returns an error or empty entry for that country","Countries with missing World Bank data for recent years may return null values or older vintages","Payment failure (insufficient USDC balance on Base) results in a 402 response and no data","Passing an empty countries array returns an error"],"whenToPreferThis":"Use this endpoint when you need to directly compare two or more countries on a specific macroeconomic or development metric sourced from the World Bank. Prefer it over single-country lookup endpoints when ranking or benchmarking is the goal. It is ideal for economic research, investment analysis, policy comparison, and data journalism tasks where authoritative public data with clear attribution is required. At $0.002 per call it is cost-effective for per-query agent workflows; the free MCP tier (100 calls/day) suits lighter usage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:46:00.552Z","isFirstParty":false,"canonicalSlug":"datakoot-compare-countries-world-bank-indicators-e4e25a1e"}