{"uid":"cap_4B9lET313hIlRsHRz7OeO","slug":"worldbank-x402-vercel-app-3c7e6fd2","name":"World Bank Multi-Country Indicator Comparison","description":"Compare a World Bank indicator across multiple countries simultaneously. Returns most recent value per country, sorted descending. Up to 10 countries.","url":"https://worldbank-x402.vercel.app/worldbank/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":["indicator","countries"],"properties":{"countries":{"type":"string","description":"Comma-separated ISO2 country codes (max 10)"},"indicator":{"type":"string","description":"Named alias or World Bank indicator code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"results":{"type":"array"},"indicator":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"countries":"US,CN,DE,JP,GB","indicator":"SP.URB.TOTL.IN.ZS"}}},"response":{"results":[{"year":"2024","value":92.1901718034531,"country":"Japan","country_code":"JPN"},{"year":"2024","value":83.2429544416085,"country":"United Kingdom","country_code":"GBR"},{"year":"2024","value":82.0211432579125,"country":"Germany","country_code":"DEU"},{"year":"2024","value":80.1247798047184,"country":"United States","country_code":"USA"},{"year":"2024","value":65.8946980998325,"country":"China","country_code":"CHN"}],"indicator":"SP.URB.TOTL.IN.ZS","alias_used":null,"indicator_name":"Urban population (% of total population)"}},"exampleRequest":{"countries":"US,CN,DE,JP,GB","indicator":"SP.URB.TOTL.IN.ZS"},"tags":["x402"],"displayCostAmount":"0.004","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cnpParABmqAJKq1d5vrxt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares a single World Bank development indicator across up to 10 countries simultaneously, returning the most recent value per country sorted descending.","exampleAgentPrompt":"Compare GDP per capita (NY.GDP.PCAP.CD) across the US, China, Germany, Japan, UK, France, India, Brazil, Canada, and Australia — rank them from highest to lowest.","exampleUseCases":null,"resultDescription":"An array of up to 10 objects, each containing the country name, ISO3 country code, most recent year available, and numeric indicator value, sorted from highest to lowest value. Also returns the indicator name/code used.","failureModes":["Invalid or unrecognized indicator code returns an error or empty results","More than 10 country codes provided returns a validation error","Invalid ISO2 country codes produce missing entries or errors","World Bank API unavailable causes 502/503 upstream errors","Some countries may have no data for the requested indicator, resulting in null values or missing entries"],"whenToPreferThis":"Use this endpoint when you need to cross-compare a specific World Bank development indicator across multiple countries at once, rather than querying country by country. Ideal for ranking, benchmarking, or visualizing how nations stack up on a single metric like GDP, life expectancy, or CO2 emissions. Prefer over the single-country endpoint when the user wants a multi-country leaderboard or comparison table.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T16:25:15.119Z","isFirstParty":false,"canonicalSlug":"worldbank-x402-vercel-app-3c7e6fd2"}