# MacroLens Correlations API

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

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

## Facts

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

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

Example prompt: Run a correlation analysis between US unemployment rate, CPI inflation, and 10-year Treasury yield using MacroLens — I want to see how these three macro indicators move together.

## When to prefer this

Use this endpoint when you need to quantify the statistical relationship between multiple macroeconomic indicators (e.g. GDP, CPI, unemployment, interest rates) and want AI-assisted interpretation. Prefer this over raw FRED API access when you want correlation computation done server-side with LLM narrative. Best for investment research, economic modeling, and policy analysis workflows.

## Known failure modes

- Invalid or unrecognized indicator codes return error
- Empty indicators array causes validation failure
- Insufficient historical data for correlation calculation
- Rate limiting or payment failure via x402 protocol
- Indicators with mismatched time ranges may yield partial results

## 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 flag and a data object containing correlation results between the specified economic indicators, likely including a correlation matrix or pairwise correlation coefficients derived from FRED and World Bank datasets, 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-59a8c12f/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)
