usfiscaldata

Fetch and analyze U.S. federal fiscal data from the Treasury Fiscal Data API.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill usfiscaldata-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: usfiscaldata
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/usfiscaldata
Command: npx skills add https://github.com/swaruplab/operon --skill usfiscaldata-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Access to authoritative U.S. federal fiscal data is often scattered across multiple endpoints and formats; this skill consolidates querying the Treasury Fiscal Data API to retrieve debt, receipts, spending, rates, and other public finance statistics, enabling rapid analysis.

Core Features & Use Cases

  • Unified access to 54 datasets and 182 tables via v1/v2 endpoints without an API key.
  • Flexible data retrieval using fields, filters, sorting, and pagination to build ready-to-analyze datasets.
  • Use cases include tracking national debt trends, monitoring Daily and Monthly Treasury Statements, and comparing exchange rates for fiscal analyses.

Quick Start

Query the latest debt_to_penny data 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 fiscal data without an API key?

The Treasury Fiscal Data API provides unified access to 54 datasets and 182 tables without requiring an API key. You can query debt, receipts, spending, and exchange rates using standard parameters like fields, filters, and sorting.

Can I filter and sort Daily Treasury Statement data using API parameters?

Yes, Daily Treasury Statement (DTS) data can be filtered and sorted using standard parameters like fields, filter, and sort. The API supports both v1 and v2 endpoints, returning data suitable for tabular analysis.

What is the best way to track national debt trends from the Treasury API?

The best way to track national debt trends is by querying the debt_to_penny dataset via the Treasury Fiscal Data API. You can retrieve total public debt outstanding and apply filters and sorting for trend analysis.

Does the Treasury Fiscal Data API support pagination for large datasets?

Yes, the Treasury Fiscal Data API supports pagination alongside fields, filters, and sorting. This enables you to retrieve large volumes of fiscal data across 182 tables for comprehensive tabular analysis.

How do I retrieve exchange rate data for fiscal analysis from the Treasury API?

You retrieve exchange rate data for fiscal analysis by querying the rates_of_exchange dataset from the Treasury Fiscal Data API. It supports v1 and v2 endpoints to fetch and compare rates across datasets.

What fiscal data tables are available through the Treasury API endpoints?

The Treasury API endpoints provide access to 54 datasets and 182 tables covering debt, receipts, spending, and rates. You can use standard parameters to retrieve specific public finance statistics fields.