# MacroLens Correlations API

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

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

## Facts

- Endpoint: POST https://v1macros-lensys.vercel.app/api/correlations?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-correlations-api-9f05d274
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZIArz7e4-ppLhi_LWLaV7

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

Example prompt: Can you run a correlation analysis on these macro indicators — GDP growth, CPI inflation, and the federal funds rate — and tell me how strongly they move together?

## When to prefer this

Choose this endpoint when you need to quantify the statistical relationship between multiple macroeconomic indicators backed by authoritative FRED and World Bank datasets, especially when you want AI-interpreted results rather than raw numbers. Prefer this over manual data downloads or generic statistics APIs when you need fast, pre-integrated macro data correlation with minimal setup.

## Known failure modes

- Invalid or unrecognized indicator IDs returns error
- Fewer than two indicators provided may fail validation
- FRED or World Bank data unavailable for requested series
- Insufficient historical data overlap between indicators to compute correlation
- Payment failure via x402 protocol on Base blockchain
- Rate limiting or timeout on LLM analysis step

## 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 correlation results between the specified economic indicators, likely including correlation coefficients or a correlation matrix derived from FRED and World Bank time series data, potentially with AI-generated interpretation from the 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-9f05d274/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from v1macros-lensys.vercel.app](https://www.zero.xyz/host/v1macros-lensys.vercel.app/llms.txt)
