# MacroLens Risk API — Country Macro Risk Analysis

> MacroLens Risk API — Country Macro Risk Analysis is a paid API for AI agents from marcroslencs.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 specified country using FRED and World Bank data processed by a MiMo LLM

## Facts

- Endpoint: POST https://marcroslencs.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-api-country-macro-risk-analysis-9ad48670
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hKlru-TSVLn9cZCjOPimJ

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-9ad48670 -d '<json body>'
```

Example prompt: Can you run a macro-economic risk assessment on Brazil — I want an AI-powered analysis pulling in FRED and World Bank data to understand the country's risk profile?

## When to prefer this

Choose this endpoint when you need AI-synthesized macro-economic risk intelligence for a specific country, combining multiple authoritative data sources (FRED, World Bank) with LLM narrative analysis. Prefer it over raw data APIs when you need an opinionated risk assessment rather than raw indicators, and when you want a single call to return a holistic country risk picture rather than assembling data from multiple sources yourself.

## Known failure modes

- Invalid or unrecognized country name returns an error or empty data object
- Country with insufficient FRED/World Bank data coverage may return partial results
- Payment failure via x402/Base blockchain returns 402 or authorization error
- Service downtime on Vercel deployment returns 5xx errors
- Ambiguous country names (e.g. 'Congo') may return results for the wrong country

## How this service works

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

## Output

Returns a JSON object with a success flag and a data object containing AI-generated macro-economic risk analysis for the specified country, likely including risk scores, economic indicator summaries, and narrative insights derived from FRED and World Bank datasets processed by 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-9ad48670/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcroslencs.vercel.app](https://www.zero.xyz/host/marcroslencs.vercel.app/llms.txt)
