# agenttoll.dev National Debt Data

> agenttoll.dev National Debt Data is a paid API for AI agents from agenttoll.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Retrieves current and historical U.S. national debt figures from federal data sources, payable per call in USDC.

## Facts

- Endpoint: POST https://agenttoll.dev/paid/gov/national-debt
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttoll-dev-national-debt-data-4d7fd4ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CzuAzx_UgAybdultgCxYG

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 agenttoll-dev-national-debt-data-4d7fd4ef -d '<json body>'
```

Example prompt: What is the current U.S. national debt? Pull the latest figures from federal data so I can include them in my economic briefing.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to U.S. national debt data without managing API keys or subscriptions. Ideal for AI agents that need on-demand federal fiscal data as part of economic research, financial dashboards, or policy monitoring workflows. Prefer this over web scraping Treasury.gov when you need structured JSON output with minimal setup.

## Known failure modes

- Empty data array if federal source is unavailable or rate-limited
- Payment failure if USDC balance is insufficient or x402 header is malformed
- success: false if upstream Treasury data API is down
- Stale data if federal source has not been recently updated
- HTTP 402 if payment is not included or rejected

## How this service works

108+ receipt-backed x402 work products for AI agents. Clear prices, spend caps, buyer metadata, and structured results over Base USDC.

## Output

Returns a JSON object with a 'data' array containing national debt figures (likely including date-stamped debt totals in dollars) and a 'success' boolean indicating whether the request succeeded. Specific fields within the data array may include total public debt, intragovernmental holdings, and debt held by the public.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttoll-dev-national-debt-data-4d7fd4ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.dev](https://www.zero.xyz/host/agenttoll.dev/llms.txt)
