# Treasury Yields API

> Treasury Yields provides current and historical US Treasury constant-maturity market yields across the full curve (1-month through 30-year), plus TIPS real yields. Every plan gets today's full nominal curve. Paid plans add history back to 2010, TIPS real yields, day-over-day changes, curve spreads, inversion flags, the curve's shape and breakeven inflation.

**Endpoint:** `GET https://api.apiverve.com/v1/treasuryyields`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/treasuryyields

## Overview

Treasury Yields sources daily constant-maturity market yields from the Federal Reserve (FRED), the same rates used to construct the Treasury yield curve. Nominal yields span 1-month to 30-year maturities and TIPS real yields span 5-year to 30-year. Historical month-end snapshots go back to January 2010. Paid plans also get the standard curve spreads (10yr-2yr, 10yr-3mo, 30yr-5yr, 5yr-2yr), inversion flags, the curve's shape, and breakeven inflation at each TIPS maturity (the nominal yield minus the real yield, the market's implied inflation rate).

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/treasuryyields?date=2025-06&type=bonds" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `date` | string | No | Optional month in YYYY-MM format, back to 2010-01; returns that month's closing curve. Omit for the latest daily curve.. Premium field |
| `type` | string | No | Optional filter for a single point. Legacy security types: bills, notes, bonds, tips, frn. Or a maturity: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr. tips and frn are paid-plan values; on the free plan they return a null rate with a note |

## Response fields

- `date` — string · The date of the treasury yields data in YYYY-MM-DD format
- `yields` — object · Nominal constant-maturity market yields (percent) keyed by maturity: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr
  - `yields.1mo` — number
  - `yields.3mo` — number
  - `yields.6mo` — number
  - `yields.1yr` — number
  - `yields.2yr` — number
  - `yields.3yr` — number
  - `yields.5yr` — number
  - `yields.7yr` — number
  - `yields.10yr` — number
  - `yields.20yr` — number
  - `yields.30yr` — number
- `realYields` — object · TIPS real (inflation-indexed) constant-maturity yields (percent) keyed by maturity: 5yr, 7yr, 10yr, 20yr, 30yr · (premium)
  - `realYields.5yr` — number · (premium)
  - `realYields.7yr` — number · (premium)
  - `realYields.10yr` — number · (premium)
  - `realYields.20yr` — number · (premium)
  - `realYields.30yr` — number · (premium)
- `bills` — number · Benchmark short-term yield (3-month) as percentage
- `notes` — number · Benchmark note yield (10-year) as percentage
- `bonds` — number · Benchmark long bond yield (30-year) as percentage
- `tips` — number · Benchmark TIPS real yield (10-year) as percentage · (premium)
- `frn` — number · Floating Rate Note reference yield (3-month bill) as percentage · (premium)
- `changes` — object · Day-over-day change statistics, keyed by legacy type and by maturity · (premium)
  - `changes.bills` — object · Change data for the 3-month benchmark including change1d and direction · (premium)
    - `changes.bills.change1d` — number · One-day percentage point change for the 3-month benchmark · (premium)
    - `changes.bills.direction` — string · Direction of change: up, down, or unchanged · (premium)
  - `changes.notes` — object · Change data for the 10-year benchmark including change1d and direction · (premium)
    - `changes.notes.change1d` — number · One-day percentage point change for the 10-year benchmark · (premium)
    - `changes.notes.direction` — string · Direction of change: up, down, or unchanged · (premium)
  - `changes.bonds` — object · Change data for the 30-year benchmark including change1d and direction · (premium)
    - `changes.bonds.change1d` — number · One-day percentage point change for the 30-year benchmark · (premium)
    - `changes.bonds.direction` — string · Direction of change: up, down, or unchanged · (premium)
  - `changes.tips` — object · Change data for the 10-year TIPS benchmark including change1d and direction · (premium)
    - `changes.tips.change1d` — number · One-day percentage point change for the 10-year TIPS benchmark · (premium)
    - `changes.tips.direction` — string · Direction of change: up, down, or unchanged · (premium)
  - `changes.frn` — object · Change data for the FRN reference (3-month) including change1d and direction · (premium)
    - `changes.frn.change1d` — number · One-day percentage point change for the FRN reference · (premium)
    - `changes.frn.direction` — string · Direction of change: up, down, or unchanged · (premium)
  - `changes.1mo` — object · (premium)
    - `changes.1mo.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.1mo.direction` — string · (premium)
  - `changes.3mo` — object · (premium)
    - `changes.3mo.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.3mo.direction` — string · (premium)
  - `changes.6mo` — object · (premium)
    - `changes.6mo.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.6mo.direction` — string · (premium)
  - `changes.1yr` — object · (premium)
    - `changes.1yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.1yr.direction` — string · (premium)
  - `changes.2yr` — object · (premium)
    - `changes.2yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.2yr.direction` — string · (premium)
  - `changes.3yr` — object · (premium)
    - `changes.3yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.3yr.direction` — string · (premium)
  - `changes.5yr` — object · (premium)
    - `changes.5yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.5yr.direction` — string · (premium)
  - `changes.7yr` — object · (premium)
    - `changes.7yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.7yr.direction` — string · (premium)
  - `changes.10yr` — object · (premium)
    - `changes.10yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.10yr.direction` — string · (premium)
  - `changes.20yr` — object · (premium)
    - `changes.20yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.20yr.direction` — string · (premium)
  - `changes.30yr` — object · (premium)
    - `changes.30yr.change1d` — number · One-day percentage point change for the requested type, when available · (premium)
    - `changes.30yr.direction` — string · (premium)
