VOOZH about

URL: https://apify.com/copious_atoll/us-treasury-fiscal-data

โ‡ฑ US Treasury Fiscal Data Scraper โ€” Debt & Spending ยท Apify


๐Ÿ‘ US Treasury Fiscal Data Scraper โ€” Debt & Spending avatar

US Treasury Fiscal Data Scraper โ€” Debt & Spending

Pricing

from $1.00 / 1,000 results

Go to Apify Store

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

Grim R

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 months 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

ParameterTypeDescription
datasetstringWhich dataset to query: debt_to_penny, monthly_public_debt, monthly_treasury_statement, avg_interest_rates, or exchange_rates
dateFromstringStart date (YYYY-MM-DD)
dateTostringEnd date (YYYY-MM-DD)
maxResultsintegerMaximum 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.

You might also like

US Treasury Fiscal Data Scraper

compute-edge/treasury-fiscal-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.

US Treasury Debt to the Penny Scraper

parseforge/treasury-debt-to-penny-scraper

Tap into the US Treasury Debt to the Penny feed for daily public debt figures. Provide a start date to receive record date, debt held by the public, intragovernmental holdings, and total public debt outstanding. Great for fiscal research and macro charting workflows.

US Treasury Fiscal Data Scraper

parseforge/us-treasury-fiscal-data-scraper

Scrape US Treasury fiscal data including national debt totals, daily cash balances, interest rates, savings bond rates, and federal spending breakdowns. Filter by date range across 80+ datasets covering decades of financial history.

US Treasury Data Scraper

taroyamada/treasury-fiscal-data-digest

Extract official US national debt figures, federal outlays, and average interest rates directly from the Treasury API into structured financial rows.

TreasuryDirect Scraper | US Treasury Securities Data

parseforge/treasury-direct-scraper

Extract TreasuryDirect securities auction data: CUSIP, security type, issue and maturity dates, interest rate, and high yield. Filter by type and date range. Useful for fixed income analysts, fintech apps, and researchers tracking US Treasury debt markets.

US Treasury Securities Outstanding Scraper

parseforge/treasury-securities-outstanding-scraper

Tap into the US Treasury Securities Outstanding feed for marketable debt composition figures. Provide a start date to receive record date, security category, total outstanding amount, and security class fields. Useful for fixed income analytics and fiscal trend studies.

US Treasury Exchange Rates Scraper

parseforge/treasury-exchange-rates-scraper

Tap into the US Treasury Reporting Rates of Exchange feed for official quarterly USD conversion rates. Filter by country name and start date to receive country, currency, exchange rate, and effective date. Useful for government reporting, accounting, and audit workflows.

Exchange Rates Public Scraper | FX & Treasury Data

parseforge/open-exchange-rates-public-scraper

Fetch live FX rates against USD for 170+ currencies from Open Exchange Rates public feed. Get currency code, name, rate, base, and last update timestamp. Export real time exchange rates to JSON, CSV, or Excel for accounting, ecommerce, treasury, and finance dashboards.

Sovereign Debt Crisis MCP

ryanclinton/sovereign-debt-crisis-mcp

MCP intelligence server for sovereign debt crisis detection and analysis.