{"uid":"cap_X1yBRfwLMaCXyj1aeiZfm","slug":"macrolens-compare-indicator-2d6ac696","name":"MacroLens Compare Indicator","description":"Global macro statistics (GDP, inflation, unemployment, debt and 30+ indicators for 200+ countries), country profiles and rankings, and official company registry lookups (Norway, France) for AI agents. No API key: pay USDC on Base per call via x402.","url":"https://macrolens.imac2014ville.workers.dev/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":{"order":{"enum":["desc","asc"],"type":"string","description":"Ranking order (default desc, highest first)"},"countries":{"type":"string","description":"Comma-separated ISO2/ISO3 codes (max 10) or a group: G7, BRICS, NORDICS, EUROPE_BIG4"},"indicator":{"type":"string","description":"Friendly key (gdp, gdp_per_capita, gdp_growth, inflation, unemployment, population, debt_to_gdp, current_account, interest_rate, exports, imports, fdi, gini, life_expectancy, ...) or a raw 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":{"ok":true,"source":"World Bank Open Data (CC BY 4.0)","ranking":[{"iso2":"IT","rank":1,"year":2024,"value":6.5,"country":"Italy"},{"iso2":"FR","rank":2,"year":2024,"value":7.4,"country":"France"}],"indicator":{"key":"unemployment","units":"%"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_6eZeGsDXsNlg-PtqPoAx8","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":"Compares and ranks a set of countries by a chosen macroeconomic indicator (GDP, inflation, unemployment, debt-to-GDP, and 30+ others) sourced from World Bank data","exampleAgentPrompt":"Compare unemployment rates across the G7 countries and rank them from highest to lowest using World Bank data.","exampleUseCases":[{"title":"G7 inflation benchmark comparison","prompt":"Rank the G7 countries by current inflation rate from highest to lowest — I want to see how each country compares right now."},{"title":"BRICS GDP per capita ranking","prompt":"Compare GDP per capita for all BRICS countries and show me the ranking in descending order."},{"title":"Nordic debt-to-GDP analysis","prompt":"How do the Nordic countries stack up on debt-to-GDP ratio? Rank them for me so I can see who's most and least indebted."}],"resultDescription":"Returns a JSON object with a ranked list of countries for the requested indicator, including each country's ISO2 code, rank, most recent year of data, numeric value, and the indicator's key name and units. Also includes the original data source attribution (World Bank Open Data CC BY 4.0).","failureModes":["Invalid or unsupported indicator key returns an error or empty result","More than 10 country codes supplied exceeds the max limit","Invalid ISO country codes not recognized","Payment failure or insufficient USDC balance blocks the request","World Bank data may be lagged by 1-2 years for some indicators","Some indicators may not be available for all countries"],"whenToPreferThis":"Choose this endpoint when you need to compare or rank multiple countries side-by-side on a specific macroeconomic indicator. It is ideal for benchmarking scenarios (e.g. G7 vs BRICS comparisons), policy research, or investment analysis where ranked cross-country data is needed. Prefer it over single-country lookups when the goal is relative comparison rather than a full country profile.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:35:12.764Z","isFirstParty":false,"canonicalSlug":"macrolens-compare-indicator-2d6ac696"}