# greeneris-data US Debt to the Penny

> greeneris-data US Debt to the Penny is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the latest US national debt figures (total, public, intragovernmental) from the US Treasury FiscalData API

## Facts

- Endpoint: GET https://data.greeneris.io/v1/us/debt
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-us-debt-to-the-penny-dda1f764
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kc8MwDttYssrGz_LsTnA7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-us-debt-to-the-penny-dda1f764
```

Example prompt: What is the current US national debt? Give me the 5 most recent daily readings including how much is held by the public vs intragovernmental holdings.

## When to prefer this

Use this endpoint when you need authoritative, up-to-date US national debt figures broken down by public debt and intragovernmental holdings, sourced directly from US Treasury. Prefer this over general web search when you need structured, machine-readable fiscal data with a reliable schema. Especially useful for macroeconomic dashboards, financial research, or monitoring US debt trends over time with a 'since' date filter.

## Known failure modes

- HTTP 402 returned with machine-readable payment quote if USDC payment not provided
- Empty result set if 'since' date is in the future or has no business day data
- Invalid 'limit' parameter (outside 1-100 range) may cause error
- Stale data if queried on weekends or US federal holidays when Treasury does not publish

## How this service works

Total US public debt outstanding from the official Treasury Debt to the Penny dataset (FiscalData API, published every business day ~3pm ET). Query: no params -> latest data point; ?limit=30 (1-100, newest first) and ?since=2026-01-01 (record_date floor) for history back to 1993. Returns per day the debt held by the public, intragovernmental holdings and total, in USD. Cached 6h.

## Output

A JSON object containing a count of records, the data source attribution (US Treasury FiscalData API), and an array of debt records each with record_date, total_public_debt_usd, debt_held_by_public_usd, and intragovernmental_holdings_usd. Records are sorted newest first and updated daily on business days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 1,
       "description": "Max records, newest first (1-100)"
      },
      "since": {
       "type": "string",
       "description": "Only records with record_date >= this ISO date"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "source": "US Treasury FiscalData API, Debt to the Penny (daily on business days, public domain)",
  "records": [
   {
    "record_date": "2026-07-09",
    "total_public_debt_usd": 39414179016130.09,
    "debt_held_by_public_usd": 31709399350223.4,
    "intragovernmental_holdings_usd": 7704779665906.69
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-us-debt-to-the-penny-dda1f764/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
