usfiscaldata

Queries the U.S. @Treasury Fiscal Data API for national debt and spending statistics.

2|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill usfiscaldata-lord1egypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/Lord1Egypt/scientific-agent-toolkit/tree/main/scientific-skills/usfiscaldata
Command: npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill usfiscaldata-lord1egypt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pandas, and includes references (resource) components.

What problem does it solve?

This skill eliminates the complexity of navigating the U.S. Treasury's vast financial databases by providing a streamlined interface to query federal debt, spending, and economic indicators directly.

Core Features & Use Cases

  • Direct API Access: Query 54 datasets and 182 data tables, including national debt, interest rates, and exchange rates, without needing an API key.
  • Automated Reporting: Easily pull historical debt trends, daily treasury statements, or monthly budget summaries into pandas DataFrames for immediate analysis.
  • Use Case: A researcher can use this skill to instantly retrieve the last ten years of U.S. national debt data to visualize fiscal trends without manually downloading and cleaning CSV files.

Quick Start

Use the usfiscaldata skill to fetch the latest national debt figures and print the total public debt outstanding.

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 financial data without an API key?

You can query U.S. Treasury financial data without an API key by using this skill to execute RESTful calls directly against the Treasury Fiscal Data API, retrieving national debt, spending, and interest rates.

How do I pull historical national debt data into pandas for analysis?

To pull historical national debt data into pandas, this skill processes JSON responses from the Treasury API and structures them into pandas DataFrames, enabling immediate analysis of fiscal trends.

What U.S. federal finance datasets are available through the Treasury API?

The Treasury API provides access to 54 datasets and 182 data tables, including national debt, interest rates, exchange rates, daily treasury statements, and monthly budget summaries for economic research.

Do I need the requests and pandas libraries to retrieve federal spending data?

Yes, you need the requests and pandas libraries because this skill relies on requests to execute RESTful calls and pandas to process the JSON responses into structured data formats.

Can I automate daily treasury statement retrieval for economic reporting?

You can automate daily treasury statement retrieval by integrating this skill into automated reporting workflows, pulling federal financial statistics directly into structured DataFrames for reporting.