Public Finance & Government

National debt (daily)

Changed on

Total public debt outstanding, updated daily. Returns the latest daily records, newest first. start_date and end_date narrow the answer to a record_date window: end_date=<a day a year back> with limit=1 answers the value on or before that day in one small call. A windowed call returns only the newest limit records inside the window, never the whole window: limit defaults to 10 and is at most 100, so a window with more days than limit is cut at its older end.

get/api/v1/treasury/debt

Request

  • Base URL: https://sugra.ai
  • URL: https://sugra.ai/api/v1/treasury/debt
  • Auth: API key in header x-api-key

Query parameters

start_datestring date nullable

Optional. Earliest record_date to return (YYYY-MM-DD).

end_datestring date nullable

Optional. Latest record_date to return (YYYY-MM-DD).

limitinteger

Maximum number of daily records, newest first. Default 10, maximum 100. With a window, the newest limit records inside it are returned.

Response

Daily national debt records.

Example response

{
  "meta": {
    "endpoint": "/api/v1/fred/us/cpi",
    "data_time": "2026-04-16T14:30:00Z",
    "response_time": "2026-04-16T14:30:12Z",
    "provider": "Sugra API v1.0.1",
    "data_age_days": 8.532,
    "source": "sugra_crypto",
    "attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
    "fallback_chain": [
      "sugra_crypto",
      "sugra_finance"
    ],
    "stale_since": "2026-09-08T12:00:00Z",
    "period": "2026-Q1",
    "notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
  }
}

Changes

    • info

      added the new optional query request parameter end_date

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter start_date

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status