# MacroLens Inflation Analysis API

> MacroLens Inflation 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-14).

Returns AI-powered inflation analysis for a specified economic indicator using FRED and World Bank data processed through MiMo LLM

## Facts

- Endpoint: POST https://marcolens.vercel.app/api/inflation
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-inflation-analysis-api-1c798713
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NRw1V7vSXtssH4GHDTAor

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-inflation-analysis-api-1c798713 -d '<json body>'
```

Example prompt: Can you pull MacroLens inflation analysis for the CPI indicator and tell me what the AI says about current inflation trends?

## When to prefer this

Choose this endpoint when you need AI-interpreted inflation analysis rather than raw data — it combines FRED and World Bank data sources with MiMo LLM narrative intelligence in a single call, ideal for agents that need both the numbers and a human-readable economic interpretation of inflation indicators without building their own analysis pipeline.

## Known failure modes

- Invalid or unrecognized indicator string returns failure response
- Missing required indicator field returns 400-level error
- LLM inference timeout causes delayed or failed response
- FRED or World Bank data unavailable for specified indicator
- Payment of 0.4 USDC not fulfilled via x402 protocol causes 402 payment required error

## 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 boolean and a data object containing AI-generated inflation analysis, including macro-economic data sourced from FRED and World Bank, interpreted through the MiMo LLM to provide narrative or structured insights about the specified inflation indicator.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "indicator"
 ],
 "properties": {
  "indicator": {
   "type": "string",
   "description": "indicator"
  }
 }
}
```

## 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-inflation-analysis-api-1c798713/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)
