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-code

Installs 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
1samuraigpt avatarmuapi-ai-clippingsamuraigpt/generative-media-skillsTurn a long video into N viral-ready short clips with a single managed API call. Wraps muapi.ai's `/ai-clipping` endpoint, which handles transcription, highligh2Kskills.sh installs
2jezweb avatarfastapijezweb/claude-skillsBuild Python APIs with FastAPI, Pydantic v2, and SQLAlchemy 2.0 async. Covers project structure, JWT auth, validation, and database integration with uv package 2Kskills.sh installs
3yzfly avatardouyin-videoyzfly/douyin-mcp-serverdouyin video2Kskills.sh installs
4binance avataralphabinance/binance-skills-hubBinance Alpha request using the Binance API. Authentication requires API key and secret key.2Kskills.sh installs
5figma avatarfigma-use-slidesfigma/mcp-server-guideThis skill helps agents use Figma's use_figma MCP tool in the Slides context. Can be used alongside figma-use which has foundational context for using the use_f1.9Kskills.sh installs
6binance avatarmargin-tradingbinance/binance-skills-hubBinance Margin-trading request using the Binance API. Authentication requires API key and secret key.1.9Kskills.sh installs