{"uid":"cap_JpPP4ZJ0OjyL688yWqUeo","slug":"fathom-macroeconomic-data-api-compare-series-9363b374","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://fathom-opal.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_THPvefpWjLObOHbXsmR_7","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 cross-series analysis","exampleAgentPrompt":"Pull the last 20 observations for US GDP (GDPC1), CPI inflation (CPIAUCSL), and the unemployment rate (UNRATE) from FRED and show me how they compare side by side.","exampleUseCases":[{"title":"Inflation vs Interest Rate analysis","prompt":"Compare the Consumer Price Index (CPIAUCSL) and the Federal Funds Rate (FEDFUNDS) using the last 24 observations — I want to see how rate hikes have tracked inflation over time."},{"title":"Labor market snapshot across indicators","prompt":"Can you pull the last 12 data points for unemployment (UNRATE), labor force participation (CIVPART), and job openings (JTSJOL) from FRED and compare them so I can understand the current labor market?"},{"title":"GDP and recession indicator comparison","prompt":"Compare US real GDP (GDPC1) with the NBER recession indicator (USREC) over the last 40 observations so I can see how GDP moved during recessions."}],"resultDescription":"Returns a structured comparison object containing aligned time series observations for each requested FRED series ID, along with a source attribution string identifying FRED as the data provider. The comparison object maps each series ID to its observations, enabling side-by-side analysis of up to 5 macroeconomic indicators.","failureModes":["Invalid FRED series ID returns an error or empty data for that series","Fewer than 2 or more than 5 series IDs provided may return a validation error","Series with different frequencies (e.g. monthly vs quarterly) may not align cleanly","Rate limiting or upstream FRED API unavailability causes 5xx errors","Invalid limit parameter (non-numeric or out-of-range) may cause unexpected behavior"],"whenToPreferThis":"Use this endpoint when you need to compare multiple macroeconomic time series simultaneously and already know the FRED series IDs. It is ideal for correlation analysis, charting economic trends across indicators, or building dashboards that juxtapose GDP, inflation, unemployment, or interest rate data. Prefer this over single-series endpoints when the user's question involves relationships between two or more indicators.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:34.768Z","isFirstParty":false}