US Treasury Scraper: National Debt to the Penny
Pricing
Pay per usage
Go to Apify Store

US Treasury Scraper: National Debt to the Penny
Pull the daily US national debt from the official Treasury Fiscal Data API, split into public and intragovernmental holdings. No login, no proxy, no browser.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Naimur Hasan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
US Treasury Scraper
Pulls the US national debt "to the penny" from the official Treasury Fiscal Data API, split into debt held by the public and intragovernmental holdings. No login, no proxy, no browser.
Input
| Field | Type | Notes |
|---|---|---|
maxItems | integer | Daily records to fetch, newest first. Default 30. |
since | string | Only records on or after this YYYY-MM-DD. Omit for the most recent. |
Output
One row per published day: recordDate, totalPublicDebtOutstanding,
debtHeldByPublic, intragovernmentalHoldings, fiscalYear,
fiscalQuarter, calendarYear, calendarMonth, calendarDay.
Notes
- Every amount arrives as a string upstream (
"40093343468150.50") and is converted to a number here, so the series can be charted or differenced without cleaning it first. - Amounts are large enough to be worth a caution: they exceed JavaScript's safe integer range only above ~9 quadrillion, so today's figures are exact as doubles, but a cents-level difference of two values should still be treated carefully.
- The date parts are zero-padded strings upstream (
"09"); they are converted to integers so month and quarter sort numerically. - Records are published on business days only, so a 30-record pull spans about six calendar weeks, not 30 days.