- `spread10yr2yr` — number · 10-year minus 2-year yield, in percentage points; negative means that part of the curve is inverted; returned with the full curve, not with type · (premium)
- `spread10yr3mo` — number · 10-year minus 3-month yield, in percentage points (the Fed's preferred recession indicator); returned with the full curve, not with type · (premium)
- `spread30yr5yr` — number · 30-year minus 5-year yield, in percentage points; returned with the full curve, not with type · (premium)
- `spread5yr2yr` — number · 5-year minus 2-year yield, in percentage points; returned with the full curve, not with type · (premium)
- `inverted10yr2yr` — boolean · True when the 10-year yield is below the 2-year; returned with the full curve, not with type · (premium)
- `inverted10yr3mo` — boolean · True when the 10-year yield is below the 3-month; returned with the full curve, not with type · (premium)
- `curveShape` — string · normal, flat (10yr-3mo spread within 0.25 points) or inverted (10yr below 3mo); returned with the full curve, not with type · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "date": "2026-10-23",
    "yields": {
      "1mo": 4.11,
      "3mo": 4.22,
      "6mo": 4.3,
      "1yr": 4.44,
      "2yr": 4.69,
      "3yr": 4.75,
      "5yr": 4.82,
      "7yr": 4.89,
      "10yr": 5,
      "20yr": 5.37,
      "30yr": 5.33
    },
    "realYields": {
      "5yr": 2.34,
      "7yr": 2.49,
      "10yr": 2.66,
      "20yr": 2.94,
      "30yr": 3.08
    },
    "bills": 4.22,
    "notes": 5,
    "bonds": 5.33,
    "tips": 2.66,
    "frn": 4.22,
    "changes": {
      "bills": {
        "change1d": 0,
        "direction": "unchanged"
      },
      "notes": {
        "change1d": 0.04,
        "direction": "up"
      },
      "bonds": {
        "change1d": 0.04,
        "direction": "up"
      },
      "tips": {
        "change1d": 0.02,
        "direction": "up"
      },
      "frn": {
        "change1d": 0,
        "direction": "unchanged"
      },
      "1mo": {
        "change1d": 0,
        "direction": "unchanged"
      },
      "3mo": {
        "change1d": 0,
        "direction": "unchanged"
      },
      "6mo": {
        "change1d": 0.01,
        "direction": "up"
      },
      "1yr": {
        "change1d": 0.03,
        "direction": "up"
      },
      "2yr": {
        "change1d": 0.04,
        "direction": "up"
      },
      "3yr": {
        "change1d": 0.03,
        "direction": "up"
      },
      "5yr": {
        "change1d": 0.04,
        "direction": "up"
      },
      "7yr": {
        "change1d": 0.03,
        "direction": "up"
      },
      "10yr": {
        "change1d": 0.04,
        "direction": "up"
      },
      "20yr": {
        "change1d": 0.05,
        "direction": "up"
      },
      "30yr": {
        "change1d": 0.04,
        "direction": "up"
      }
    },
    "spread10yr2yr": 0.31,
    "spread10yr3mo": 0.78,
    "spread30yr5yr": 0.51,
    "spread5yr2yr": 0.13,
    "inverted10yr2yr": false,
    "inverted10yr3mo": false,
    "curveShape": "normal",
    "breakevenInflation": {
      "5yr": 2.48,
      "7yr": 2.4,
      "10yr": 2.34,
      "20yr": 2.43,
      "30yr": 2.25
    }
  }
}
```

## Use cases

- **Yield Curve Analysis** — Build yield curves using Treasury rates across different maturities
- **Fixed Income Research** — Analyze treasury securities for investment research and portfolio management
- **Financial Modeling** — Use risk-free rates for DCF models and derivatives pricing
- **Economic Indicators** — Track treasury yields as indicators of economic conditions and Fed policy

## SDKs

- **npm** — `npm install @apiverve/treasuryyields` (https://www.npmjs.com/package/@apiverve/treasuryyields)
- **NuGet** — `dotnet add package APIVerve.API.TreasuryYields` (https://www.nuget.org/packages/APIVerve.API.TreasuryYields)
- **Source** — https://github.com/apiverve/treasuryyields-api

## More

- Full reference: https://docs.apiverve.com/ref/treasuryyields
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
