# MacroLens Country Risk Analysis

> MacroLens Country Risk Analysis is a paid API for AI agents from marcolens.vercel.app, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-15).

Returns AI-generated macro-economic risk assessment for a given country using FRED and World Bank data processed through a MiMo LLM

## Facts

- Endpoint: POST https://marcolens.vercel.app/api/risk
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-country-risk-analysis-5dcb15df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CbTyEOhzHKERLoxFoUW0C

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability macrolens-country-risk-analysis-5dcb15df -d '<json body>'
```

Example prompt: Can you pull up a macro-economic risk assessment for Brazil — I want to understand the current sovereign and economic risk profile before we make an investment decision there.

## When to prefer this

Choose this endpoint when you need an AI-synthesized, multi-source macroeconomic risk assessment for a specific country in a single call, rather than manually aggregating FRED and World Bank indicators. It is especially useful for investment screening, portfolio risk monitoring, or economic research where you want LLM-interpreted macro risk narratives alongside underlying data signals, and are comfortable paying per-call via x402 on Base.

## Known failure modes

- Unrecognized or misspelled country name returns error or empty data
- Country with insufficient FRED/World Bank data coverage may return incomplete analysis
- API payment failure via x402/Base blockchain causes request rejection
- Service unavailability on Vercel hosting returns 5xx error
- Response success:false with no data field if analysis pipeline fails

## How this service works

AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.

## Output

A structured JSON object containing AI-generated macroeconomic risk analysis for the specified country, likely including risk scores, economic indicators sourced from FRED and World Bank datasets, and LLM-synthesized narrative or structured risk factors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country"
 ],
 "properties": {
  "country": {
   "type": "string",
   "description": "country"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macrolens-country-risk-analysis-5dcb15df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcolens.vercel.app](https://www.zero.xyz/host/marcolens.vercel.app/llms.txt)
