X

X402stock · Inflation

by X402stock

GETBase

$0.02

per call · USD Coin on Base

US consumer price inflation from the Bureau of Labor Statistics: the latest headline CPI-U and core (ex food and energy) index levels with year-over-year percent change, plus recent monthly history. No ticker needed. Use for macro-aware analysis without leaving for a separate data source. Sourced from US BLS. From x402stock, a market & economic data API (x402, USDC).

Endpoint

GET https://x402stock.xyz/api/v1/inflation

9

Calls / 30d

2

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402stock.xyz/api/v1/inflation", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402stock.xyz/api/v1/inflation" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of": "2026-04-01T00:00:00.000Z",
  "core": {
    "latest_index": 326.18,
    "latest_month": "2026-04",
    "yoy_percent": 3.1
  },
  "headline": {
    "latest_index": 320.32,
    "latest_month": "2026-04",
    "yoy_percent": 2.7
  },
  "history": [
    {
      "date": "2026-04",
      "period_name": "April",
      "value": 320.32
    }
  ],
  "series": "cpi_u_us_city_average",
  "source": "us_bls",
  "unit": "index_1982_84=100"
}

Payment details

Pay to0x3070fbb3803819fb5bdfe9286fdc6325a877fa85
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from X402stock & similar services