{"uid":"cap_wtumGUfgPlhXnLK-ZC15z","slug":"macrolens-correlations-api-90528910","name":"MacroLens Correlations API","description":"AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.","url":"https://marcolens.vercel.app/api/correlations","method":"POST","headers":{},"bodySchema":{"type":"object","required":["indicators"],"properties":{"indicators":{"type":"array","description":"indicators"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.35","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vhGYfpHdMfnl8xqTTRJvd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes statistical correlations between multiple macro-economic indicators using FRED and World Bank data, powered by an LLM","exampleAgentPrompt":"Can you calculate the correlation between US inflation (CPI) and unemployment rate using MacroLens? Give me the statistical relationship between those two indicators.","exampleUseCases":[{"title":"Phillips Curve Validation","prompt":"Run a correlation analysis between the US unemployment rate and CPI inflation — I want to see if the classic Phillips curve relationship still holds in recent data."},{"title":"Recession Indicator Relationships","prompt":"Can you correlate GDP growth, the yield curve spread, and unemployment rate together? I'm trying to figure out which indicators move together before a recession."},{"title":"Cross-Asset Macro Analysis","prompt":"Analyze the correlation between the Federal Funds Rate, 10-year Treasury yield, and US dollar index — I need to understand how monetary policy transmits through these indicators."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:34.359Z","isFirstParty":false}