National Debt API
National Debt provides real-time access to the US national debt (Debt to the Penny). It returns the total public debt, debt held by the public, intragovernmental holdings, and per-capita debt calculations.
Live Test API
Try out the National Debt with a live request and see the response in real-time.
API Request
API Response
12345678910111213141516{ "status": "ok", "error": null, "data": { "date": "2024-02-01", "totalDebt": 34186489456789.12, "totalDebtFormatted": "$34.19 trillion", "publicDebt": 26912345678901.23, "publicDebtFormatted": "$26.91 trillion", "intragovernmentalDebt": 7274143777887.89, "intragovernmentalDebtFormatted": "$7.27 trillion", "perCapita": 102049, "perCapitaFormatted": "$102,049", "population": 335000000 } }
Multiple Access Methods
REST API with multiple response formats, GraphQL, and MCP for AI agents
View all integrationsJSON
JavaScript Object Notation
XML
Extensible Markup Language
YAML
Human-readable data format
CSV
Comma-separated values
GraphQL
Query language for APIs
MCP
AI agent integration
Skip the HTTP calls. Use our official packages
Integrate faster with type-safe SDKs and comprehensive documentation
View all integrationsRelated APIs
Explore other finance APIs that complement the National Debt
Frequently Asked Questions
Get answers to common questions about the National Debt API
Who built the National Debt API?
The National Debt API is built and maintained by APIVerve. All 300+ APIs on our platform are developed in-house by the APIVerve team, ensuring consistent quality, unified authentication, predictable pricing, and enterprise-grade reliability backed by our 99.9% uptime SLA. We handle the infrastructure, maintenance, and updates so you can focus on building your application.
What does the National Debt API do?
National Debt provides real-time access to the US national debt (Debt to the Penny). It returns the total public debt, debt held by the public, intragovernmental holdings, and per-capita debt calculations. The API returns structured data in JSON, XML, or YAML format, making it easy to integrate into any application or workflow.
How fast is the National Debt API?
The National Debt API has an average response time of 500ms, with a median (p50) of 467ms and 99th percentile of 720ms. Our infrastructure maintains 99.9% uptime with servers distributed globally for low latency.
How much does the National Debt API cost?
Each call to the National Debt API uses 1 credit. The free tier includes 100 credits per month. Paid plans start at $29.99/month with higher limits, and enterprise plans offer custom pricing with priority support.
How do I authenticate National Debt API requests?
Include your API key in the request header as X-API-Key: your_key_here. All requests are made over HTTPS for security. You can get your API key by signing up for a free account.
What HTTP methods does National Debt support?
The National Debt API supports GET requests. Simply pass your parameters as query strings in the URL. Check our documentation for detailed parameter specifications.
Ready to integrate National Debt API?
Join thousands of developers building amazing applications with reliable API data. Get started with your free API key today.