{"uid":"cap_DOIViPmaohxQu3Zhv1ss7","slug":"payai-macro-compare-cross-country-indicator-comparison-fdba086b","name":"PayAI Macro Compare — Cross-Country Indicator 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://payai.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_USwLliQNuT9wsqoEouPsz","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":"Returns the latest value of a single macroeconomic indicator for multiple countries side-by-side, with computed signals: rank, highest, lowest, spread, mean, and source citations.","exampleAgentPrompt":"Compare inflation_cpi for the US, Germany, Japan, and Brazil — give me the latest value for each country, ranked highest to lowest, plus the spread and mean.","exampleUseCases":null,"resultDescription":"A JSON object containing: the latest available value of the requested indicator for each specified country, a ranking of countries by that value, the highest and lowest values with corresponding countries, the spread (max minus min), the mean across all countries, and a source citation for each data point.","failureModes":["Unknown indicator key returns an error or empty result","Invalid or unrecognized country code/name causes missing data for that country","No data available for the requested indicator/country/year combination","Requesting fewer than two countries may not produce meaningful comparison signals","Year parameter too far in the past may have no data for some indicators"],"whenToPreferThis":"Use this endpoint when you need to compare a single macroeconomic or development indicator across multiple countries simultaneously and want computed signals (rank, spread, mean) rather than raw time-series data. Prefer this over the single-country time-series endpoint when the task is benchmarking or ranking countries rather than tracking trends over time for one country.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:46:58.380Z","isFirstParty":false,"canonicalSlug":"payai-macro-compare-cross-country-indicator-comparison-fdba086b"}