US CPI year-over-year inflation

$0.005 per call · USDC via x402 · GET /api/cpi-yoy

Latest US Consumer Price Index year-over-year inflation rate (headline CPI-U) plus the trailing 12 months of YoY readings - the headline inflation number. Send GET /api/cpi-yoy with no input and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with date, inflationYoYPct, trailing12mo and source.

Source: FRED CPIAUCSL with pc1 transformation. No params.

Category: Live public data · Tags: cpi inflation yoy consumer-price-index macro fred bls headline-inflation · Also found as: us-cpi-year-over-year-inflation cpi-inflation inflation-rate

TRY IN PLAYGROUND →

Parameters

US CPI year-over-year inflation takes no parameters.

Example request

curl -i "https://agent402.tools/api/cpi-yoy"

Without payment this returns HTTP 402 Payment Required with the exact price for cpi-yoy; any x402 v2 or MPP client pays it and retries.

Example response

{
  "date": "2026-05-01",
  "inflationYoYPct": 3.4,
  "trailing12mo": [
    {
      "date": "2025-06-01",
      "value": 3
    }
  ],
  "source": "FRED CPIAUCSL (BLS)"
}
FieldTypeAlways presentIn the example
datestringyes2026-05-01
inflationYoYPctnumberyes3.4
trailing12moarray of objectsyes1 item in the example
sourcestringyesFRED CPIAUCSL (BLS)

From an MCP client

catalog.call {
  "slug": "cpi-yoy",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for cpi-yoy; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/cpi-yoy");

Part of these workflows

US CPI year-over-year inflation is one step in these 5 skill packs, each sold as a single call:

Related tools

FRED time series

$0.005 · GET /api/fred-series

Fetch any of FRED's ~800,000 economic time series by series ID - GDP (GDPC1), CPI (CPIAUCSL), unemployment (UNRATE), fed…

FRED economic release calendar

$0.005 · GET /api/fred-release-calendar

Upcoming and very-recent US economic data release dates - CPI, employment, GDP, FOMC minutes, Treasury auctions, etc. Us…

FRED bulk release observations (v2)

$0.005 · GET /api/fred-release-observations

Bulk-fetch observations for every series in a FRED release in one call. Use it to grab an entire economic report (jobs r…

US unemployment rate (UNRATE)

$0.005 · GET /api/unemployment-rate

Latest US unemployment rate (current, as of date) plus a trailing N-month history of {date, value} for trend, seasonally…

Effective federal funds rate

$0.005 · GET /api/fed-funds

Current effective federal funds rate (current, as of date, in percent) plus a trailing N-day history of {date, value}. S…

FRED catalog search

$0.005 · GET /api/fred-search

Full-text search across FRED's ~800,000 economic time series. Returns series IDs (use with /api/fred-series), titles, fr…