# US Treasury Yields and CPI

> US Treasury Yields and CPI is a paid API for AI agents from api.stablecoingateways.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns the US Treasury par yield curve (1-month to 30-year) plus BLS inflation and labor market indicators for the last 13 months with year-over-year changes

## Facts

- Endpoint: GET https://api.stablecoingateways.com/v1/us/rates-macro?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yields-and-cpi-2c01efab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uU7GG4vp65VlaLIYYVHRa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability us-treasury-yields-and-cpi-2c01efab
```

Example prompt: Can you pull the latest US Treasury yield curve and BLS inflation data — I need the full par yield curve from 1-month to 30-year plus CPI, core CPI, unemployment, and payrolls for the last 13 months with year-over-year changes?

## When to prefer this

Choose this endpoint when a finance or macro agent needs authoritative, current US interest rate and inflation data in a single call with a cryptographically verifiable receipt. It is ideal over web scraping or manual lookups because it aggregates Treasury and BLS public data into a structured, signed response. Prefer it over general financial data APIs when you specifically need the official Treasury par yield curve alongside BLS CPI, core CPI, unemployment, and payrolls in one request with an audit trail.

## Known failure modes

- Upstream BLS or Treasury data unavailable — response may return stale cached data with cache timestamps indicating age
- Invalid series parameter value returns a 400 error
- Payment not received or insufficient — 402 Payment Required returned before data is served
- Treasury data delayed on non-business days or federal holidays — latest date may lag by one or more days

## How this service works

US Treasury yields and inflation data: daily Treasury par yield curve (1-month to 30-year) plus BLS CPI, core CPI, unemployment rate and nonfarm payrolls for the last 13 months with year-over-year change. Use when a finance agent needs current US interest rates, inflation or jobs data. Sources: US Treasury, BLS (public). Signed receipt.

## Output

A JSON object containing the US Treasury par yield curve (latest date, one-week-earlier snapshot, and recent daily history), BLS series data (CPI, core CPI, unemployment rate, nonfarm payrolls) covering the last 13 months with year-over-year changes, cache timestamps for BLS and Treasury sources, and an Ed25519-signed receipt including endpoint ID, request and response hashes, USDC price paid, and transaction hash for verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "series": {
       "type": "string",
       "description": "Comma list of treasury,cpi,core_cpi,unemployment,payrolls; default all"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "receipt"
     ],
     "properties": {
      "data": {
       "type": "object",
       "$schema": "https://json-schema.org/draft/2020-12/schema",
       "properties": {
        "cpi": {
         "type": "object",
         "properties": {
          "series_id": {
           "type": "string"
          },
          "observations": {
           "type": "array",
           "items": {
            "type": "object"
           }
          }
         }
        },
        "series": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "sources": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "provenance": {
         "type": "object",
         "description": "Additive evidence block (sg-provenance/1): per-fact source, retrieval time, limits; no score or verdict. Full schema in OpenAPI."
        },
        "treasury_par_yield_curve": {
         "type": "object",
         "properties": {
          "latest": {
           "type": "object"
          },
          "recent": {
           "type": "array",
           "items": {
            "type": "object"
           }
          },
          "one_week_earlier": {
           "type": "object"
          }
         }
        },
        "retrieved_from_cache_as_of": {
         "type": "object",
         "properties": {
          "bls": {
           "type": "string"
          },
          "treasury": {
           "type": "string"
          }
         
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "cpi": {
    "series_id": "CUUR0000SA0",
    "observations": [
     {}
    ]
   },
   "series": [
    "treasury"
   ],
   "sources": [
    "U.S. Department of the Treasury, Daily Treasury Par Yield Curve Rates (public)"
   ],
   "treasury_par_yield_curve": {
    "latest": {
     "date": "2026-10-21",
     "par_yields_pct": {}
    },
    "recent": [
     {}
    ],
    "one_week_earlier": {
     "date": "2026-10-14",
     "par_yields_pct": {}
    }
   },
   "retrieved_from_cache_as_of": {
    "bls": "2026-09",
    "treasury": "2026-10-21"
   }
  },
  "receipt": {
   "v": 1,
   "ts": "2026-10-22T09:00:00Z",
   "sig": "hex",
   "price": {
    "asset": "USDC",
    "amount": "2000",
    "network": "eip155:84532"
   },
   "log_seq": 1,
   "tx_hash": "0x..",
   "endpoint_id": "us-rates-macro-v1",
   "request_hash": "hex",
   "response_hash": "hex"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yields-and-cpi-2c01efab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.stablecoingateways.com](https://www.zero.xyz/host/api.stablecoingateways.com/llms.txt)
