The total US public debt outstanding to the penny — the headline national-debt figure — sp
The total US public debt outstanding to the penny — the headline national-debt figure — split into debt held by the public and intragovernmental holdings, with the latest value, prior business day, day-over-day change, and recent history. No ticker needed. Updates each business day. Sourced from the US Treasury (FiscalData). Pass `?limit=` for more history (default 30, max 250). From x402stock
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-28
updated
Provider
x402stock.vercel.app · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"limit": 30
},
"type": "http"
},
"output": {
"example": {
"as_of": "2026-06-03T00:00:00.000Z",
"change": -17009871036.65,
"change_percent": -0.0434,
"history": [
{
"date": "2026-06-03",
"debt_held_by_public": 31599703500408.55,
"intragovernmental_holdings": 7605271214840.1,
"total_public_debt_outstanding": 39204974715248.65
}
],
"latest": {
"date": "2026-06-03",
"debt_held_by_public": 31599703500408.55,
"intragovernmental_holdings": 7605271214840.1,
"total_public_debt_outstanding": 39204974715248.65
},
"prior": {
"date": "2026-06-02",
"debt_held_by_public": 31597886394124.88,
"intragovernmental_holdings": 7624098192160.42,
"total_public_debt_outstanding": 39221984586285.3
},
"series": "debt_to_penny",
"source": "us_treasury",
"unit": "usd"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"limit": {
"default": 30,
"exclusiveMinimum": 0,
"maximum": 250,
"type": "integer"
}
},
"required": [
"limit"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"as_of": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"change": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"history": {
"items": {
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"debt_held_by_public": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"intragovernmental_holdings": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"total_public_debt_outstanding": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"date",
"total_public_debt_outstanding",
"debt_held_by_public",
"intragovernmental_holdings"
],
"type": "object"
},
"type": "array"
},
"latest": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"debt_held_by_public": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"intragovernmental_holdings": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"total_public_debt_outstanding": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"date",
"total_public_debt_outstanding",
"debt_held_by_public",
"intragovernmental_holdings"
],
"type": "object"
},
{
"type": "null"
}
]
},
"prior": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"date": {
"type": "string"
},
"debt_held_by_public": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"intragovernmental_holdings": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"total_public_debt_outstanding": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"date",
"total_public_debt_outstanding",
"debt_held_by_public",
"intragovernmental_holdings"
],
"type": "object"
},
{
"type": "null"
}
]
},
"series": {
"type": "string"
},
"source": {
"const": "us_treasury",
"type": "string"
},
"unit": {
"type": "string"
}
},
"required": [
"source",
"as_of",
"series",
"unit",
"latest",
"prior",
"change",
"change_percent",
"history"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402stock.vercel.app/api/v1/national-debt" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402stock.vercel.app/api/v1/national-debt");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402stock.vercel.app/api/v1/national-debt")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14621.json, and this resource appears in /discovery/resources and /discovery/search.