US Consumer Price Index (CPI)

Category: US Economics — FRED  |  Path: /us/cpi  |  Price: $0.005 USDC per call via x402 on Base mainnet
Payment protocol: x402 (HTTP 402 Payment Required) on Base mainnet. No API key or subscription required. AI agents pay per call in USDC using the Coinbase CDP facilitator (https://api.cdp.coinbase.com/platform/v2/x402). Discovery: /.well-known/x402 | agent.json | OpenAPI spec | llms.txt

Description

Returns the latest US Consumer Price Index for All Urban Consumers (CPIAUCSL) from the Federal Reserve Economic Data (FRED) API. Includes the latest value, month-over-month percentage change, a 6-month historical series for trend analysis, and AI-generated commentary on the inflation trend and its implications for Federal Reserve monetary policy.

Sourced directly from FRED (api.stlouisfed.org). Data is cached and refreshed regularly. Response time under 500ms.

Data sources

Agent use cases

This endpoint is designed for AI agents. Typical callers include:

Response schema

{
  "country":    "US",
  "indicator":  "CPI - All Urban Consumers",
  "series_id":  "CPIAUCSL",
  "source":     "FRED (Federal Reserve Economic Data)",
  "period":     "2026-03",          // latest data month
  "value":      314.222,            // index value (1982-84 = 100)
  "unit":       "Index (1982-84=100)",
  "mom_change": 0.241,              // month-over-month % change
  "series": [                       // last 6 months
    { "period": "2026-03", "value": 314.222 },
    { "period": "2026-02", "value": 313.464 }
  ],
  "commentary": "US CPI rose 0.24% in March 2026..."   // AI analysis
}

Example call

GET https://globalapi.dev/us/cpi — $0.005 USDC via x402

How to call this endpoint via x402

  1. Send a standard HTTP GET request to /us/cpi
  2. Receive a 402 Payment Required response with a payment-required header containing base64-encoded payment instructions
  3. Submit payment via the Coinbase CDP facilitator using the x402 client library
  4. Retry the request with the signed payment-signature header
  5. Receive a 200 OK response with the data payload

Compatible client libraries: @x402/client (TypeScript), x402-python (Python).