Fed Treasury API
Overview
The U.S. Treasury Fiscal Data API provides free, official financial data from the U.S. Department of the Treasury, including national debt, federal spending, and government financial statements. No API key is needed — just call the endpoints directly to get reliable, up-to-date data straight from the source. This is an excellent starting point for anyone learning about public finance data or building government data visualizations.
Beginner Tip
Use the "fields" parameter to request only the columns you need — this significantly reduces response size and speeds up your requests. The "sort" and "pagination" parameters help you navigate large datasets without loading everything at once.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Fed Treasury",
"description": "U.S. Department of the Treasury Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
record_date The date the financial record applies to, in YYYY-MM-DD format. data Array of objects containing the requested financial data rows. meta.total_count Total number of records matching the query, used for pagination. meta.total_pages Total number of pages available given the current page size setting. links.next URL for the next page of results, or null if on the last page. Implementation Example
const url = "https://fiscaldata.treasury.gov/api-documentation/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Binlist
⭐ Beginner's PickBinlist gives you free access to a database of Bank Identification Numbers (BINs), the first 6-8 digits of any credit or debit card number that identify the issuing bank and card type.
Econdb
⭐ Beginner's PickEcondb provides free access to global macroeconomic data including GDP, inflation, unemployment, and hundreds of other economic indicators from official sources like central banks and statistical agencies.
Indian Mutual Fund
⭐ Beginner's PickThe Indian Mutual Fund API gives you free access to the complete history of all mutual funds registered in India.
Portfolio Optimizer
⭐ Beginner's PickPortfolio Optimizer is a free REST API that helps you analyze and optimize investment portfolios using advanced mathematical models.
Razorpay IFSC
⭐ Beginner's PickRazorpay IFSC API lets you look up Indian bank branch details using an 11-character IFSC code — completely free and without authentication.