{"uid":"cap_zKSbP7kZ4wYB9f0tdPLSO","slug":"macrolens-risk-api-country-macro-risk-assessment-4061d29e","name":"MacroLens Risk API — Country Macro Risk Assessment","description":"AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.","url":"https://marcrons.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_OQTQW6iu1X1tIvwGZKcGP","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 an AI-generated macroeconomic risk assessment for a given country using FRED and World Bank data processed by an LLM","exampleAgentPrompt":"Can you pull a macroeconomic risk assessment for Brazil — I want to understand the country-level economic risk using FRED and World Bank data before we make an investment decision?","exampleUseCases":[{"title":"Pre-investment country risk screening","prompt":"Before we allocate capital to Vietnam, can you run a macro risk assessment on the country and tell me what the biggest economic risk factors are?"},{"title":"Emerging market risk comparison research","prompt":"I'm comparing macro risk across Argentina, Turkey, and Egypt — can you assess each country's macroeconomic risk so I can rank them by stability?"},{"title":"Client portfolio country exposure report","prompt":"A client has heavy exposure to Nigeria — can you pull a macro risk assessment for Nigeria so I can flag any economic red flags in their portfolio review?"}],"resultDescription":"A structured object containing AI-synthesized macroeconomic risk data for the requested country, including risk indicators derived from FRED and World Bank datasets, and an LLM-generated risk narrative or score summarizing economic stability, vulnerability, and key risk factors.","failureModes":["Invalid or unrecognized country name returns an error or empty data object","Country data unavailable in FRED or World Bank sources may result in incomplete output","LLM inference failure may cause success:false response","Network timeout on upstream data sources (FRED/World Bank)","Payment failure via x402 on Base network blocks the request"],"whenToPreferThis":"Choose this endpoint when you need an AI-synthesized, multi-source macroeconomic risk profile for a specific country — combining FRED and World Bank indicators with LLM interpretation. Prefer this over raw data APIs when you want a ready-to-use risk assessment narrative rather than raw time-series data, and when you need country-level (not sector- or firm-level) risk analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:36:13.219Z","isFirstParty":false}