US Treasury Fiscal Data Scraper avatar

US Treasury Fiscal Data Scraper

Pricing

from $6.00 / 1,000 results

Go to Apify Store
US Treasury Fiscal Data Scraper

US Treasury Fiscal Data Scraper

Scrapes US Treasury fiscal datasets including Debt to the Penny, Average Interest Rates, Rates of Exchange, Debt Outstanding, Top State Debt, Revenue Collections, and Treasury Auctions. Returns each record as a flat row with date filters and up to one million records per run.

Pricing

from $6.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

12 hours ago

Last modified

Share

ParseForge

US Treasury Fiscal Data Scraper

Scrape US Treasury fiscal data from Debt to the Penny, interest rates, exchange rates, and more, up to a million records per run. Every record comes as a flat row with its date, amount, and source dataset. No API key or registration. Export to CSV, JSON, Excel, or XML.

The Treasury's Fiscal Data API is the official source for federal debt, interest rates, and revenue, but it requires API calls and pagination. This Actor reads the public datasets directly, filtered by date range, and returns each record in one fixed schema. Choose from Debt to the Penny, Average Interest Rates, Rates of Exchange, Debt Outstanding, Top State Debt, Revenue Collections, or Treasury Auctions.

Who uses itWhat they scrape US Treasury Fiscal Data for
EconomistsTracking federal debt and interest rate trends over time
Financial analystsMonitoring Treasury auction results and exchange rates
Policy researchersAnalyzing state-level debt and revenue collections
Data journalistsPulling official fiscal numbers for reporting

What it does

This Actor collects records from a selected US Treasury fiscal dataset and returns each one as a flat row.

  • ๐Ÿ“Š Seven datasets: Debt to the Penny, Average Interest Rates, Rates of Exchange, Debt Outstanding, Top State Debt, Revenue Collections, and Treasury Auctions.
  • ๐Ÿ“… Date filters: Set a date range to collect only records within a specific period.
  • ๐Ÿ”ข Scalable collection: Fetch up to one million records per run.
  • ๐Ÿ“„ Flat output: Each record is returned as a single row with consistent fields.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with US Treasury Fiscal Data data

๐Ÿ“ˆ Track federal debt trends.

An economist runs the Debt to the Penny dataset with a date range to see how total debt changes month over month.

๐Ÿ’ฑ Monitor exchange rates.

A financial analyst pulls Rates of Exchange records to compare currency movements for a client report.

๐Ÿ›๏ธ Analyze state debt.

A policy researcher collects Top State Debt data to compare borrowing across states.

๐Ÿ“ฐ Report on Treasury auctions.

A data journalist scrapes Treasury Auctions results to write about recent bid-to-cover ratios.

Why choose this scraper

What you get
Official sourceData comes directly from the U.S. Department of the Treasury's public fiscal data API.
No API setupNo registration, API key, or pagination code needed.
Flexible datesFilter records by date range to focus on specific periods.
Multiple datasetsSwitch between debt, interest rates, exchange rates, and revenue collections.

How it compares

No other Store actor targets US Treasury Fiscal Data the same way, so the honest comparison is with the alternatives teams actually weigh.

US Treasury Fiscal Data ScraperBuild it in-houseBy hand
SetupRun it now, zero configDays of engineeringNone, but hours per pull
When US Treasury Fiscal Data changesMaintained for youYou fix itYou re-learn the page
Proxies, retries, anti-botBuilt inYour problemBrowser only
OutputFixed JSON schema, CSV/Excel exportWhatever you buildCopy-paste
CostPay per resultEngineering timeAnalyst hours

Configure the run

Select one of the seven Treasury fiscal datasets, set an optional date range, and cap the number of records per run. The Input tab lists every parameter.

A first run with the defaults:

{
"dataset": "v2/accounting/od/debt_to_penny",
"maxItems": 10
}

A larger pull:

{
"dataset": "v2/accounting/od/debt_to_penny",
"maxItems": 200
}

Pricing

Pay-per-result: $0.0065 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$0.65
1,000 results$6.50
10,000 results$65.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the US Treasury Fiscal Data Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to US Treasury Fiscal Data through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/us-treasury-fiscal-data-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your date filters. If Date From and Date To are set, ensure they cover a period with data for the selected dataset. Also verify the dataset selection.

Why is the run slow?

Large date ranges or high maximum records can slow the run. Reduce the date range or lower the maximum records.

Why are some fields empty?

Not all datasets have the same fields. Empty fields mean that particular record does not have a value for that attribute.

Can I get data for a specific state?

Select the Top State Debt dataset to get state-level debt data. Other datasets are national or aggregate.

Why did the run fail?

The Treasury API may be temporarily unavailable. Retry the run after a few minutes.

FAQ

QuestionAnswer
What datasets can I scrape?You can choose from Debt to the Penny, Average Interest Rates, Rates of Exchange, Debt Outstanding, Top State Debt, Revenue Collections, and Treasury Auctions.
Do I need an API key?No. The Actor reads the public Treasury Fiscal Data API directly, so no registration or key is required.
How do I filter by date?Use the Date From and Date To fields in the input to specify a date range in YYYY-MM-DD format. Both are optional.
What is the maximum number of records?You can set the Maximum records field up to 1,000,000 per run.
What format is the output?Each record is returned as a flat row in JSON, and you can export the dataset to CSV, Excel, or XML.
Can I scrape multiple datasets in one run?No, each run scrapes one dataset. Run the Actor multiple times with different dataset selections to collect multiple datasets.
Is the data official?Yes, the data comes directly from the U.S. Department of the Treasury's public fiscal data API.
Does this include historical data?Yes, the datasets include historical records, and you can use date filters to narrow the range.
What is Debt to the Penny?Debt to the Penny is the Treasury's dataset showing the total public debt outstanding on a daily basis.
Can I get average interest rates?Yes, select the Average Interest Rates dataset to get records of interest rates on Treasury securities.

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by U.S. Department of the Treasury. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.