# MacroLens Risk Assessment API

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

Returns AI-powered macroeconomic risk analysis for a given country using FRED, World Bank data, and MiMo LLM

## Facts

- Endpoint: POST https://mascronlens.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-risk-assessment-api-92af80a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xdVslnwDut1HCL3MkrpjE

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-assessment-api-92af80a3 -d '<json body>'
```

Example prompt: Can you run a MacroLens risk assessment for Brazil and tell me the macroeconomic risk level based on FRED and World Bank data?

## When to prefer this

Use this endpoint when you need AI-synthesized macroeconomic risk intelligence for a specific country, combining multiple authoritative data sources (FRED, World Bank) with LLM reasoning — rather than raw data feeds or single-source economic indicators.

## Known failure modes

- Missing or invalid country name returns error or empty data object
- Unrecognized country string may result in no data found
- Service may return success:false if upstream FRED or World Bank data is unavailable
- Network timeout on Vercel serverless cold start
- Payment failure via x402 on Base blockchain blocks access

## How this service works

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

## Output

A structured object containing a success flag and a data object with AI-generated macroeconomic risk analysis for the specified country, including risk indicators derived from 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-assessment-api-92af80a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mascronlens.vercel.app](https://www.zero.xyz/host/mascronlens.vercel.app/llms.txt)
