{
  "x402Version": 2,
  "id": 39906,
  "slug": "39906",
  "resource": "https://x402stock.xyz/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",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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.xyz",
  "lastUpdated": "2026-10-08T06:26:14.501Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-10-08T06:26:14.278Z"
  },
  "metadata": {
    "extensions": {
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402stock.xyz",
    "manifest_name": "x402stock.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "as_of": null,
      "change": null,
      "change_percent": null,
      "history": [
        {
          "date": "string",
          "debt_held_by_public": null,
          "intragovernmental_holdings": null,
          "total_public_debt_outstanding": null
        }
      ],
      "latest": null,
      "prior": null,
      "series": "string",
      "source": "string",
      "unit": "string"
    },
    "type": "string"
  }
}