{"uid":"cap_jQnwTP5-jjmRPgENLe9x5","slug":"macrolens-compare-countries-macro-intelligence-api-44e51ff0","name":"MacroLens Compare Countries — Macro Intelligence API","description":"AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.","url":"https://marcolens.vercel.app/api/compare","method":"POST","headers":{},"bodySchema":{"type":"object","required":["countries"],"properties":{"countries":{"type":"array","description":"countries"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.35","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2wPCHPhFKNTAFePTlQ13F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares macroeconomic indicators across multiple countries using FRED and World Bank data, analyzed by AI (MiMo LLM)","exampleAgentPrompt":"Compare the macroeconomic profiles of the United States, China, and Germany — I want to see how their key indicators like GDP, inflation, and trade stack up against each other.","exampleUseCases":[{"title":"Emerging market investment screening","prompt":"Can you compare the macroeconomic conditions of Brazil, India, Indonesia, and Vietnam? I'm trying to figure out which emerging markets look strongest right now for long-term investment."},{"title":"Eurozone economic health check","prompt":"Compare the economies of Germany, France, Italy, and Spain — give me a breakdown of how their macroeconomic fundamentals differ so I can understand the divergence within the eurozone."},{"title":"US vs China economic benchmarking","prompt":"I need a head-to-head macroeconomic comparison of the United States and China — GDP growth, inflation, trade balance, and whatever other key indicators MacroLens can pull together."}],"resultDescription":"Returns a structured data object containing AI-generated comparative macroeconomic analysis across the specified countries, drawing on FRED and World Bank datasets. Includes key economic indicators (e.g., GDP, inflation, trade, unemployment) benchmarked side by side, with a success flag indicating whether the analysis completed successfully.","failureModes":["Missing or empty 'countries' array — returns validation error","Unrecognized country names or codes — may return partial results or error","Payment not included or insufficient — x402 payment required before response","Downstream FRED or World Bank data unavailable — may return incomplete indicator data","Too many countries in a single request — may hit processing limits"],"whenToPreferThis":"Choose this endpoint when you need AI-synthesized side-by-side macroeconomic comparisons across two or more countries, especially when you want natural language interpretation of economic indicators on top of raw data. Prefer over manual data fetching from FRED or World Bank when you need a unified, analyst-style comparison in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:02.279Z","isFirstParty":false}