US Treasury Yield Curve API: Daily Rates, 2s10s, Real Yields
Pricing
from $2.00 / 1,000 results
US Treasury Yield Curve API: Daily Rates, 2s10s, Real Yields
Daily US Treasury yield curve from 1 month to 30 years: 2s10s and 3m10y spreads, TIPS real yields, breakeven inflation, inversions, changes and rate alerts. Latest curve in one API call.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Philip Kirkbride
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
2
Monthly active users
16 hours ago
Last modified
Categories
Features
Share
US Treasury Yield Curve: Real Yields & Inversions
What it does
Get daily US Treasury nominal yields, optional real yields, spreads, inversions, changes and threshold matches in one export. Built for macroeconomic research and rate-monitoring dashboards. The prefilled four-day historical window gives a quick sample; replace the dates or choose a year for your own research.
What you get
One row per published trading date, with all 13 nominal tenor fields and explicit nulls where Treasury did not publish a value. A captured 4 September observation shows the 10-year minus 2-year spread in percentage points:
These values come from a retained source capture; they are historical examples.
Selected fields only.
{"recordKey": "ustyc:2026-09-04","source": "treasury.gov","kind": "yield_curve","date": "2026-09-04","yield2Yr": 4.37,"yield10Yr": 4.78,"spread2s10s": 0.41,"spread3m10y": 0.87}
Also available
The markets and macro suite: pick the job.
| Actor | Use when |
|---|---|
| US Treasury Yield Curve (this Actor) | Daily yields, spreads and inversions |
| Stock Screener | Screen stocks across 58 markets |
| SEC Insider Trades | Form 4 insider buys and sells |
| Crypto ETF Flows | Daily BTC and ETH spot-ETF flows |
How to use
- Start with the prefilled date window for a short example.
- For annual history, clear both date bounds and set
year. With no year or date bounds, the current year is used. - Turn on
includeRealto join available TIPS yields, and add optional threshold rules for matching observations. - Run and export the dataset, then inspect the summary for missing history or partial delivery.
{"startDate":"2026-09-01","endDate":"2026-09-04","includeReal":false}
{"startDate":"2024-01-01","endDate":"2025-12-31","includeReal":true,"alerts":[{"field":"spread2s10s","operator":"lt","value":0}]}
Or use {"year":2025}. Default is current year. Dates are inclusive; use either a year or both ISO dates. Nominal history starts in 1990; real history starts in 2003, with tenor availability varying over time. maturities selects the tenors checked for coverage; every row retains all nominal yield columns. Set includeReal:false to omit real yields. Invalid input ends the run as no_results with a plain message naming the field to fix.
Output fields
Fields include nominal yields and spread2s10s, plus realYields and breakevenApproximation keyed by matched 5/7/10/20/30-year tenor; realStatus, realSourceUrl; spread3m10y; inversions; changes; alerts. Rates, spreads and changes are percentage points. Nominal minus real par yields is only an approximation of inflation compensation, not a forecast or exact zero-coupon breakeven.
Inversions use strict negative 10y-minus-2y and 10y-minus-3m spreads. observations counts consecutive published observations, not calendar days; missing legs break the run. since is the first observed inverted date and leftCensored warns when a run could have begun before available history. Durations are limited to the available history. Changes use the preceding observation for day, and the latest observation on or before 7/30 calendar days earlier for week/month. Baseline dates are included; absent baselines or legs yield nulls. A baseline may predate your selected start date when available within the covered years; prior history is not guaranteed.
Threshold rules support nominal yield fields and both spreads, lt or gt, and a finite numeric value. Each row lists matching rules with the observed value; equality does not trigger. No separate alert rows or notification charges.
Use it as an API
Get all 13 Treasury yields and the 2s10s spread for one trading day as one JSON answer. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.
curl --get 'https://automatic--treasury-yield-curve.apify.actor/' \--header "Authorization: Bearer $APIFY_TOKEN" \--data-urlencode latest=true
Send the same fields as a JSON object with POST /. Results are in data and in the run's default dataset. See GET /openapi.json for the request and response definitions.
Pricing
One trading date is one dataset item and one dataset-item charge. Threshold matches do not add separate rows or notification charges. A run-start fee also applies, including empty runs. It is charged per GB of memory, with a one-start minimum; the default 512 MB run is one start event. See the Pricing tab for current prices.
Worked costs at the current $0.002 per dataset item: a full year (about 250 trading days) is about $0.50 plus the $0.005 start, a 30-day window is about $0.05, and a one-year run with real yields included costs the same because real yields are fields on the same rows.
FAQ
Does a threshold send a notification? No. Matching rules are returned on the observation row; no external notifications are sent.
Does a missing yield mean zero? No. Unpublished dates and tenors remain null, without forward filling.
Good to know
- Treasury sources: nominal and real TIPS. If real yields are unavailable, nominal rows remain available with a warning. Missing dates and tenors remain null; no forward fill.
- The run summary includes nominal latest/week values and delivery status. If the source is slow or unavailable, the run keeps collected rows and reports incomplete history in its warnings. A very long date range may return partial history; inspect warnings. Schedules re-deliver and re-charge rows; deduplicate by recordKey downstream.
- Nominal minus real par yields is an approximation of inflation compensation, not a forecast or an exact zero-coupon breakeven.
Your feedback
Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's Issues tab. We read every issue and use them to decide what to build next.