
Usfiscaldata
This gives Claude direct access to the U.S. Treasury's free REST API with 54 datasets covering national debt, daily treasury statements, interest rates, exchange rates, and securities auctions. No API key needed, which is rare for government data. The skill documentation is unusually thorough with actual endpoint paths, parameter tables, and working Python examples for common patterns like fetching Debt to the Penny or paging through large result sets. The API returns everything as strings including nulls, so you'll need to cast types yourself. Best for economic analysis, tracking federal finances, or building dashboards around Treasury data without the usual authentication headaches.
- skills.sh installs
- 2K
- GitHub stars
- 56.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add k-dense-ai/scientific-agent-skills --skill usfiscaldata --agent claude-codeInstalls into .claude/skills of the current project.
Files
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/fiscal_service
Browse the current dataset catalog via the dataset search. Verify endpoint paths on each dataset's API Quick Guide — paths change over time.
Installation
uv pip install requests pandas
Quick Start
import requests
import pandas as pd
BASE_URL = "https://api.fiscaldata.treasury.gov/services/api/fiscal_service"
# Get the current national debt (Debt to the Penny)
resp = requests.get(f"{BASE_URL}/v2/accounting/od/debt_to_penny", params={
"sort": "-record_date",
"page[size]": 1
}, timeout=30)
resp.raise_for_status()
data = resp.json()["data"][0]
print(f"Total public debt as of {data['record_date']}: ${float(data['tot_pub_debt_out_amt']):,.0f}")
Sponsors
Details
- Repository
- github.com/k-dense-ai/scientific-agent-skills
- Categories
- Backend & APIs, AI & Agent Building, Data Science & ML, Sales & Marketing, Finance & Trading
- First seen
- Jun 3, 2026
More from k-dense-ai/scientific-agent-skills
All 137- Qiskit2K
- Gtars2K
- Matchms2K
- Protocolsio Integration2K
- Histolab2K
- Polars Bio2K
- Neuropixels Analysis2K
- Pyopenms2K
- Dnanexus Integration2K
- Latchbio Integration2K
- Qutip2K
- Rowan2K
- Omero Integration2K
- Opentrons Integration2K
- Tiledbvcf2K
- Pylabrobot2K
- Primekg2K
- Glycoengineering2K
- Ginkgo Cloud Lab2K
- Hugging Science1.9K
- Autoskill1.9K
- Pdf1.8K
- Docx1.8K
- Pptx1.8K