U.S. Treasury Fiscal Data API
Query U.S. national debt, federal spending, Treasury auctions and exchange rates through the free Fiscal Data API — no key required.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
Gives Claude a ready-made playbook for the U.S. Department of the Treasury's open Fiscal Data REST API. It covers 54 datasets and 179 tables: Debt to the Penny, Daily and Monthly Treasury Statements, average interest rates on Treasury securities, quarterly reporting rates of exchange, auctions and buybacks, and savings bond rates.
- Zero authentication — fully open, free API
- Documented core query params:
fields,filter,sort,format, pagination - Response schema (meta, links, dataTypes) plus null/string-typing gotchas
- Patterns for pandas DataFrames and bounded multi-page fetching
- Eight bundled reference files split by dataset family
Who it's for
- Macro researchers tracking U.S. debt and deficit trends
- Fintech/quant developers needing FX and interest-rate time series
- Data analysts building open-data dashboards and recurring reports
- Economics educators and students who want real government figures
Example uses
- Today's national debt — ask "what is the current total U.S. public debt?" and the skill hits
debt_to_pennysorted descending, returning the amount and record date. - FX time series — "pull Treasury exchange rates for Canada-Dollar and Mexico-Peso since 2024" uses
rates_of_exchangewith anin:(...)filter and loads results into a DataFrame. - Auction briefing — combine
auctions_querywithupcoming_auctionsto summarize recent high yields and the upcoming issuance calendar.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/usfiscaldata folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/usfiscaldata/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal (Terminal on macOS/Linux, Git Bash or WSL on Windows).
- Clone the skills repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create your Claude skills folder and copy just this skill:
mkdir -p ~/.claude/skills cp -r scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/ - Install the Python dependencies:
pip install requests pandas - Restart Claude Code and try a prompt like "Show me the latest U.S. national debt figure."
- If a request 404s, re-check the endpoint path in the dataset's API Quick Guide at fiscaldata.treasury.gov — Treasury changes paths occasionally.
View source on GitHub ↗License: MIT