Skip to main content
← All datasets

Treasury Yield Curve

Public

US Treasury yield curve (long form). Pass ?latest=1 for the current curve.

About this dataset

Treasury Yield Curve is a Public dataset in the Rate Environment group of the BankRegReports Data API. The response carries 4 documented fields, sourced from US Treasury.

The Treasury yield curve in long form; pivot client-side for any tenor slice or curve animation. Pass `?latest=1` for just the most recent curve (≈12 tenor rows). Pass `?tenor_code=Y10` to get a daily single-tenor series. `since`/`until` filter on `rate_date`.

Endpoint

GET /api/v1/rates/yield-curve/

Parameters

Name Required Description
latest optional Return only the current curve. e.g. 1
tenor_code optional One tenor series. e.g. Y10
limit optional string
since optional string
until optional string

Response fields

Field Type Description
rate_date string (date-time), nullable
tenor_code string, nullable
tenor_months integer, nullable
rate_pct number (double), nullable

Example request

curl "https://api.bankregreports.com/api/v1/rates/yield-curve/" \
  -H "Authorization: Bearer $BANKREG_API_TOKEN"

Responses are JSON in a {"data": ..., "meta": {...}} envelope. Get a token on the setup page.

Example response shape

A successful call returns HTTP 200 with a JSON body. Each row in data carries the fields below, shown with their documented types rather than sample values.

{
  "data": [
    {
      "rate_date": "string (date-time)",
      "tenor_code": "string",
      "tenor_months": "integer",
      "rate_pct": "number (double)"
    }
  ],
  "meta": { ... }
}

When to use it

Treasury Yield Curve sits in the Rate Environment group of the Data API. Reach for it when your work needs this data straight from the API: it comes back as JSON you can load into a notebook, a spreadsheet or a scheduled pipeline, with the dataset key yield_curve naming it the same way in the REST path, the Python SDK and the OpenAPI document.

Access and authentication

This dataset is in the Public tier. Send your API token in the Authorization header as a Bearer token, using a GET request to the endpoint above. The Free plan is the first plan that includes it. Check the plan comparison for request limits, and the data update schedule for when new filings reach the API.

Related datasets

Keep going

Browse every dataset, follow the setup walkthrough to make a first call, use the Excel add-in for formulas, or connect an assistant through the MCP server.

Python SDK

Install with pip install bankregreports and set BANKREG_API_TOKEN to your key.

import bankregreports

brr = bankregreports.BankReg()  # reads BANKREG_API_TOKEN
result = brr.yield_curve()
Powered by BankRegReports API