{"uid":"cap_hKlru-TSVLn9cZCjOPimJ","slug":"macrolens-risk-api-country-macro-risk-analysis-9ad48670","name":"MacroLens Risk API — Country Macro Risk Analysis","description":"AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.","url":"https://marcroslencs.vercel.app/api/risk","method":"POST","headers":{},"bodySchema":{"type":"object","required":["country"],"properties":{"country":{"type":"string","description":"country"}}},"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_1gOy2KqWRKbQwrbBhVm1z","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":"Returns AI-generated macro-economic risk assessment for a specified country using FRED and World Bank data processed by a MiMo LLM","exampleAgentPrompt":"Can you run a macro-economic risk assessment on Brazil — I want an AI-powered analysis pulling in FRED and World Bank data to understand the country's risk profile?","exampleUseCases":[{"title":"Emerging market investment screening","prompt":"I'm evaluating whether to allocate capital to Vietnam — can you give me a full macro risk assessment using MacroLens so I understand the economic stability and risk factors there?"},{"title":"Country risk due diligence for expansion","prompt":"We're thinking about expanding operations into Nigeria — run a macro-economic risk analysis for me so I can see the key risk signals before we commit."},{"title":"Sovereign risk comparison briefing","prompt":"I need to brief my team on the macro risk environment in Argentina right now — can you pull a country risk report with the latest FRED and World Bank data and give me an AI summary?"}],"resultDescription":"Returns a JSON object with a success flag and a data object containing AI-generated macro-economic risk analysis for the specified country, likely including risk scores, economic indicator summaries, and narrative insights derived from FRED and World Bank datasets processed by the MiMo LLM.","failureModes":["Invalid or unrecognized country name returns an error or empty data object","Country with insufficient FRED/World Bank data coverage may return partial results","Payment failure via x402/Base blockchain returns 402 or authorization error","Service downtime on Vercel deployment returns 5xx errors","Ambiguous country names (e.g. 'Congo') may return results for the wrong country"],"whenToPreferThis":"Choose this endpoint when you need AI-synthesized macro-economic risk intelligence for a specific country, combining multiple authoritative data sources (FRED, World Bank) with LLM narrative analysis. Prefer it over raw data APIs when you need an opinionated risk assessment rather than raw indicators, and when you want a single call to return a holistic country risk picture rather than assembling data from multiple sources yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:15.855Z","isFirstParty":false}