# MacroLens Risk API — Country Macro Risk Analysis

> MacroLens Risk API — Country Macro Risk Analysis is a paid API for AI agents from v1macros-lensys.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-15).

Returns AI-generated macroeconomic risk assessment for a specified country using FRED and World Bank data processed by MiMo LLM

## Facts

- Endpoint: POST https://v1macros-lensys.vercel.app/api/risk?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-risk-api-country-macro-risk-analysis-df304169
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b7B7N3pRprBUuixtN5gob

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-risk-api-country-macro-risk-analysis-df304169 -d '<json body>'
```

Example prompt: Can you run a MacroLens macro risk assessment for Brazil — I need to understand the country's current macroeconomic risk profile before we finalize this investment decision?

## When to prefer this

Choose this endpoint when you need AI-synthesized country-level macroeconomic risk analysis that combines multiple authoritative data sources (FRED, World Bank) with LLM-generated narrative or scoring — particularly useful for investment screening, market entry decisions, or sovereign risk monitoring where a single-API aggregated view is needed rather than pulling raw indicator data manually.

## Known failure modes

- Unrecognized or misspelled country name returns error or empty data
- Country not covered by FRED/World Bank data sources may return incomplete results
- Upstream data provider outages may cause failure or stale data
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- Vercel cold start may cause occasional latency spikes

## How this service works

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

## Output

Returns a structured object with a success flag and a data object containing AI-synthesized macroeconomic risk indicators and risk scores for the specified country, drawing on FRED and World Bank datasets processed through the MiMo LLM.

## 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-risk-api-country-macro-risk-analysis-df304169/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from v1macros-lensys.vercel.app](https://www.zero.xyz/host/v1macros-lensys.vercel.app/llms.txt)
