U.S. Treasury Fiscal Data API Skill
Lets Claude query the key-free U.S. Treasury Fiscal Data REST API for national debt, auctions, exchange rates, and federal revenue/spending.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 9/10Last updated: Aug 9, 2026
What it does
- Points Claude at the free, open Treasury Fiscal Data API (
api.fiscaldata.treasury.gov) — no key or registration needed. - Provides an endpoint cheatsheet for the most-used datasets: Debt to the Penny, Historical Debt Outstanding, Daily/Monthly Treasury Statements, average interest rates on Treasury securities, quarterly rates of exchange, auctions, buybacks, and savings bond rates.
- Documents query parameters (
fields,filter,sort,format,page[size],page[number]), filter operators, response envelope (data/meta/links), and pagination patterns. - Warns about real gotchas: all values come back as strings, nulls appear as
"null", and endpoint paths change over time so you should verify with each dataset's API Quick Guide.
Who it's for
- Macro analysts, fixed-income researchers, and quants tracking U.S. federal finances.
- Data engineers building dashboards or ETL jobs on public fiscal data.
- Journalists and writers who need sourced U.S. debt or spending figures.
Example uses
- "What is the current total U.S. public debt?" → single
debt_to_pennycall sorted by-record_date. - "Build a table of Treasury CAD and MXN exchange rates since 2024" →
rates_of_exchangewith aninfilter loaded into pandas. - "Chart average interest rates on Treasury securities over the last decade" → paginate
avg_interest_ratesand plot the time series.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/HEAD/skills/usfiscaldata/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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/sas && mkdir -p ~/.claude/skills && cp -r /tmp/sas/skills/usfiscaldata ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/ - Install the Python dependencies:
uv pip install requests pandas(orpip install requests pandas). - Restart Claude Code and try a prompt like "Get the latest U.S. national debt figure" to trigger the skill.
View source on GitHub ↗License: MIT