# U.S. Treasury Fiscal Data API

Category: [Finance](https://free-web-services.com/web-services/unit-convertors/fiinance/)  
Page: https://free-web-services.com/web-services/unit-convertors/fiinance/us-treasury-fiscal-data-api.html  
Documentation: https://fiscaldata.treasury.gov/api-documentation/

The Fiscal Data API from the U.S. Treasury gives federal finance data such as debt, revenue, spending, interest rates and savings bonds, for example to chart the national debt. Requests are GET calls that answer in JSON, XML or CSV. Free, no key needed, and the data may be reused, also commercially.

- API key: Not needed
- Pricing: Free, no key needed, and the data may be reused, also commercially.
- Commercial use: Allowed on the free plan
- From the browser: Yes (CORS)
- Formats: JSON, XML, CSV
- Interface: REST, HTTP-GET
- Provider: fiscaldata.treasury.gov

Example request:

```sh
curl 'https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/avg_interest_rates?page[size]=1'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

