# MacroLens Correlations API

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

Computes statistical correlations between multiple macro-economic indicators using FRED and World Bank data, powered by an AI/LLM layer

## Facts

- Endpoint: POST https://marcroslencs.vercel.app/api/correlations?utm_source=zero.xyz
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-correlations-api-ceae4b56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EkfQl9Tq9MROjcMBzHRka

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

Example prompt: Can you compute the correlations between GDP growth, CPI inflation, and the unemployment rate using MacroLens — I want to see how tightly these indicators move together?

## When to prefer this

Choose this endpoint when you need to quantify statistical relationships between multiple macro-economic time series simultaneously. It is preferable to manual FRED API calls when you want AI-interpreted correlation output without building your own data pipeline. Best for research agents, macro hedge fund analysis, or economic forecasting pipelines that need a quick pairwise relationship map across standard indicators.

## Known failure modes

- Invalid or unrecognized indicator codes — returns success: false with error detail
- Empty indicators array — validation error
- Fewer than two indicators provided — insufficient for correlation computation
- FRED or World Bank data unavailable for requested indicators — upstream data fetch failure
- Rate limiting or payment failure via x402 — 402 Payment Required

## 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 containing a success flag and a data object with computed correlation coefficients between the submitted indicator pairs, likely as a matrix or pairwise statistics derived from FRED/World Bank time series data processed through the MiMo LLM layer.

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