{"uid":"cap_SItjLck9lniORkFpHaRXT","slug":"vextorium-us-budget-deficit-59d24394","name":"Vextorium US Budget Deficit","description":"232 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/us-budget-deficit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"months":{"type":"integer","description":"1-36 (default 12)"}}},"responseSchema":{"type":"json","example":{"last":{"month":"2026-08","balance_usd":-166796952277,"revenue_usd":360032735841,"expenses_usd":526829688119},"note":"Negative balance = deficit.","series":[{"month":"2026-03","balance_usd":-164100313818,"revenue_usd":384862602036,"expenses_usd":548962915854},{"month":"2026-04","balance_usd":215024135198,"revenue_usd":837342690994,"expenses_usd":622318555796}],"source":"U.S. Treasury, Monthly Treasury Statement (public domain)","deficit_last_12m_usd":-1767641387110}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w0pf3lb9_D2-bIhmUMfpS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns monthly U.S. federal budget data (revenue, expenses, balance) for up to 36 months, sourced from the U.S. Treasury Monthly Treasury Statement.","exampleAgentPrompt":"Pull the US federal budget deficit data for the last 12 months — I want to see monthly revenue, expenses, and the running balance, plus the 12-month total deficit figure.","exampleUseCases":[{"title":"Macroeconomic research briefing","prompt":"Give me the US federal budget deficit trend for the last 24 months — monthly revenue, expenses, and balance — so I can include it in an economic research report."},{"title":"Dashboard widget for fiscal health","prompt":"I need the last 6 months of US Treasury data — monthly income, spending, and balance — to populate a fiscal health dashboard I'm building."},{"title":"Checking current deficit size","prompt":"What's the current US government deficit? Show me the most recent month and the total for the trailing 12 months."}],"resultDescription":"A JSON object containing the most recent month's revenue, expenses, and balance in USD; a time-series array of monthly entries for the requested period (each with month label, revenue, expenses, and balance); the rolling 12-month deficit total in USD; a note clarifying that negative balance equals deficit; and a source attribution to the U.S. Treasury Monthly Treasury Statement.","failureModes":["Invalid months value outside 1-36 range returns an error or default behavior","Data may lag by one month if the Treasury Statement has not yet been published for the current month","Network or payment authorization failure returns a 402 or 5xx error","Malformed request body (wrong bodyType or missing required fields) returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need official, U.S. Treasury-sourced monthly fiscal data (revenue, expenses, deficit/surplus) with minimal setup and pay-per-call pricing via USDC. Prefer it over web scraping or generic economic APIs when you need structured, machine-readable data with a citation, or when you need up to 36 months of historical monthly series in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:45:24.625Z","isFirstParty":false,"canonicalSlug":"vextorium-us-budget-deficit-59d24394"}