{"uid":"cap_9QfNByKg8bI9Ne4WCLU3-","slug":"fathom-macroeconomic-data-api-compare-series-989c976c","name":"Fathom Macroeconomic Data API — Compare Series","description":"Free macroeconomic data API powered by FRED. 816,000+ economic time series. GDP, inflation, unemployment, interest rates, and more.","url":"https://fathoms.vercel.app/api/compare","method":"POST","headers":{},"bodySchema":{"type":"object","required":["seriesIds"],"properties":{"limit":{"type":"string","description":"Observations per series (default: 10)"},"seriesIds":{"type":"array","description":"Array of 2-5 FRED series IDs to compare"}}},"responseSchema":{"type":"object","required":["source"],"properties":{"source":{"type":"string"},"comparison":{"type":"object"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8UUbO8RifmmdIiyu74I67","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares 2–5 FRED economic time series side-by-side, returning aligned observations for multi-indicator macroeconomic analysis.","exampleAgentPrompt":"Can you compare GDP growth (GDPC1), the unemployment rate (UNRATE), and CPI inflation (CPIAUCSL) side by side using the last 20 observations for each?","exampleUseCases":[{"title":"Inflation vs interest rate correlation","prompt":"Pull the last 24 observations of the federal funds rate (FEDFUNDS) and CPI inflation (CPIAUCSL) from FRED and show them side by side so I can see how rate hikes tracked against inflation."},{"title":"Recession indicator dashboard","prompt":"Compare GDP (GDPC1), unemployment (UNRATE), and retail sales (RSAFS) using the last 12 observations each — I want to see how these three indicators moved together during recent downturns."},{"title":"Yield curve analysis","prompt":"Can you pull the 2-year Treasury yield (DGS2) and 10-year Treasury yield (DGS10) from FRED and compare their last 30 observations? I'm watching the yield curve spread."}],"resultDescription":"Returns a JSON object with a 'source' field identifying the data provider and a 'comparison' object containing aligned time-series observations for each requested FRED series ID, enabling side-by-side analysis of multiple economic indicators.","failureModes":["Invalid or unrecognized FRED series ID returns an error or missing data for that series","Requesting fewer than 2 or more than 5 series IDs may be rejected or produce incomplete results","FRED data unavailability or rate limits on the upstream source can cause empty or partial responses","Non-numeric or malformed 'limit' parameter may default to 10 or cause a validation error","Payment failure via x402 protocol results in a 402 response before data is returned"],"whenToPreferThis":"Choose this endpoint when you need to compare multiple FRED economic indicators simultaneously in a single call rather than fetching them one at a time. It is ideal for correlation analysis, dashboard building, or economic research requiring aligned time-series data across 2–5 series. Prefer it over single-series endpoints when cross-indicator comparison is the explicit goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:42:45.599Z","isFirstParty":false}