usfiscaldata

Query U.S. Treasury fiscal data via REST API with JSON, CSV, or XML.

22|4|Updated May 25, 2026
One-click install
npx skills add https://github.com/crazymsn/academic-skills --skill usfiscaldata-crazymsn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/crazymsn/academic-skills/tree/main/academic-skills/usfiscaldata
Command: npx skills add https://github.com/crazymsn/academic-skills --skill usfiscaldata-crazymsn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables researchers, analysts, and developers to access U.S. Treasury fiscal data without API keys, enabling reproducible analysis of debt, cash flows, and fiscal indicators.

Core Features & Use Cases

  • Open REST API for federal financial data including Debt to the Penny, DTS, MTS, interest rates, exchange rates, and savings bonds.
  • Supports common query parameters (fields, filter, sort, page) and multiple endpoints for integrated analysis and dashboards.
  • Use cases include tracking national debt trends, analyzing quarterly statements, monitoring interest costs, and building fiscal-data dashboards.

Quick Start

Query the debt_to_penny endpoint for the latest tot_pub_debt_out_amt and present the value in a readable currency format.

Frequently Asked Questions about usfiscaldata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access U.S. Treasury fiscal data without an API key?

You can access U.S. Treasury fiscal data without an API key by querying open REST API endpoints that return debt, cash flow, and revenue datasets in JSON, CSV, or XML formats.

Can I filter and sort federal financial data when querying the Treasury API?

Yes, querying the Treasury API supports common parameters including fields, filter, sort, and paging to help you retrieve specific federal financial data across multiple endpoints.

What U.S. fiscal datasets are available through the open Treasury API?

Available U.S. fiscal datasets include Debt to the Penny, Daily Treasury Statements (DTS), Monthly Treasury Statements (MTS), interest rates, exchange rates, and savings bonds for analysis and dashboards.

How do I retrieve the current national debt to the penny for analysis?

Query the debt_to_penny endpoint to retrieve the latest tot_pub_debt_out_amt value, then format the returned JSON data into a readable currency format for your analysis or dashboard.

Does the Treasury API return pagination metadata with its fiscal data responses?

Yes, the Treasury API returns pagination metadata alongside the requested fiscal data, allowing you to systematically page through large datasets of interest rates, debt amounts, and exchange rates.

What formats can I export U.S. federal financial data into using this API?

You can export U.S. federal financial data into JSON, CSV, or XML formats, enabling reproducible research, integrated analysis, and direct integration into fiscal-data dashboards.