{"uid":"cap_eEfI_6wN0zEhBJSduHsRC","slug":"1gateway-us-macro-time-series-ed79930a","name":"1gateway US Macro Time Series","description":"Use when you need a US macro time series (pairs with Korea's Bank of Korea series). Input: series (unemployment_rate, cpi, core_cpi, payrolls, avg_hourly_earnings, ppi, public_debt, avg_rate_bills, avg_rate_notes, avg_rate_bonds), optional start, end (years, max 10-year span, default last 3 years). Output: JSON title, unit, frequency, observations [{period,value}], latest and source attribution. Data: BLS and US Treasury Fiscal Data. Example: ?series=cpi&start=2024","url":"https://1gateway.dev/v1/macro/us?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["series"],"properties":{"end":{"type":"string","pattern":"^\\d{4}$","description":"End year (default current year)"},"start":{"type":"string","pattern":"^\\d{4}$","description":"Start year (default end-2, min 1990)"},"series":{"enum":["unemployment_rate","cpi","core_cpi","payrolls","avg_hourly_earnings","ppi","public_debt","avg_rate_bills","avg_rate_notes","avg_rate_bonds"],"type":"string","description":"Series id (see enum; BLS or Treasury)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["series","title","unit","frequency","start","end","latest","count","observations","upstreamSeriesId"],"properties":{"end":{"type":"integer"},"unit":{"type":"string"},"count":{"type":"integer"},"start":{"type":"integer"},"title":{"type":"string"},"latest":{"type":"object","properties":{"value":{"type":"number"},"period":{"type":"string"}},"additionalProperties":true},"series":{"type":"string"},"frequency":{"type":"string"},"observations":{"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"period":{"type":"string"}},"additionalProperties":true}},"upstreamSeriesId":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w1jYEBFipuPIRRstmKZsD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches US macroeconomic time series data (unemployment, CPI, payrolls, Treasury rates, etc.) from BLS and US Treasury Fiscal Data sources","exampleAgentPrompt":"Can you pull the US CPI time series starting from 2022 so I can see how inflation has trended over the past few years?","exampleUseCases":[{"title":"Inflation trend analysis for report","prompt":"Get me the US CPI and core CPI data from 2020 to 2024 so I can compare headline vs core inflation trends."},{"title":"Labor market dashboard update","prompt":"Fetch the latest US unemployment rate and payrolls data for 2023 and 2024 — I want to see how the job market has been moving."},{"title":"Treasury debt cost monitoring","prompt":"Pull the average interest rate on US Treasury notes and bonds from 2021 through 2024 so I can track how much more the government is paying to borrow."}],"resultDescription":"A JSON object containing the series name, title, unit, frequency, start/end years, observation count, an array of period-value pairs (e.g. monthly or annual data points), the latest data point, the upstream series ID, cache info, and source attribution from BLS or US Treasury Fiscal Data.","failureModes":["Invalid or unsupported series identifier returns an error","Date range exceeding 10 years is rejected","Start year before 1990 is rejected","Missing required 'series' parameter returns a 400 error","Upstream BLS or Treasury data temporarily unavailable may cause 5xx errors"],"whenToPreferThis":"Use this endpoint when you need clean, structured US macroeconomic time series data with clear attribution and consistent JSON output, especially for BLS labor statistics or US Treasury debt/rate series. Prefer it over scraping government websites or calling BLS/Treasury APIs directly, as it handles formatting, caching, and normalization. It pairs well with the sibling Korea Bank of Korea endpoint for cross-country macro comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T12:39:59.670Z","isFirstParty":false,"canonicalSlug":"1gateway-us-macro-time-series-ed79930a"}