AgentAPIGate
Back to Catalog
GET /v1/macro/treasury/national_debtPack: finance·MCP Tool: macro_treasury_national_debt

US Treasury Daily National Debt to the Penny

Fetch official daily US Treasury Debt to the Penny records including total public debt outstanding, debt held by the public, intragovernmental holdings, and daily USD debt change.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Number of daily Treasury records (1-100)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/macro/treasury/national_debt" \
  --data-urlencode "limit=30" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-80% tokens
# US Treasury Daily National Debt to the Penny (`macro.treasury.national_debt`)
**latest_record_date**: 2026-11-25 · **latest_total_public_debt_usd**: 40770711005867.6 · **latest_daily_delta_usd**: -22594698929.1 · **count**: 30

## records
- [1] record_date: 2026-11-25, tot_pub_debt_out_amt: 40770711005867.6, debt_held_public_amt: 32954740552044.49, intragov_hold_amt: 7815970453823.11, daily_delta_usd: -22594698929.1
- [2] record_date: 2026-11-24, tot_pub_debt_out_amt: 40793305704796.7, debt_held_public_amt: 32953125686852.62, intragov_hold_amt: 7840180017944.08, daily_delta_usd: 65951374877.17
- [3] record_date: 2026-11-23, tot_pub_debt_out_amt: 40727354329919.53, debt_held_public_amt: 32902453860814.01, intragov_hold_amt: 7824900469105.52, daily_delta_usd: 16937171239.38
- [4] record_date: 2026-11-20, tot_pub_debt_out_amt: 40710417158680.15, debt_held_public_amt: 32901198701800.97, intragov_hold_amt: 7809218456879.18, daily_delta_usd: 636458363.13
- [5] record_date: 2026-11-19, tot_pub_debt_out_amt: 40709780700317.02, debt_held_public_amt: 32901459975089.26, intragov_hold_amt: 7808320725227.76, daily_delta_usd: 19011061467.07
- [6] record_date: 2026-11-18, tot_pub_debt_out_amt: 40690769638849.95, debt_held_public_amt: 32886805439264.87, intragov_hold_amt: 7803964199585.08, daily_delta_usd: -24176677723.39
- [7] record_date: 2026-11-17, tot_pub_debt_out_amt: 40714946316573.34, debt_held_public_amt: 32887006494499.79, intragov_hold_amt: 7827939822073.55, daily_delta_usd: 52528920955.91
- [8] record_date: 2026-11-16, tot_pub_debt_out_amt: 40662417395617.43, debt_held_public_amt: 32852881286592.8, intragov_hold_amt: 7809536109024.63, daily_delta_usd: 45738568525.36
- [9] record_date: 2026-11-13, tot_pub_debt_out_amt: 40616678827092.07, debt_held_public_amt: 32825322014326.67, intragov_hold_amt: 7791356812765.4, daily_delta_usd: 8171970188.82
- [10] record_date: 2026-11-12, tot_pub_debt_out_amt: 40608506856903.25, debt_held_public_amt: 32824386143424.8, intragov_hold_amt: 7784120713478.45, daily_delta_usd: 24376776630.36
- [11] record_date: 2026-11-10, tot_pub_debt_out_amt: 40584130080272.89, debt_held_public_amt: 32800204226578.75, intragov_hold_amt: 7783925853694.14, daily_delta_usd: 24333491029.52
- [12] record_date: 2026-11-09, tot_pub_debt_out_amt: 40559796589243.37, debt_held_public_amt: 32763773414012.5, intragov_hold_amt: 7796023175230.87, daily_delta_usd: 7045570150.76
- [13] record_date: 2026-11-06, tot_pub_debt_out_amt: 40552751019092.61, debt_held_public_amt: 32762925356629.47, intragov_hold_amt: 7789825662463.14, daily_delta_usd: -3369765891.04
- [14] record_date: 2026-11-05, tot_pub_debt_out_amt: 40556120784983.65, debt_held_public_amt: 32766722473715.61, intragov_hold_amt: 7789398311268.04, daily_delta_usd: 5890737374.5
- [15] record_date: 2026-11-04, tot_pub_debt_out_amt: 40550230047609.15, debt_held_public_amt: 32765175912225.5, intragov_hold_amt: 7785054135383.65, daily_delta_usd: 2826476624.33

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: macro.treasury.national_debt · Method: GET
ParameterTypeReqSample / DefaultDescription
limitnumberoptional30Number of daily Treasury records (1-100)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolmacro_treasury_national_debtOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency377 ms$0 billed on empty or 4xx/5xx
Token Economy3874t → 771t (-80%)Partner credit: eligible

More macro.treasury Sibling Endpoints

Frequently Asked Questions

How do I call US Treasury Daily National Debt to the Penny (macro.treasury.national_debt) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/macro/treasury/national_debt with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool macro_treasury_national_debt on https://mcp.agentapigate.ai/mcp.

What does macro.treasury.national_debt cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on macro.treasury.national_debt?

Passing ?format=md transforms the response into normalized Markdown (~771 tokens vs ~3874 raw tokens, saving 80% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only finance endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["macro.treasury.national_debt"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.