usfiscaldata

Query the U.S. Treasury Fiscal Data API for federal fiscal indicators.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill usfiscaldata-estrella-231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/usfiscaldata
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill usfiscaldata-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of finding and downloading reliable U.S. federal fiscal statistics by querying the U.S. Treasury Fiscal Data API for up-to-date debt, spending, revenue, interest rates, exchange rates, and savings bond information without dealing with authentication or complex setup.

Core Features & Use Cases

  • Instant API data retrieval (no API key): Pulls from many Treasury datasets such as Debt to the Penny, Daily and Monthly Treasury Statements, interest rates, exchange rates, auctions, and savings bonds.
  • Query control for analysis-ready datasets: Supports field selection, filtering, sorting, and pagination so you can retrieve exactly what you need for analysis or reporting.
  • Data-workflow support with examples: Guides common tasks like building a DataFrame, converting returned string values to numeric/date types, and aggregating results.
  • Use Case: If you need a dataset for national debt trend analysis and related interest-rate context, you can query the debt series and the relevant rate tables, then join and compute indicators in your own workflow.

Quick Start

Use the usfiscaldata skill to get the latest national debt value from the Debt to the Penny endpoint.

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 interest rates?

You retrieve U.S. Treasury fiscal data by constructing REST GET requests against the fiscal_service base URL with specific endpoint paths for national debt, interest rates, and exchange rates, then applying fields, filter, sort, and pagination parameters to obtain analysis-ready time-series datasets.

Do I need an API key to retrieve federal spending and revenue statements from the Treasury API?

No API key is required to retrieve federal spending and revenue statements. The U.S. Treasury Fiscal Data API supports instant data retrieval without authentication, allowing direct access to daily and monthly treasury statements via standard REST GET requests.

Can I filter and paginate Treasury exchange rate datasets for reporting?

Yes, you can filter and paginate Treasury exchange rate datasets for reporting. The API supports field selection, filtering by dates or categories, sorting, and pagination parameters, enabling retrieval of exact data subsets for dashboards or modeling workflows.

How do I handle string-typed numeric and date fields returned in the JSON response from the Treasury API?

You handle string-typed numeric and date fields from the JSON response by converting them within your own workflow. The Skill guides common tasks like building a DataFrame and transforming returned string values into proper numeric and date types for aggregation and reporting.

What is the best way to get savings bond metrics and auction data from the U.S. Treasury?

The best way to get savings bond metrics and auction data is querying the U.S. Treasury Fiscal Data API using appropriate endpoint paths. You select fields, apply date filters, and sort results to build analysis-ready datasets without authentication or complex setup.

What are the limitations of retrieving national debt trend data through the Treasury Fiscal Data API?

A key limitation of retrieving national debt trend data is that the API returns all numeric and date fields as strings, requiring manual conversion. You must also construct REST GET requests with proper pagination parameters to avoid incomplete datasets during large time-series queries.