Government and public data APIs for AI agents
These are pay-per-call APIs that let an AI agent pull government and public records: US census population, Federal Register documents, USPTO patents, SEC EDGAR filings, FRED economic series, the Treasury yield curve, OpenFDA drug safety reports, regulatory search, building permits, address standardization, and African and Latin American government reference data such as public holidays, VAT and minimum wages. No account or API key: the agent gets an HTTP 402 challenge, pays it with stablecoins (x402 or MPP) or over Lightning (L402), and retries. Every row below answered an unpaid probe; the price is the amount in that challenge, not a payment we made. SatBotly did not test the accuracy of any data.
Selection rule: each API was checked by hand and is included only when its name, endpoint and category clearly wrap government or official public data. CVE lookups are on security APIs for AI agents; stock and market data on financial data APIs for AI agents. Weather feeds and private analysis products are left out.
Ranked by price, lowest first
x402 and MPP prices are the stablecoin amount in the challenge; L402 prices are the sats in the unpaid Lightning invoice, with a rough dollar figure. Each row links to the listing with the probe and the source. Cheapest: $0.002; priciest: $0.05.
No API was paid. Prices drift; the data date is 2026-11-13.
FAQ
Can an AI agent query government data without an API key?
Yes. The 18 APIs on this page answer with an HTTP 402 payment challenge instead of asking for a key. The agent pays the challenge per call (x402 or MPP in stablecoins, L402 over Lightning) and retries the request.
How much does a government data call cost?
In the probes behind this page the median is $0.00576 per call, from $0.002 to $0.05. 12 of 18 cost 1 cent or less. Prices come from unpaid challenges and can change.
Which payment rails do these APIs use?
10 use x402, 8 use L402 and 0 use MPP, across 7 providers.
Are these official government APIs?
No. They are third-party paid wrappers around public sources. SatBotly checks that each endpoint answers a real 402 payment challenge and lists its price. It does not test accuracy or freshness, so check important answers against the official source.
Related
See health and drug data APIs, financial and stock market data APIs, security APIs for AI agents, onchain data APIs, web search and scraping APIs, and all pay-per-call APIs.