# MacroLens Risk API — Country Macro Risk Assessment

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

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

## Facts

- Endpoint: POST https://marcrons.vercel.app/api/risk
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-risk-api-country-macro-risk-assessment-4061d29e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zKSbP7kZ4wYB9f0tdPLSO

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-assessment-4061d29e -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## 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 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.

## 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-assessment-4061d29e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcrons.vercel.app](https://www.zero.xyz/host/marcrons.vercel.app/llms.txt)
