# MacroLens Macro Outlook API

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

Generates an AI-powered macroeconomic outlook analysis for a specified country using FRED and World Bank data processed by an LLM

## Facts

- Endpoint: POST https://mascronlens.vercel.app/api/outlook
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-macro-outlook-api-9e6896cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pBcdZPlE_Zu27C8EjkMKF

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-macro-outlook-api-9e6896cf -d '<json body>'
```

Example prompt: Can you pull up the MacroLens macro outlook for Brazil — I need an AI-powered economic analysis based on FRED and World Bank data?

## When to prefer this

Use this endpoint when you need a rapid AI-synthesized macroeconomic outlook for a specific country, drawing on authoritative FRED and World Bank datasets. Prefer this over raw data endpoints when you want a narrative or structured intelligence summary rather than raw time-series data. Ideal for financial research, investment due diligence, or economic briefings where LLM-generated synthesis adds value over plain data retrieval.

## Known failure modes

- Invalid or unrecognized country name returns error
- Missing required 'country' field returns validation error
- Upstream FRED or World Bank data unavailable causes data gap
- LLM inference timeout for complex economies
- Payment failure via x402 prevents endpoint access
- Non-existent country or territory may return empty data

## How this service works

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

## Output

A JSON object containing a success flag and a data object with AI-generated macroeconomic outlook and analysis for the requested country, synthesizing FRED and World Bank economic indicators through an 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-macro-outlook-api-9e6896cf/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)
