{"uid":"cap_xuV8uA8ixNjF04zxG7X7O","slug":"world-bank-country-indicator-ranking-3f333cc8","name":"World Bank Country Indicator Ranking","description":"Rank up to 6 countries on one indicator (GDP, growth, inflation, unemployment...) with the year of each value.","url":"https://world-bank.x402tookit.com/country-compare?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":["countries","indicator"],"properties":{"countries":{"type":"string","description":"Comma-separated names or ISO codes, 2 to 6"},"indicator":{"type":"string","description":"gdp, gdp_growth, gdp_per_capita, population, inflation, unemployment, life_expectancy, debt_gdp, internet, co2_per_capita"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"label":{"type":["null","string"]},"noData":{"type":["array","null"]},"source":{"type":["null","string"]},"ranking":{"type":["array","null"],"items":{"type":"object","properties":{"iso3":{"type":["null","string"]},"rank":{"type":["null","number"]},"year":{"type":["null","number"]},"value":{"type":["null","number"]},"country":{"type":["null","string"]}}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"unknown":{"type":["array","null"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"indicator":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pJdelWGJJwi-2yOJRw2yA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks 2–6 countries side-by-side on a single economic or social indicator (GDP, inflation, unemployment, etc.) with the value and year for each.","exampleAgentPrompt":"Can you rank the US, China, Germany, Japan, and Brazil by GDP and tell me which year each figure is from?","exampleUseCases":[{"title":"Investment market comparison","prompt":"Compare GDP per capita for South Korea, Poland, Mexico, Vietnam, and Nigeria — rank them from highest to lowest and show me the year each data point is from."},{"title":"Inflation benchmarking across Europe","prompt":"Which has the higher inflation rate right now — France, Germany, Italy, Spain, or the Netherlands? Rank all five for me."},{"title":"Development research on life expectancy","prompt":"I need to compare life expectancy in Japan, USA, Brazil, India, and Nigeria — can you rank those five countries and show the most recent values?"}],"resultDescription":"A ranked array of up to 6 countries ordered by the requested indicator, each entry containing country name, ISO3 code, numeric value, data year, and rank position. Also includes a human-readable summary, indicator label, source URL, attribution to the World Bank, and an optional list of countries for which no data was available.","failureModes":["Fewer than 2 or more than 6 countries supplied — request rejected","Unrecognized country name or ISO code — listed in 'unknown' field with partial results","Unsupported indicator value — request rejected or degraded response","No World Bank data available for a country/indicator pair — that country appears in 'noData' list","Stale or incomplete data — 'degraded' flag set to true with disclaimer"],"whenToPreferThis":"Use this endpoint when you need a direct ranked comparison of a small set of countries (2–6) on a single well-known World Bank indicator. It is ideal for quick benchmarking, investment screening, research summaries, or answering 'which country is best/worst at X?' questions. Prefer it over the historical trend endpoints when you need current snapshot rankings rather than time-series analysis, and over the country profile endpoint when you have multiple countries to compare simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:27:15.822Z","isFirstParty":false,"canonicalSlug":"world-bank-country-indicator-ranking-3f333cc8"}