# MacroLens Macro Economic Outlook API

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

Generates an AI-powered macroeconomic outlook report for a specified country using FRED and World Bank data analyzed by the MiMo LLM

## Facts

- Endpoint: POST https://marcolens.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-economic-outlook-api-bdf07d4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Thb7NMZpIigolEyYmj75R

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-economic-outlook-api-bdf07d4d -d '<json body>'
```

Example prompt: Can you pull a MacroLens macro economic outlook for Germany — I want an AI-powered analysis based on FRED and World Bank data covering the current economic conditions?

## When to prefer this

Choose this endpoint when you need a comprehensive, AI-synthesized macroeconomic narrative for a specific country rather than raw data series. It is ideal when you want FRED and World Bank indicators interpreted and contextualized by an LLM in a single call, rather than querying individual data sources separately and writing your own analysis. Best suited for investment screening, risk assessment, or economic briefing use cases where a readable, structured outlook is more valuable than raw numbers.

## Known failure modes

- Invalid or unrecognized country name returns an error or empty data
- Network or LLM inference timeout causes failed response
- Payment failure via x402/Base blockchain results in 402 response before analysis is returned
- Sparse data availability for smaller or sanctioned countries may yield incomplete analysis
- success: false returned with no data object if the backend pipeline fails

## How this service works

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

## Output

Returns a structured JSON object with a success flag and a data object containing an AI-generated macroeconomic outlook for the specified country, synthesizing FRED and World Bank indicators with LLM-produced narrative analysis covering economic conditions, trends, and key metrics.

## 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-economic-outlook-api-bdf07d4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marcolens.vercel.app](https://www.zero.xyz/host/marcolens.vercel.app/llms.txt)
