# MacroLens Correlations API

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

Computes AI-powered correlation analysis between macro-economic indicators using FRED and World Bank data

## Facts

- Endpoint: POST https://makrolens.vercel.app/api/correlations
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-correlations-api-9a70d63b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OylWcRvTSMOsEFc_gHh2g

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-correlations-api-9a70d63b -d '<json body>'
```

Example prompt: Can you run a correlation analysis on these macro indicators — US unemployment rate, CPI inflation, and the federal funds rate — and tell me how strongly they're related to each other?

## When to prefer this

Choose this endpoint when you need AI-augmented correlation analysis between named macro-economic indicators sourced from authoritative datasets (FRED, World Bank) without building your own data pipeline. Ideal for economic research agents, financial dashboards, and policy analysis workflows where understanding statistical relationships between indicators is the primary goal.

## Known failure modes

- Invalid or unrecognized indicator codes return an error
- Empty indicators array causes validation failure
- Fewer than two indicators provided prevents correlation computation
- FRED or World Bank data unavailable for selected indicators
- Payment not completed results in 402 response
- Rate limit exceeded for the x402 payment session

## How this service works

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

## Output

Returns a success flag and a data object containing the computed correlation results between the submitted economic indicators, including pairwise correlation coefficients and potentially statistical significance derived from FRED and World Bank datasets analyzed via MiMo LLM.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "indicators"
 ],
 "properties": {
  "indicators": {
   "type": "array",
   "description": "indicators"
  }
 }
}
```

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