{"uid":"cap_0Bf85oVl54MTMf0JiRSdB","slug":"us-treasury-debt-to-the-penny-feed-367fa253","name":"US Treasury Debt to the Penny Feed","description":"Paid public-data feeds. Unpaid requests return HTTP 402. Prices are USDC on Base.","url":"https://project-api-gamma-sable.vercel.app/paid/treasury/debt-to-penny?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"],"type":"string"},"queryParams":{"type":"object","properties":{"page":{"type":"string","description":"Page number"},"limit":{"type":"string","description":"Max results"},"endDate":{"type":"string","description":"End date (YYYY-MM-DD)"},"end_date":{"type":"string","description":"Query param: end_date"},"startDate":{"type":"string","description":"Start date (YYYY-MM-DD)"},"recordDate":{"type":"string","description":"Query param: recordDate"},"start_date":{"type":"string","description":"Query param: start_date"},"record_date":{"type":"string","description":"Query param: record_date"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"what":"Treasury Fiscal Data debt to the penny (slim JSON + uiLink)","items":[],"source":"/paid/treasury/debt-to-penny"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UEJeTdzspm9vg2vJDdUiv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current and historical US national debt figures (debt to the penny) from the Treasury Fiscal Data API, with pagination and date filtering support.","exampleAgentPrompt":"What was the US national debt to the penny for the last week of March 2024? Give me up to 10 records starting from 2024-03-25.","exampleUseCases":[{"title":"Daily national debt dashboard widget","prompt":"Pull the most recent US debt to the penny figure from Treasury — just the latest record so I can display it on my dashboard."},{"title":"Historical debt range comparison","prompt":"Get me the US national debt figures from January 1, 2020 through December 31, 2020, paginated 50 records at a time, so I can compare how debt changed during that year."},{"title":"Automated fiscal report for a specific date","prompt":"What was the exact US national debt on October 15, 2023 according to the Treasury's debt-to-the-penny data?"}],"resultDescription":"Returns a slim JSON object containing an array of Treasury debt-to-the-penny records filtered by the requested date range and pagination parameters, plus a uiLink pointing to the source on TreasuryFiscalData.gov. Each item includes the recorded debt amount and the record date.","failureModes":["HTTP 402 if USDC payment on Base is not provided — unpaid requests are blocked","Empty items array if no records exist for the specified date range","Invalid date format returns an error or empty result","Pagination beyond available records returns empty items","Network or Vercel cold-start latency on first request"],"whenToPreferThis":"Use this endpoint when you need official US national debt figures sourced directly from the Treasury Fiscal Data API, especially when you want date-filtered or paginated historical records. Prefer this over scraping Treasury websites or using general finance APIs that may lag or aggregate differently. It is the right choice when you need the precise 'debt to the penny' figure as reported by the US government.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:36:11.196Z","isFirstParty":false,"canonicalSlug":"us-treasury-debt-to-the-penny-feed-367fa253"}