{"uid":"cap__Gcz4HrL9O7oXKZiE66Kk","slug":"macroeconomic-indicator-cross-country-comparison-429c00be","name":"Macroeconomic Indicator Cross-Country Comparison","description":"One indicator compared across several countries: the latest value for each plus computed signals — rank, highest and lowest, spread and mean. Each value is cited to its source.","url":"https://api.agentstools.dev/macro/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["indicator","country"],"properties":{"year":{"type":"integer","description":"Reference year; the latest available value at or before it is used (default latest)"},"country":{"type":"string","description":"Two or more countries as ISO-2, ISO-3 or names, comma-separated"},"indicator":{"type":"string","examples":["gdp_current_usd","gdp_per_capita_usd","gdp_growth","gni_per_capita_atlas","gross_savings_gdp","inflation_cpi","real_interest_rate","broad_money_gdp","unemployment","labor_force","govt_debt_gdp","govt_health_exp_gdp","govt_education_exp_gdp","trade_balance_gdp","current_account_gdp","exports_gdp","imports_gdp","fdi_net_inflows_gdp","population","population_growth","life_expectancy","gini","poverty_headcount_national","urban_population_pct","co2_per_capita","renewable_energy_pct","electricity_access_pct","internet_users_pct","mobile_subscriptions_per_100"],"description":"Canonical indicator key or a raw World Bank code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jv0pMNGOste1VIdKBbvyc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares a single macroeconomic indicator across multiple countries, returning latest values with computed signals: rank, highest, lowest, spread, and mean — each cited to its source.","exampleAgentPrompt":"Compare inflation (CPI) across the US, Germany, Brazil, and India — show me the latest value for each, which country ranks highest, and what the spread is.","exampleUseCases":null,"resultDescription":"A structured JSON object containing, for each requested country, the latest available value for the indicator (at or before the reference year), plus computed cross-country signals: rank ordering, the highest and lowest values among the set, spread (max minus min), and mean — all with source citations.","failureModes":["Unknown or misspelled indicator key returns an error or empty result","Fewer than two valid countries recognized causes comparison to fail","No data available for a country/indicator/year combination returns null values for that entry","Invalid ISO country code returns an error or is silently excluded","Year too far in the past or future with no available data returns empty"],"whenToPreferThis":"Use this endpoint when you need to benchmark or rank a single macroeconomic, demographic, environmental, or social indicator across two or more countries simultaneously, especially when you want not just raw values but computed comparative signals (rank, spread, mean). Prefer this over a single-country lookup when the user's question is inherently comparative ('which country is highest', 'how does X compare to Y').","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:42:33.805Z","isFirstParty":false,"canonicalSlug":"macroeconomic-indicator-cross-country-comparison-429c00be"}