US Treasury Fiscal Data Scraper avatar

US Treasury Fiscal Data Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
US Treasury Fiscal Data Scraper

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

Compute Edge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

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

FeatureDescription
7 datasetsNational debt, interest rates, daily statements, exchange rates, gold reserves, revenue, securities
Date range filteringQuery any historical period with start/end dates
Automatic paginationHandles large result sets transparently (up to 1M records)
Flexible sortingSort by any field, ascending or descending
Rate limit handlingAutomatic retry with exponential backoff
No API key requiredUses the free public Treasury API

How to Scrape US Treasury Fiscal Data

  1. Go to this Actor's page on the Apify Store
  2. Click "Start" to open the input configuration form
  3. Select a Dataset — choose from 7 Treasury fiscal datasets
  4. Set date range (optional) — enter start and end dates in YYYY-MM-DD format
  5. Set sort field (optional) — default is record_date
  6. Set Max Results — default: 1000, set to 0 for unlimited
  7. Click "Start" to run the Actor
  8. 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

DatasetDescription
Total Public Debt OutstandingDaily national debt totals (debt held by public + intragovernmental holdings)
Average Interest RatesMonthly average interest rates on Treasury securities by type
Daily Treasury StatementDaily operating cash balance of the US government
Exchange RatesTreasury exchange rates for foreign currencies
Gold ReserveUS gold reserve holdings and valuation
Revenue CollectionsFederal tax revenue collections by category
Securities OutstandingOutstanding Treasury securities by type and maturity

Pricing

This Actor uses pay-per-result pricing:

EventPrice
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

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

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.