# MacroLens GDP Analysis API

> MacroLens GDP Analysis 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).

Returns AI-powered GDP analysis for a given country using FRED and World Bank data processed by an LLM

## Facts

- Endpoint: POST https://marcolens.vercel.app/api/gdp
- 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-gdp-analysis-api-c0bd96f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vXt8QcXc-9Jo6PeezQhY4

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-gdp-analysis-api-c0bd96f7 -d '<json body>'
```

Example prompt: Give me an AI-powered GDP analysis for Germany — pull in the latest FRED and World Bank data and tell me what the numbers mean for its economic outlook.

## When to prefer this

Choose this endpoint when you need AI-interpreted GDP data for a specific country backed by authoritative sources (FRED + World Bank), rather than raw data feeds or manual economic lookups. Ideal for agents building macro-economic reports, investment briefs, or country risk assessments where LLM synthesis of the numbers is valuable.

## Known failure modes

- Invalid or unrecognized country name returns an error or empty data object
- Missing required 'country' field returns a validation error
- Upstream FRED or World Bank data unavailable causes partial or failed response
- LLM inference failure may result in success:false with no analysis
- Payment via x402 not completed results in 402 Payment Required response

## How this service works

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

## Output

A JSON object with a success boolean and a data object containing GDP figures sourced from FRED and World Bank, along with AI-generated (MiMo LLM) macro-economic interpretation and insights for the requested country.

## 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-gdp-analysis-api-c0bd96f7/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)
