How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

U.S. Treasury Fiscal Data National Debt API

Federal debt, public debt outstanding, and interest rate data.

U.S. Treasury Fiscal Data National Debt API is one of 4 APIs that U.S. Treasury Fiscal Data publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 5 JSON Schema definitions.

Tagged areas include National Debt. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, a JSON-LD context, and 5 JSON Schemas.

This API exposes 4 operations across 4 paths, and defines 8 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://api.fiscaldata.treasury.gov/services/api/fiscal_service.

4 operations 4 paths 8 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Base URL
https://api.fiscaldata.treasury.gov/services/api/fiscal_service
Resource Areas
1

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

National Debt 4

Federal debt, public debt outstanding, and interest rate data.

GET
/v2/accounting/od/debt_to_penny
Treasury Fiscal Data Get Debt to the Penny
getDebtToPenny 6 params → 200400
GET
/v2/accounting/od/avg_interest_rates
Treasury Fiscal Data Get Average Interest Rates on U.S. Treasury Securities
getAvgInterestRates 6 params → 200400
GET
/v2/accounting/od/interest_expense
Treasury Fiscal Data Get Interest Expense on the Debt Outstanding
getInterestExpenseDebt 6 params → 200400
GET
/v1/accounting/od/gift_contributions
Treasury Fiscal Data Get Gift Contributions to Reduce the Public Debt
getGiftContributionsDebt 6 params → 200400

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are DebtRecord (11 properties), FiscalMeta (6 properties), FiscalLinks (5 properties), InterestRateRecord (4 properties). Each schema is shown below with its type and property counts.

InterestRateResponse
object
Response from the Average Interest Rates endpoint.
3 properties
FiscalLinks
object
Pagination links for navigating result pages.
5 properties
DebtToPennyResponse
object
Response from the Debt to the Penny endpoint.
3 properties
FiscalMeta
object
Metadata included in all Treasury Fiscal Data API responses.
6 properties
ErrorResponse
object
Error response from the Treasury Fiscal Data API.
3 properties
GenericFiscalResponse
object
Generic Treasury Fiscal Data API response for datasets not covered by specific schemas.
3 properties
InterestRateRecord
object
A single interest rate record for a Treasury security type.
4 properties
DebtRecord
object
A single record from the Debt to the Penny dataset.
11 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

u-s-treasury-fiscal-data-national-debt-api-openapi.yml Raw ↑

Other APIs U.S. Treasury Fiscal Data publishes across the network.

U.S. Treasury Fiscal Data Exchange Rates API
U.S. Treasury Fiscal Data Securities API
U.S. Treasury Fiscal Data Treasury Statements API
Where this information came from

This is an independent, third-party profile of U.S. Treasury Fiscal Data National Debt API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.