US Treasury Fiscal Data Scraper
Pricing
from $2.00 / 1,000 results
US Treasury Fiscal Data Scraper
Extract US Treasury financial data via the Fiscal Data API. Access national debt, interest rates, exchange rates, gold reserves, revenue collections, and securities data. Supports date filtering and pagination.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Compute Edge
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Share
Extract US government financial data from the official Treasury Fiscal Data API. Access total public debt outstanding, average interest rates on Treasury securities, daily Treasury statements, exchange rates, gold reserve holdings, revenue collections, and securities outstanding — all from a single Actor with no API key required.
This Actor wraps the Treasury's public Fiscal Data API and provides full support for date range filtering, field-level sorting, automatic pagination, and rate limit handling. Output is delivered as clean JSON ready for dashboards, financial models, and data pipelines.
Key Features
| Feature | Description |
|---|---|
| 7 datasets | National debt, interest rates, daily statements, exchange rates, gold reserves, revenue, securities |
| Date range filtering | Query any historical period with start/end dates |
| Automatic pagination | Handles large result sets transparently (up to 1M records) |
| Flexible sorting | Sort by any field, ascending or descending |
| Rate limit handling | Automatic retry with exponential backoff |
| No API key required | Uses the free public Treasury API |
How to Scrape US Treasury Fiscal Data
- Go to this Actor's page on the Apify Store
- Click "Start" to open the input configuration form
- Select a Dataset — choose from 7 Treasury fiscal datasets
- Set date range (optional) — enter start and end dates in YYYY-MM-DD format
- Set sort field (optional) — default is
record_date - Set Max Results — default: 1000, set to 0 for unlimited
- Click "Start" to run the Actor
- Download your data in JSON, CSV, or Excel from the Dataset tab
Input Example
{"dataset": "debt_to_penny","startDate": "2024-01-01","endDate": "2024-12-31","sortField": "record_date","sortDescending": true,"maxResults": 500}
Output Example
{"recordDate": "2024-12-31","debtHeldByPublicAmt": "28908004857168.12","intragovtHoldingsAmt": "7265207091498.63","totPubDebtOutstdgAmt": "36173211948666.75","source": "Total Public Debt Outstanding"}
Available Datasets
| Dataset | Description |
|---|---|
| Total Public Debt Outstanding | Daily national debt totals (debt held by public + intragovernmental holdings) |
| Average Interest Rates | Monthly average interest rates on Treasury securities by type |
| Daily Treasury Statement | Daily operating cash balance of the US government |
| Exchange Rates | Treasury exchange rates for foreign currencies |
| Gold Reserve | US gold reserve holdings and valuation |
| Revenue Collections | Federal tax revenue collections by category |
| Securities Outstanding | Outstanding Treasury securities by type and maturity |
Pricing
This Actor uses pay-per-result pricing:
| Event | Price |
|---|---|
| Actor Start | $0.00005 |
| Per result | $0.002 |
A typical run of 500 records costs approximately $1.00 in Actor fees plus minimal Apify compute costs.
Use Cases
- Financial analysis — Track national debt trends, interest rate movements, and government revenue
- Macroeconomic research — Feed Treasury data into economic models and forecasting tools
- Currency analysis — Monitor Treasury exchange rates for forex research
- Government accountability — Track spending, debt, and revenue patterns over time
- Data journalism — Build visualizations of national debt and fiscal trends
- RAG/LLM pipelines — Structured fiscal data ready for AI-powered financial analysis
FAQ
Is it legal to scrape Treasury fiscal data?
Yes. This Actor uses the official Treasury Fiscal Data API, which is a free public government data service. The data is in the public domain and freely available for any use. No authentication is required.
How Much Does It Cost to Scrape Treasury Fiscal Data?
See the pricing table above. At $0.002 per result, fetching a year of daily debt data (~250 records) costs approximately $0.50 in Actor fees plus minimal Apify compute costs.
Can I export Treasury data to Excel or CSV?
Yes. Apify supports exporting results in JSON, CSV, Excel, XML, and other formats directly from the Dataset tab after a run completes.
How often is the Treasury data updated?
Most datasets are updated daily (debt, daily statements) or monthly (interest rates, revenue). You can schedule this Actor to run at any interval to keep your data current.
How far back does the data go?
Data availability varies by dataset. Total Public Debt Outstanding goes back to 1993. Average Interest Rates data is available from 2001. Exchange rate data spans several decades.
Other Scrapers by SeatSignal
- SEC EDGAR Scraper — Extract SEC filings, company data, and financial statements
- Federal Audit Scraper — Extract federal audit and grant data from the Federal Audit Clearinghouse
- EIA Energy Data Scraper — Extract petroleum, natural gas, and electricity data
- SBIR Awards Scraper — Extract government grant and contract award data
- HUD Fair Market Rents Scraper — Extract HUD housing affordability data
Legal Disclaimer
This Actor accesses publicly available data from the Treasury Fiscal Data API (fiscaldata.treasury.gov). The data is provided by the U.S. Department of the Treasury for public use. This Actor does not bypass any authentication or access controls. Users are responsible for ensuring their use of the data complies with applicable laws and regulations.
For questions or support, please open an issue on this Actor's page.