US Treasury Fiscal Data Scraper — Debt & Spending
Pricing
from $1.00 / 1,000 results
US Treasury Fiscal Data Scraper — Debt & Spending
Extract US Treasury fiscal data including national debt (Debt to the Penny), monthly public debt statements, Treasury spending and revenue, average interest rates on securities, and exchange rates. Free API, no proxy needed.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Grim R
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
US Treasury Fiscal Data Scraper
Extract official US government fiscal data from the Treasury Fiscal Data API. Get daily national debt figures, monthly public debt statements, government revenue and spending data, average interest rates on Treasury securities, and Treasury exchange rates. All data comes directly from the US Department of the Treasury.
Disclaimer: This actor is unofficial and is not affiliated with, sponsored by, or endorsed by the U.S. Department of the Treasury or FiscalData.Treasury.gov.
What national debt and fiscal data can you extract?
This actor wraps the free US Treasury Fiscal Data API to extract five key datasets:
- Debt to the Penny — daily total US national debt (public debt and intragovernmental holdings)
- Monthly Statement of Public Debt — detailed breakdown of marketable and non-marketable Treasury securities outstanding
- Monthly Treasury Statement — federal government revenue and spending by category (tax receipts, outlays, surplus/deficit)
- Average Interest Rates on Treasury Securities — rates on bills, notes, bonds, TIPS, and floating rate notes
- Treasury Exchange Rates — official exchange rates for foreign currencies used by government agencies
All data is sourced from official Treasury reporting systems and updated on the schedules maintained by the Bureau of the Fiscal Service.
How to query Treasury fiscal data
Select a dataset: Choose from the five available datasets using the dropdown selector.
Filter by date range: Set start and end dates in YYYY-MM-DD format to narrow results. For example, set Date From to 2024-01-01 to get data from January 2024 onward.
Control result size: Use the Max Results parameter (1 to 10,000) to limit the number of records returned. Default is 100.
Output example
Each record in the output contains the original Treasury API fields plus metadata. Here is an example from the Debt to the Penny dataset:
{"record_date": "2025-03-14","tot_pub_debt_out_amt": "36218000000000.00","govt_account_invest_hold_amt": "7200000000000.00","tot_pub_debt_out_amt_held_by_pub": "29018000000000.00","src_line_nbr": "1","record_fiscal_year": "2025","record_fiscal_quarter": "2","record_calendar_year": "2025","record_calendar_quarter": "1","record_calendar_month": "03","record_calendar_day": "14","_dataset": "debt_to_penny","_datasetLabel": "Debt to the Penny","_endpoint": "/v2/accounting/od/debt_to_penny"}
How much does it cost to scrape Treasury fiscal data?
This actor uses pay-per-event pricing. You pay per record returned.
- $0.00005 per actor start (Apify default)
- Per-result charge based on the number of records extracted
- No proxy costs — Treasury Fiscal Data is a free government API with no authentication required
A typical query for daily national debt over one year returns approximately 250 records at minimal cost. Monthly datasets return 12 records per year.
Tip: Set the maxResults parameter to control costs. Start with 100 results and increase as needed.
Who uses government spending and national debt data?
- Finance analysts and economists — track national debt trends, interest rate changes, and government spending patterns
- Journalists and media organizations — report on federal budget, deficit, and debt ceiling developments
- Academic researchers — study fiscal policy, monetary economics, and government finance over time
- Policy analysts — monitor Treasury activity for think tanks and advocacy organizations
- Fintech developers — build dashboards and data products using official Treasury data
- Data scientists and AI engineers — train economic models on historical government fiscal data
- Forex traders — use Treasury exchange rates and interest rate data to inform currency trading strategies
Input parameters
| Parameter | Type | Description |
|---|---|---|
| dataset | string | Which dataset to query: debt_to_penny, monthly_public_debt, monthly_treasury_statement, avg_interest_rates, or exchange_rates |
| dateFrom | string | Start date (YYYY-MM-DD) |
| dateTo | string | End date (YYYY-MM-DD) |
| maxResults | integer | Maximum records to return (1-10000, default 100) |
Treasury Fiscal Data API details
This actor queries the official API at https://api.fiscaldata.treasury.gov/services/api/fiscal_service. The API is free, requires no API key, and has no documented rate limit. This actor throttles requests at 0.2 seconds between calls to be a responsible consumer. Automatic retry with exponential backoff handles any transient failures.
Integrations
Export your data as JSON, CSV, or Excel. Schedule daily runs to track national debt changes automatically. Use webhooks to trigger downstream workflows when new fiscal data is published.
This actor works as an MCP server — AI agents can discover and use it to access Treasury fiscal data programmatically.