Skip to content

US Treasury Fiscal Data API

US federal debt, interest rates, revenue and spending datasets.
Status
Working
API key
Not needed
Browser calls
Runs in the browser
Latency
313 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1

Sent from your browser straight to api.fiscaldata.treasury.gov. No proxy: this site never sees the request or the answer.

Copy the request

Shell
curl -s 'https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1'

Response stored by the verifier

This is what api.fiscaldata.treasury.gov answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "data": [
    {
      "record_date": "1993-04-01",
      "debt_held_public_amt": "null",
      "intragov_hold_amt": "null",
      "tot_pub_debt_out_amt": "4225873987843.44",
      "src_line_nbr": "1",
      "record_fiscal_year": "1993",
      "record_fiscal_quarter": "3",
      "record_calendar_year": "1993",
      "record_calendar_quarter": "2",
      "record_calendar_month": "04",
      "record_calendar_day": "01"
    }
  ],
  "meta": {
    "count": 1,
    "labels": {
      "record_date": "Record Date",
      "debt_held_public_amt": "Debt Held by the Public",
      "intragov_hold_amt": "Intragovernmental Holdings",
      "tot_pub_debt_out_amt": "Total Public Debt Outstanding",
      "src_line_nbr": "Source Line Number",
      "record_fiscal_year": "Fiscal Year",
      "record_fiscal_quarter": "Fiscal Quarter Number",
      "record_calendar_year": "Calendar Year",
      "record_calendar_quarter": "Calendar Quarter Number",
      "record_calendar_month": "Calendar Month Number",
      "record_calendar_day": "Calendar Day Number"
    },
    "dataTypes": {
      "record_date": "DATE",
      "debt_held_public_amt": "CURRENCY",
      "intragov_hold_amt": "CURRENCY",
      "tot_pub_
…

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "data".

Last check: — passed, HTTP 200 in 313 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Badge for your README

If you maintain this API, you can show its last check in your README. The image is made when the site is built, so it shows that check and its date; it is not live, and it can be older than the status page until the site is published again. The link goes back to this page.

freeapi.today: Working, checked 2026-11-26
Markdown
[![freeapi.today status](https://freeapi.today/badge/us-treasury-fiscal-data.svg/)](https://freeapi.today/apis/us-treasury-fiscal-data/)

Questions

Does the US Treasury Fiscal Data API need an API key?

No. The sample request on this page was answered without a key, token or account.

Can I call the US Treasury Fiscal Data API from the browser?

Yes. api.fiscaldata.treasury.gov answered our verifier with an Access-Control-Allow-Origin header on Nov 26, 2026, so a fetch call from a web page can read the response.

Is the US Treasury Fiscal Data API working?

At the check on Nov 26, 2026 it returned HTTP 200 with the expected data in 313 ms. The status at the top of this page shows the most recent result we have.