US Treasury Yield Curve & Debt Scraper avatar

US Treasury Yield Curve & Debt Scraper

Pricing

$1.00 / 1,000 result items

Go to Apify Store
US Treasury Yield Curve & Debt Scraper

US Treasury Yield Curve & Debt Scraper

Returns one row per business day with the full US Treasury par yield curve (1 month to 30 years), the Debt to the Penny totals for the same date, the latest average interest rate paid on bills, notes, bonds, TIPS and FRNs, and the 2s10s and 3m10y spreads. No API key.

Pricing

$1.00 / 1,000 result items

Rating

0.0

(0)

Developer

Thrifty Kiwi

Thrifty Kiwi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Categories

Features

Limited permissions

Share

US Treasury Yield Curve & Debt Scraper pulls structured data from US Treasury (Treasury.gov and FiscalData) and returns it as a clean dataset you can export as JSON, CSV or Excel. It merges Treasury.gov's daily yield curve XML with the FiscalData Debt to the Penny and average interest rate APIs, joining them by date and adding the 2s10s and 3m10y spreads plus a curve shape label.

No API key, no login. Click Start and it works with the prefilled input.

What does US Treasury Yield Curve & Debt Scraper do?

It queries US Treasury (Treasury.gov and FiscalData) and returns one row per record, with only the fields that matter. Runs on the Apify platform, so you get an API endpoint, scheduling, monitoring and integrations (Zapier, Make, Google Sheets, webhooks) without maintaining any infrastructure.

Why use it?

  • US Treasury (Treasury.gov and FiscalData) data without the plumbing: no proxy setup, no pagination code, no scraping maintenance.
  • Schedule it to monitor changes daily or weekly and trigger alerts on new records.
  • Feed it straight into a spreadsheet, database, or an AI agent via the Apify API or MCP server.
  • Runs in seconds and returns a typed dataset that is ready for analysis.

How to use it

  1. Click Try for free / Start.
  2. Leave the default input to see a sample run, or type your own values (see Input below).
  3. Press Start and wait a few seconds.
  4. Open the Output tab and download as JSON, CSV, Excel or HTML.

Input

FieldTypeDefaultDescription
yearinteger2026Calendar year of the daily par yield curve to download (1990 to today).
includeDebtbooleantrueAlso join Debt to the Penny totals for each date and the latest published average interest rates.
maxResultsinteger30Maximum number of dated curve rows, newest first.

Example input:

{
"year": 2026,
"includeDebt": true,
"maxResults": 5
}

Output

One item per record. Sample:

{
"record_date": "2026-10-14",
"tenor_1m": 4.11,
"tenor_3m": 4.28,
"tenor_6m": 4.37,
"tenor_1y": 4.53,
"tenor_2y": 4.82
}

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Data fields

FieldTypeMeaning
record_datestringDate
tenor_1mnumber1M
tenor_3mnumber3M
tenor_6mnumber6M
tenor_1ynumber1Y
tenor_2ynumber2Y
tenor_3ynumber3Y
tenor_5ynumber5Y
tenor_7ynumber7Y
tenor_10ynumber10Y
tenor_20ynumber20Y
tenor_30ynumber30Y
spread_2s10snumber2s10s Spread
spread_3m10ynumber3m10y Spread
curve_shapestringCurve Shape
total_public_debt_usdnumberTotal Public Debt (USD)
debt_held_by_public_usdnumberDebt Held by Public (USD)
intragov_holdings_usdnumberIntragovernmental Holdings (USD)
debt_as_of_datestringDebt As Of
avg_rate_bills_pctnumberAvg Rate - Bills %
avg_rate_notes_pctnumberAvg Rate - Notes %
avg_rate_bonds_pctnumberAvg Rate - Bonds %
avg_rate_tips_pctnumberAvg Rate - TIPS %
avg_rate_frn_pctnumberAvg Rate - FRN %
avg_rate_all_interest_bearing_pctnumberAvg Rate - All Interest-bearing %
source_errorsstringSource Errors
source_urlstringTreasury Page
retrieved_atstringRetrieved At

How much does it cost to run?

This Actor uses pay-per-event pricing: you pay per result item pushed to the dataset, and nothing for an empty run. Each run is a few seconds of compute, so typical costs are fractions of a cent per run, and the Apify free tier covers plenty of testing.

Tips and advanced options

  • Raise maxResults for a bigger pull; the Actor pages through the source for you.
  • Schedule it (e.g. every morning) and combine with a webhook to get only the new records.
  • Add the Actor to an AI agent through the Apify MCP server for natural-language queries.

FAQ, disclaimers and support

  • Is this legal? It uses publicly available data from US Treasury (Treasury.gov and FiscalData). You are responsible for how you use the data and for complying with the source's terms.
  • It returned nothing? Set Year to any year from 1990 to today; the Treasury publishes the curve year by year and the current year is the default. Debt to the Penny is published one business day after the curve, so the debt totals carry forward from the latest published date (see debt_as_of_date).
  • Something broken? Open an issue on the Actor's Issues tab. Data sources change and get fixed quickly.
  • Need a custom variant (extra fields, a different source, a scheduled report)? Get in touch through the Issues tab.