# MacroLens Inflation Analysis API

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

Retrieves AI-powered inflation analysis for a given economic indicator using FRED and World Bank data processed by MiMo LLM

## Facts

- Endpoint: POST https://mascronlens.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-dad5ede3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TMsmNYwLFjGdzO8gjftEb

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

Example prompt: Pull the MacroLens inflation analysis for the CPIAUCSL indicator and give me an AI-powered breakdown of what the data shows.

## When to prefer this

Use this endpoint when you need AI-interpreted inflation analysis grounded in authoritative FRED and World Bank data, rather than raw data feeds or generic LLM knowledge. Prefer this over direct FRED API calls when you want LLM-synthesized narrative alongside the numbers, and over general-purpose LLMs when you need up-to-date, sourced economic data.

## Known failure modes

- Invalid or unrecognized indicator code returns error or empty data
- Payment failure via x402/Base blockchain causes 402 response
- FRED or World Bank data source unavailable causes upstream error
- Missing required 'indicator' field returns validation error
- Network timeout from Vercel serverless cold start

## 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 inflation metrics and AI-generated macroeconomic analysis sourced from FRED and World Bank datasets, interpreted by the MiMo LLM.

## 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-dad5ede3/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)
