# MacroLens Correlations API

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

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

## Facts

- Endpoint: POST https://marcolens.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-90528910
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wtumGUfgPlhXnLK-ZC15z

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

Example prompt: Can you calculate the correlation between US inflation (CPI) and unemployment rate using MacroLens? Give me the statistical relationship between those two indicators.

## When to prefer this

Choose this endpoint when you need to quantify the statistical relationship between two or more macro-economic time series from FRED or World Bank. It is ideal for economic research, portfolio risk analysis, or verifying theoretical macro relationships. Prefer it over generic statistics APIs when you need pre-integrated macro data without managing your own data pipeline, and over individual data fetch endpoints when you specifically want cross-indicator correlation computation rather than raw data.

## Known failure modes

- Invalid or unrecognized indicator identifiers return an error
- Empty indicators array fails schema validation
- Insufficient overlapping data points for two indicators returns computation error
- FRED or World Bank data source temporarily unavailable
- Payment not included or insufficient USDC balance triggers x402 payment required response
- Too many indicators may hit processing limits

## 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 the computed correlation matrix or pairwise correlation coefficients between the requested macro-economic indicators, likely including statistical metadata such as correlation values, time periods, and data sources.

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