usfiscaldata

Query U.S. Treasury Fiscal Data API endpoints for federal financial statistics.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill usfiscaldata-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/15-%E9%87%91%E8%9E%8D%E4%B8%8E%E7%BB%8F%E6%B5%8E%E6%95%B0%E6%8D%AE/usfiscaldata
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill usfiscaldata-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of manually looking up or reformatting U.S. Treasury fiscal statistics by directly querying the Fiscal Data API for ready-to-use datasets and tables.

Core Features & Use Cases

  • Debt, spending, revenue, and rates: Retrieve national debt, Daily Treasury Statements, Monthly Treasury Statements, interest rates, exchange rates, and savings-bond related series for research or reporting.
  • No key required & dataset-focused: Uses open endpoints to access a broad collection of 54 datasets and 182 tables without authentication.
  • Analysis-ready results: Supports practical parameters like fields selection, filtering by date/attributes, sorting, and pagination so you can quickly turn API responses into analysis tables.

Quick Start

Query the U.S. Treasury Fiscal Data API for the most recent total public debt value using the endpoint for national debt and request the latest record only.

Frequently Asked Questions about usfiscaldata

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

FAQPage Schema
How do I query U.S. Treasury fiscal data for national debt and exchange rates?

You can query U.S. Treasury fiscal data by constructing GET requests with endpoint-specific parameters to retrieve national debt, exchange rates, and savings bonds. The API returns JSON data for downstream conversion to typed numeric and date fields.

What U.S. federal financial datasets are available without an API key?

U.S. Treasury fiscal data offers open endpoints accessing 54 datasets and 182 tables without authentication. You can retrieve national debt, interest rates, exchange rates, Daily Treasury Statements, and Monthly Treasury Statements.

Can I filter time series data from the U.S. Treasury Fiscal Data API by specific dates?

Yes, time series data from the U.S. Treasury Fiscal Data API supports time-bounded filtering. You construct GET requests using filter and sort parameters to narrow down records by specific dates and attributes.

How do I handle pagination when retrieving large datasets from the Treasury API?

Pagination-safe extraction is supported across multiple treasury endpoints by using page controls in your GET requests. This ensures you retrieve all available records from the U.S. Treasury Fiscal Data API without missing data.

What's the best way to get analysis-ready tables from Treasury fiscal data?

To get analysis-ready tables from Treasury fiscal data, use fields selection, filtering, and sorting parameters in your API query. This allows you to quickly turn JSON API responses into structured tables for economic and policy analysis.

Do I need an API key to retrieve government spending data from the U.S. Treasury?

No, you do not need an API key to retrieve government spending data from the U.S. Treasury. The Fiscal Data API uses open endpoints that provide access to federal financial statistics without authentication.