usfiscaldata

Query and analyze U.S. Treasury Fiscal Data API datasets with standard parameters.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill usfiscaldata-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/usfiscaldata
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill usfiscaldata-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables researchers, analysts, and developers to access and analyze U.S. federal fiscal data from Treasury APIs without manual scraping or ad-hoc data wrangling.

Core Features & Use Cases

  • Open REST API access to 54 datasets including Debt to the Penny, Daily Treasury Statements (DTS), Monthly Treasury Statements (MTS), and exchange rates.
  • Flexible querying with fields, filter, sort, and pagination, with results suitable for loading into pandas dataframes for analysis.
  • Use Case: Finance teams and researchers can track national debt, government revenue and spending, interest expenses, and exchange rates to inform policy or investment decisions.

Quick Start

Query the API for the latest national debt value and load it into a dataframe for analysis.

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 for datasets like national debt and exchange rates, returning results with metadata for analysis.

Can I load Treasury API responses directly into a pandas dataframe?

Yes, you can load Treasury API responses into a pandas dataframe by using standard parameters like fields, filter, sort, and page to structure the returned data for analysis.

What federal fiscal datasets are available through the Treasury API?

Available federal fiscal datasets include Debt to the Penny, Daily Treasury Statements (DTS), Monthly Treasury Statements (MTS), and exchange rates across 54 accessible datasets via v1 and v2 endpoints.

How do I filter and sort national debt data using the Treasury API?

You can filter and sort national debt data by applying standard parameters such as fields, filter, and sort in your query to the Treasury API, which supports precise data retrieval across endpoints.

Does the Treasury API support pagination for large fiscal data queries?

Yes, the Treasury API supports pagination through the page parameter, allowing you to manage large fiscal data queries across 54 datasets by retrieving structured pages with metadata.

What's the best way to track government revenue and spending for analysis?

The best way to track government revenue and spending for analysis is querying the Monthly Treasury Statements (MTS) dataset via the Treasury API and loading the results into pandas dataframes.