10 Year Treasury Yield API
The 10-year Treasury yield — the benchmark long rate that anchors mortgages, corporate spreads, and the 2s10s recession signal.
Retrieve the 10 Year Treasury yield programmatically with the Treasury Yield API. The current value is available on the full yield curve, and the complete history is available as a time series using the year_10 maturity code.
As of the latest reading, the 10 Year Treasury par yield was 4.72%. Data is sourced from the U.S. Department of the Treasury and updated every business day.
Current 10 Year yield
The 10 Year rate is included in the current yield curve from /v1/treasuryyield (field year_10 in rates):
{
"date": "2026-08-10",
"type": "par",
"maturity": "year_10",
"rate_pct": 4.72
}Historical 10 Year yield
Get the 10 Year time series from /v1/treasuryyieldhistorical?maturity=year_10:
{
"type": "par",
"maturity": "year_10",
"data": [
{
"date": "2026-08-05",
"rate_pct": 4.7
},
{
"date": "2026-08-06",
"rate_pct": 4.69
},
{
"date": "2026-08-07",
"rate_pct": 4.65
},
{
"date": "2026-08-10",
"rate_pct": 4.72
}
]
}Related
- Treasury Yield API — full curve (par, real/TIPS, and bill rates) plus 2s10s / 3m10s spreads.
- The 10 Year yield is the long leg of the 2s10s spread — see
spread_2y10yin the par response. - Interest Rate API — central bank policy rates and benchmark rates (SOFR, EURIBOR).
From 4,458 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 344ms | 376ms | 387ms | 753ms | 998ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/treasuryyieldhistorical?maturity=year_10" \
-H "X-Api-Key: YOUR_API_KEY"Frequently Asked Questions
Can I use the Treasury Yield API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Treasury Yield API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Treasury Yield API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Treasury Yield API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.