{"uid":"cap_MWaq7m1V_qctLMUImLXWE","slug":"x402stock-us-macro-data-api-e6bc2e60","name":"x402stock US Macro Data API","description":"The US macro backdrop in one call: the federal funds rate, CPI and PCE inflation, the labor market (unemployment, payrolls, wages), real GDP, and the Treasury yield curve. No ticker needed. Replaces six macro calls (fed-funds + inflation + pce + labor-market + gdp + treasury-yields) at a lower combined price. Spans FRED, BLS, Treasury; sections degrade independently. From x402stock","url":"https://x402stock.xyz/api/v1/macro","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"cpi":{"core":{"yoy_percent":3.1,"latest_index":326.18,"latest_month":"2026-04"},"unit":"index_1982_84=100","as_of":"2026-04-01T00:00:00.000Z","series":"cpi_u_us_city_average","source":"us_bls","history":[{"date":"2026-04","value":320.32,"period_name":"April"}],"headline":{"yoy_percent":2.7,"latest_index":320.32,"latest_month":"2026-04"}},"gdp":{"unit":"billions_of_chained_2017_usd_saar","as_of":"2026-01-01T00:00:00.000Z","prior":{"date":"2025-10-01","value":23390.1},"title":"Real Gross Domestic Product","change":122.3,"latest":{"date":"2026-01-01","value":23512.4},"source":"fred","history":[{"date":"2026-01-01","value":23512.4}],"frequency":"quarterly","series_id":"GDPC1","yoy_percent":2.4,"change_percent":0.52},"pce":{"core":{"series_id":"PCEPILFE","yoy_percent":2.6,"latest_index":128.9,"latest_month":"2026-04-01"},"unit":"index_2017=100","as_of":"2026-04-01T00:00:00.000Z","series":"pce_price_index","source":"fred","history":[{"date":"2026-04-01","value":127.4}],"headline":{"series_id":"PCEPI","yoy_percent":2.3,"latest_index":127.4,"latest_month":"2026-04-01"}},"as_of":"2026-06-04T12:00:00.000Z","labor":{"as_of":"2026-04-01T00:00:00.000Z","series":"us_labor_market_headline","source":"us_bls","metrics":[{"unit":"percent","change":-0.1,"metric":"unemployment_rate","prior_value":4.2,"latest_month":"2026-04","latest_value":4.1}]},"source":"x402stock","sections":{"cpi":"ok","gdp":"ok","pce":"ok","labor":"ok","fed_funds":"ok","treasury_yields":"ok"},"fed_funds":{"unit":"percent","as_of":"2026-05-01T00:00:00.000Z","prior":{"date":"2026-04-01","value":4.33},"title":"Effective Federal Funds Rate","change":0,"latest":{"date":"2026-05-01","value":4.33},"source":"fred","history":[{"date":"2026-05-01","value":4.33}],"frequency":"monthly","series_id":"FEDFUNDS","yoy_percent":-2.8,"change_percent":0},"treasury_yields":{"unit":"percent","as_of":"2026-05-29T00:00:00.000Z","count":1,"rates":[{"date":"2026-05-29","rates":{"1mo":3.72,"1yr":3.47,"2mo":3.66,"2yr":3.47,"3mo":3.65,"3yr":3.55,"4mo":3.62,"5yr":3.74,"6mo":3.58,"7yr":3.95,"10yr":4.19,"20yr":4.81,"30yr":4.86,"1.5mo":3.71}}],"series":"daily_treasury_par_yield_curve","source":"us_treasury","maturities":["1mo","1.5mo","2mo","3mo","4mo","6mo","1yr","2yr","3yr","5yr","7yr","10yr","20yr","30yr"]}}},"example":{"request":{"properties":"cpi,unemployment,gdp"},"response":{"cpi":{"core":{"yoy_percent":2.85,"latest_index":336.846,"latest_month":"2026-05"},"unit":"index_1982_84=100","as_of":"2026-05-01T00:00:00.000Z","series":"cpi_u_us_city_average","source":"us_bls","history":[{"date":"2026-05","value":335.123,"period_name":"May"},{"date":"2026-04","value":333.02,"period_name":"April"},{"date":"2026-03","value":330.213,"period_name":"March"},{"date":"2026-02","value":326.785,"period_name":"February"},{"date":"2026-01","value":325.252,"period_name":"January"},{"date":"2025-12","value":324.054,"period_name":"December"},{"date":"2025-11","value":324.122,"period_name":"November"},{"date":"2025-09","value":324.8,"period_name":"September"},{"date":"2025-08","value":323.976,"period_name":"August"},{"date":"2025-07","value":323.048,"period_name":"July"},{"date":"2025-06","value":322.561,"period_name":"June"},{"date":"2025-05","value":321.465,"period_name":"May"},{"date":"2025-04","value":320.795,"period_name":"April"}],"headline":{"yoy_percent":4.25,"latest_index":335.123,"latest_month":"2026-05"}},"gdp":{"unit":"billions_of_chained_2017_usd_saar","as_of":"2026-01-01T00:00:00.000Z","prior":{"date":"2025-10-01","value":24055.749},"title":"Real Gross Domestic Product","change":96.907,"latest":{"date":"2026-01-01","value":24152.656},"source":"fred","history":[{"date":"2026-01-01","value":24152.656},{"date":"2025-10-01","value":24055.749},{"date":"2025-07-01","value":24026.834},{"date":"2025-04-01","value":23770.976},{"date":"2025-01-01","value":23548.21},{"date":"2024-10-01","value":23586.542},{"date":"2024-07-01","value":23478.57},{"date":"2024-04-01","value":23286.508},{"date":"2024-01-01","value":23082.119},{"date":"2023-10-01","value":23033.78},{"date":"2023-07-01","value":22840.989},{"date":"2023-04-01","value":22580.499},{"date":"2023-01-01","value":22439.607},{"date":"2022-10-01","value":22278.345},{"date":"2022-07-01","value":22125.625},{"date":"2022-04-01","value":21967.045},{"date":"2022-01-01","value":21932.71},{"date":"2021-10-01","value":21988.737},{"date":"2021-07-01","value":21617.828},{"date":"2021-04-01","value":21440.929},{"date":"2021-01-01","value":21082.134},{"date":"2020-10-01","value":20791.917},{"date":"2020-07-01","value":20558.879},{"date":"2020-04-01","value":19077.992}],"frequency":"quarterly","series_id":"GDPC1","yoy_percent":2.57,"change_percent":0.4},"pce":{"core":{"series_id":"PCEPILFE","yoy_percent":3.29,"latest_index":129.63,"latest_month":"2026-04-01"},"unit":"index_2017=100","as_of":"2026-04-01T00:00:00.000Z","series":"pce_price_index","source":"fred","history":[{"date":"2026-04-01","value":130.902},{"date":"2026-03-01","value":130.381},{"date":"2026-02-01","value":129.52},{"date":"2026-01-01","value":129.002},{"date":"2025-12-01","value":128.576},{"date":"2025-11-01","value":128.152},{"date":"2025-10-01","value":127.871},{"date":"2025-09-01","value":127.625},{"date":"2025-08-01","value":127.293},{"date":"2025-07-01","value":126.96},{"date":"2025-06-01","value":126.743},{"date":"2025-05-01","value":126.38},{"date":"2025-04-01","value":126.15},{"date":"2025-03-01","value":125.941},{"date":"2025-02-01","value":125.921},{"date":"2025-01-01","value":125.417},{"date":"2024-12-01","value":124.979},{"date":"2024-11-01","value":124.637},{"date":"2024-10-01","value":124.494},{"date":"2024-09-01","value":124.164},{"date":"2024-08-01","value":123.889},{"date":"2024-07-01","value":123.736},{"date":"2024-06-01","value":123.539},{"date":"2024-05-01","value":123.348}],"headline":{"series_id":"PCEPI","yoy_percent":3.77,"latest_index":130.902,"latest_month":"2026-04-01"}},"as_of":"2026-06-12T05:01:21.520Z","labor":{"as_of":"2026-05-01T00:00:00.000Z","series":"us_labor_market_headline","source":"us_bls","metrics":[{"unit":"percent","change":0,"metric":"unemployment_rate","prior_value":4.3,"latest_month":"2026-05","latest_value":4.3},{"unit":"percent","change":0,"metric":"labor_force_participation_rate","prior_value":61.8,"latest_month":"2026-05","latest_value":61.8},{"unit":"thousands_of_jobs","change":172,"metric":"nonfarm_payrolls","prior_value":158829,"latest_month":"2026-05","latest_value":159001},{"unit":"usd_per_hour","change":0.12,"metric":"avg_hourly_earnings","prior_value":37.41,"latest_month":"2026-05","latest_value":37.53}]},"source":"x402stock","sections":{"cpi":"ok","gdp":"ok","pce":"ok","labor":"ok","fed_funds":"ok","treasury_yields":"ok"},"fed_funds":{"unit":"percent","as_of":"2026-05-01T00:00:00.000Z","prior":{"date":"2026-04-01","value":3.64},"title":"Effective Federal Funds Rate","change":-0.01,"latest":{"date":"2026-05-01","value":3.63},"source":"fred","history":[{"date":"2026-05-01","value":3.63},{"date":"2026-04-01","value":3.64},{"date":"2026-03-01","value":3.64},{"date":"2026-02-01","value":3.64},{"date":"2026-01-01","value":3.64},{"date":"2025-12-01","value":3.72},{"date":"2025-11-01","value":3.88},{"date":"2025-10-01","value":4.09},{"date":"2025-09-01","value":4.22},{"date":"2025-08-01","value":4.33},{"date":"2025-07-01","value":4.33},{"date":"2025-06-01","value":4.33},{"date":"2025-05-01","value":4.33},{"date":"2025-04-01","value":4.33},{"date":"2025-03-01","value":4.33},{"date":"2025-02-01","value":4.33},{"date":"2025-01-01","value":4.33},{"date":"2024-12-01","value":4.48},{"date":"2024-11-01","value":4.64},{"date":"2024-10-01","value":4.83},{"date":"2024-09-01","value":5.13},{"date":"2024-08-01","value":5.33},{"date":"2024-07-01","value":5.33},{"date":"2024-06-01","value":5.33}],"frequency":"monthly","series_id":"FEDFUNDS","yoy_percent":-16.17,"change_percent":-0.27},"treasury_yields":{"unit":"percent","as_of":"2026-06-10T00:00:00.000Z","count":1,"rates":[{"date":"2026-06-10","rates":{"1mo":3.69,"1yr":3.9,"2mo":3.72,"2yr":4.13,"3mo":3.79,"3yr":4.17,"4mo":3.8,"5yr":4.27,"6mo":3.82,"7yr":4.4,"10yr":4.55,"20yr":5.04,"30yr":5.03,"1.5mo":3.7}}],"series":"daily_treasury_par_yield_curve","source":"us_treasury","maturities":["1mo","1.5mo","2mo","3mo","4mo","6mo","1yr","2yr","3yr","5yr","7yr","10yr","20yr","30yr"]}}},"exampleRequest":{"properties":"cpi,unemployment,gdp"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"5.0000","medianCents":"5.0000","p90Cents":"5.0000","minCents":"5.0000","maxCents":"5.0000","p95Cents":"5.0000","sampleCount":1,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_abJFZZKxRWL7v2d1H78qG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a comprehensive snapshot of US macroeconomic indicators including CPI, GDP, PCE, labor market data, Fed funds rate, and Treasury yields","exampleAgentPrompt":"Pull me the full US macro snapshot — CPI, GDP, PCE, unemployment, Fed funds rate, and Treasury yields — all in one call, no API key needed, paying per request in USDC.","exampleUseCases":[{"title":"Real-time portfolio risk assessment","prompt":"Grab the latest macro snapshot with CPI, unemployment, and Treasury yields so I can assess how my portfolio might react to current economic conditions and adjust my hedges accordingly."},{"title":"Inflation-adjusted budget forecasting","prompt":"Pull the current headline and core CPI numbers along with PCE inflation data so I can recalibrate our annual budget projections and expense forecasts."},{"title":"Fed policy impact analysis","prompt":"Get me the Fed funds rate, the full Treasury yield curve, and the latest GDP growth figures so I can model how upcoming monetary policy decisions might affect bond prices and lending rates."}],"resultDescription":"A JSON object containing the latest values, historical series, and year-over-year changes for: CPI (headline and core), real GDP, PCE price index (headline and core), labor market metrics (unemployment rate), effective Fed funds rate, and Treasury yield curve across maturities (1mo to 30yr), each with source attribution and as-of timestamps.","failureModes":["HTTP 402 Payment Required if USDC payment via x402/Base is not attached or insufficient","HTTP 400 if properties parameter is malformed","Partial data sections may return status other than 'ok' if upstream BLS/FRED sources are delayed or unavailable","Truncated history arrays if upstream data source has gaps or rate limits"],"whenToPreferThis":"Use this endpoint when you need a single consolidated US macroeconomic dashboard — CPI, GDP, PCE, labor, Fed rate, and Treasury yields — in one pay-per-call request with no API key or subscription. Prefer this over individual FRED or BLS API calls when you want pre-aggregated macro data for AI agent workflows, especially when operating in a no-account, micropayment (USDC/x402) environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-09-02T01:58:39.354Z","lastSuccessfullyRanAt":"2026-09-02T01:58:39.354Z","lastHealthCheckAt":"2026-09-14T18:46:33.929Z","isFirstParty":false}