Macroeconomics

Treasury Yields (Historical)

Changed on

The daily US Treasury par yield curve, one object per business day with one key per tenor, newest first. Values are par yields in percent, sourced from authoritative government sources. A tenor is null when it was not published on that date.

get/macro/yield-curve

Request

  • Base URL
    https://api.financialdatasets.ai
  • Auth
    API key in header X-API-KEY

Query parameters

start_datestring

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_datestring

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

cursorstring

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

next_page_urlstring

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.

Changes