Skip to content

U.S. Treasury API: Get Treasury yields

Gets official daily Treasury par yield curve rates for a date, or the latest published date on or before it.

home.treasury.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by U.S. Treasury.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Date optionaldate

Requested calendar date (YYYY-MM-DD), such as 2024-01-01. Defaults to today and returns the latest published date on or before it.

Not set

Date.

Output

From a run on Oct 23, 2026.
{  "date": "2026-10-22",  "page_url": "https://home.treasury.gov/resource-center/data-chart-center/interest-rates/daily-treasury-rates.csv/2026/all?type=daily_treasury_yield_curve&page&_format=csv",  "yield_1_year": 4.41,  "yield_2_year": 4.65,  "yield_3_year": 4.72,  "yield_5_year": 4.78,  "yield_7_year": 4.86,  "yield_10_year": 4.96,  "yield_1_month": 4.11,  "yield_20_year": 5.32,  "yield_2_month": 4.16,  "yield_30_year": 5.29,  "yield_3_month": 4.22,  "yield_4_month": 4.29,  "yield_6_month": 4.29,  "yield_1_5_month": 4.1}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
home.treasury.gov/get_treasury_yields
Returns
date, 14 maturity yields in percent, page_url

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method home.treasury.gov/get_treasury_yields with the inputs above.

Ask your agent

  • What were the official Treasury par yield curve rates on 2024-03-15?
  • Give me the daily Treasury yields for the 10-year and 2-year maturities as of 2023-11-30.
  • I need the latest published Treasury par yield curve for today's date, with all 14 maturities.
  • Look up the treasury.gov yield curve rates for 2022-06-10 and include the page link.
  • Pull the 14-maturity Treasury yield curve from the last business day before 2025-01-01.
  • Gets the U.S. Treasury quarterly reporting exchange rate for a country or currency on a given date. If that quarter has no published record, it uses the latest preceding quarter.

    treasury.gov/get_reporting_exchange_rates
  • Returns US national debt (Debt to the Penny) for a given date, or the latest published day. Dates without a record use the previous published day.

    home.treasury.gov/get_national_debt
  • Gets current government bond yields from Investing.com's world government bonds table, optionally filtered by country and maturity term.

    investing.com/get_bond_yields
  • Gets the official ECB euro reference exchange rates for a day, or the latest published day. Weekends, holidays and dates before publication return the previous published day.

    ecb.europa.eu/get_euro_exchange_rates
  • Returns Freddie Mac's U.S. 30-year and 15-year fixed mortgage rates for the latest survey or a chosen date, with weekly and year-ago changes, and optionally a weekly history for a date range.

    freddiemac.com/get_mortgage_rates
  • Gets decades of yearly commodity or stock-index price history from Macrotrends: yearly average, open, high, low, close, annual change and inflation-adjusted value for gold, silver, crude oil, natural gas, copper, Dow Jones, S&P 500 and Nasdaq. The current year may be incomplete.

    macrotrends.net/get_long_term_price_history
  • Gets XE's daily mid-market exchange rate for a past UTC date and converts an amount with it.

    xe.com/get_historical_rate
  • Returns Yahoo Finance daily, weekly or monthly price history and total adjusted-close return for a stock, fund, index or cryptocurrency.

    finance.yahoo.com/get_price_history