US Treasury Yield Curve Snapshot

Category: US Economics — FRED  |  Path: /us/yields  |  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 a US Treasury yield curve snapshot covering 2-year, 5-year, 10-year, and 30-year constant-maturity yields plus the 10-year minus 2-year spread. Includes concise AI commentary on whether the curve is normal, flat, or inverted and what that may imply for growth expectations and Fed policy.

Data sources

Agent use cases

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

Response schema

{
  "as_of": "2026-05-14",
  "yields": {
    "DGS2": { "value": 4.82, "unit": "percent" },
    "DGS10": { "value": 4.55, "unit": "percent" },
    "T10Y2Y": { "value": -0.27, "unit": "percent_points" }
  },
  "curve_shape": "inverted",
  "commentary": "..."
}

Example call

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

How to call this endpoint via x402

  1. Send a standard HTTP GET request to /us/yields
  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).