Agent skill · data analytics · k-dense-ai
usfiscaldata
Query the U.S. Treasury Fiscal Data REST API for federal financial data. No API key required. Use for national debt (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates, foreign exchange rates, savings bonds, or U.S. government revenue and spending statistics.
Why this skill is useful
Provides specific API commands and data retrieval patterns for accessing U.S. federal financial data that the AI wouldn't reliably generate on its own.
What it needs
Requires pandas, requests installed locally. About 4k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.
What this skill does
U.S. Treasury Fiscal Data API Free, open REST API from the U.S. Department of the Treasury for federal financial data. No API key or registration required. Base URL: https://api.fiscaldata.treasury.gov/services/api/fiscalservice Browse 54 datasets and 179 data tables via the dataset search. Verify endpoint paths on each dataset's API Quick Guide — paths change over time. Installation Quick Start Authentication None required. The API is fully open and free. Core Parameters Parameter Example Description ----------- --------- ------------- fields= fields=recorddate,totpubdebtoutamt Select specific columns filter= filter=recorddate:gte:2024-01-01 Filter records sort= sort=-recorddate Sort (prefix - for descending) format= format=json Output format: json, csv, xml page[size]= page[size]=100 Records per page (default 100) page[number]= page[number]=2 Page index (starts at 1) Filter operators: lt, lte, gt, gte, eq, in Key Datasets & Endpoints Debt Dataset Endpoint Frequency --------- ---------- ----------- Debt to the Penny /v2/accounting/od/debttopenny Daily Historical Debt Outstanding /v2/accounting/od/debtoutstanding Annual Schedules of Federal Debt /v1/accounting/od/schedulesfeddebt Monthly Daily & Monthly Statements Dataset Endpoint Frequency --------- ---------- ----------- DTS Operating Cash Balance /v1/accounting/dts/operatingcashbalance Daily DTS Deposits & Withdrawals /v1/accounting/dts/depositswithdrawalsoperatingcash Daily Monthly Treasury Statement (MTS) /v1/accounting/mts/mtstable1 (18 tables — see datasets-fiscal.md) Monthly Interest Rates & Exchange Dataset Endpoint Frequency --------- ---------- ----------- Average Interest Rates on Treasury Securities /v2/accounting/od/avginterestrates Monthly Treasury Reporting Rates of Exchange /v1/accounting/od/ratesofexchange Quarterly Interest Expense on Public Debt /v2/accounting/od/interestexpense Monthly Securities & Auctions Dataset Endpoint Frequency --------- ---------- ----------- Treasury Securities Auctions …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills k-dense-ai/usfiscaldata