Skip to main content
GET
Treasury Yields (Historical)

Overview

The Treasury Yields API lets you pull the daily US Treasury par yield curve, one row per business day with one key per tenor, from 1990 to today. We source the data directly from authoritative government sources. Values are par yields in percent. To get started, please create an account and grab your API key at financialdatasets.ai. You will use the API key to authenticate your API requests.

Coverage

Tenors

Each row carries date plus these keys: 1_month, 1_5_month, 2_month, 3_month, 4_month, 6_month, 1_year, 2_year, 3_year, 5_year, 7_year, 10_year, 20_year, 30_year. A tenor is null when it was not published on that date. These gaps are real, not missing data: the 20-year is absent before October 1993, the 30-year is absent from February 2002 to February 2006, the 2-month starts in October 2018, the 4-month starts in October 2022, and the 1.5-month starts in 2025. Weekends and market holidays have no row.

Getting Started

There are only 3 steps for making a successful API call:
  1. Add your API key to the header of the request as X-API-KEY.
  2. Optionally add start_date and end_date (inclusive, YYYY-MM-DD). With no dates you get the trailing year.
  3. Execute the API request.
Rows come newest first in pages of up to 100. When more rows remain, the response includes a next_page_url; request it as-is to get the next page. See the pagination guide.

Example

Treasury Yields

Example Response

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

start_date
string

The first date to return, inclusive, in YYYY-MM-DD format. Defaults to one year before end_date when both dates are omitted; omit it with an end_date to get all available history through that date.

end_date
string

The last date to return, inclusive, in YYYY-MM-DD format. Defaults to today.

cursor
string

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Yield curve response

yield_curve
object[]
next_page_url
string

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 100 records.