usfiscaldata

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

48|6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill usfiscaldata-qinyan-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/qinyan-ai/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/qinyan-ai/qinyan-academic-skills --skill usfiscaldata-qinyan-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides programmatic access to U.S. federal financial data via the U.S. Treasury Fiscal Data API, enabling researchers and analysts to retrieve debt, receipts, expenditures, rates, and savings-bonds information without manual data collection.

Core Features & Use Cases

  • Open access to 54 datasets and 182 data tables across debt, daily and monthly statements, interest rates, exchange rates, and securities.
  • Flexible query capabilities with fields, filter, sort, and pagination, plus multiple output formats to support reproducible research and dashboards.
  • Use cases include national debt tracking (Debt to the Penny), DTS/MTS analysis, rate trends, and savings-bonds monitoring for policy and financial analysis.

Quick Start

Query the latest national debt total from the debt_to_penny endpoint and return the value.

Frequently Asked Questions about usfiscaldata

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

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

You can retrieve U.S. Treasury fiscal data without an API key by querying the open REST endpoints. This Skill accesses 54 datasets and 182 endpoints to fetch federal financial statistics like debt, receipts, and expenditures directly.

What U.S. federal financial statistics can I query using the Treasury Fiscal Data API?

The Treasury Fiscal Data API allows you to query federal financial statistics including national debt to the penny, daily and monthly statements (DTS/MTS), interest rates, exchange rates, and savings bonds across 54 available datasets.

Can I filter and sort U.S. national debt data when querying the Treasury API?

Yes, you can filter and sort U.S. national debt data when querying the Treasury API. The open v1/v2 REST endpoints support fields, filter, sort, and pagination parameters to help you retrieve specific federal financial records.

Does the U.S. Treasury Fiscal Data API return typed numeric data or strings?

The U.S. Treasury Fiscal Data API returns string-typed data and metadata. When you query endpoints for federal financial statistics like debt or interest rates, the response provides values as strings rather than strictly typed numeric formats.

What is the best way to analyze Daily Treasury Statements (DTS) for federal expenditures?

The best way to analyze Daily Treasury Statements (DTS) for federal expenditures is by using the open REST endpoints provided. You can query the specific DTS datasets with fields, filter, and pagination to support reproducible research and dashboards.