{
  "x402Version": 2,
  "id": 14621,
  "slug": "14621",
  "resource": "https://x402stock.vercel.app/api/v1/national-debt",
  "description": "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",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402stock.vercel.app",
  "lastUpdated": "2026-08-28T01:40:26.341Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-28T01:40:26.099Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402stock.vercel.app",
    "manifest_name": "x402stock.vercel.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}