Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

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 & AnalyticsIntermediate33,0303,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

  1. "What is the current total U.S. public debt?" → single debt_to_penny call sorted by -record_date.
  2. "Build a table of Treasury CAD and MXN exchange rates since 2024" → rates_of_exchange with an in filter loaded into pandas.
  3. "Chart average interest rates on Treasury securities over the last decade" → paginate avg_interest_rates and 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal and clone the repo: git clone https://github.com/K-Dense-AI/scientific-agent-skills.git
  2. Create the skills folder if needed: mkdir -p ~/.claude/skills
  3. Copy just this skill: cp -r scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/
  4. Install the Python dependencies: uv pip install requests pandas (or pip install requests pandas).
  5. Restart Claude Code and try a prompt like "Get the latest U.S. national debt figure" to trigger the skill.