Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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

  1. Today's national debt — ask "what is the current total U.S. public debt?" and the skill hits debt_to_penny sorted descending, returning the amount and record date.
  2. FX time series — "pull Treasury exchange rates for Canada-Dollar and Mexico-Peso since 2024" uses rates_of_exchange with an in:(...) filter and loads results into a DataFrame.
  3. Auction briefing — combine auctions_query with upcoming_auctions to summarize recent high yields and the upcoming issuance calendar.

· · · Install guide · · ·

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/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.

  1. Open a terminal (Terminal on macOS/Linux, Git Bash or WSL on Windows).
  2. Clone the skills repository:
    git clone https://github.com/K-Dense-AI/scientific-agent-skills.git
    
  3. Create your Claude skills folder and copy just this skill:
    mkdir -p ~/.claude/skills
    cp -r scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/
    
  4. Install the Python dependencies:
    pip install requests pandas
    
  5. Restart Claude Code and try a prompt like "Show me the latest U.S. national debt figure."
  6. If a request 404s, re-check the endpoint path in the dataset's API Quick Guide at fiscaldata.treasury.gov — Treasury changes paths occasionally.