Government APIs

Government data and services

27 APIs in this category · last checked 2 October 2026
27
APIs listed
21
need no API key (78%)
3
CORS enabled (11%)
27
HTTPS (100%)

This directory lists 27 government APIs. 2 of them require no API key and support CORS, so you can call them directly from browser JavaScript with no backend and no sign-up. Every entry shows whether it needs authentication, serves over HTTPS and allows cross-origin requests, so you can pick one that fits your stack before you read a single doc page.

Showing 27 of 27 APIs

Best Government APIs for Developers

A government API allows developers to access public records, legislative data, census statistics, and civic information published by national and local government agencies. These APIs power transparency tools, civic tech applications, and policy research platforms.

Government data splits into broad national catalogs and narrow single purpose registries. Data.gov and data.gouv.fr are the best keyless entry points for wide country coverage. BrasilAPI suits instant, keyless lookups of Brazilian postal codes and company records. USAspending.gov fits anyone tracking federal contracts and grants, and UK Companies House gives live company filings once you register a free key. NYC Open Data covers one of the largest city datasets anywhere, though its free tier throttles hard until you add an app token.

The main pitfall here is licensing and freshness: most portals publish under an open license needing attribution, and city datasets update on inconsistent schedules, so check the last updated field before building anything time sensitive.

What to check before you pick one

  • Data freshness: Legislative and regulatory data changes frequently; prefer APIs that update in real time or near real time.
  • Documentation quality: Government APIs vary widely in documentation quality; check for example requests and response schemas before committing.
  • Bulk download support: For large-scale analysis, APIs with bulk export endpoints or data dump options are more efficient than paginated REST calls.

Frequently Asked Questions

What are government APIs?

Government APIs provide programmatic access to public records, legislative data, census statistics, economic indicators, court records, and other civic information published by government agencies.

Are government APIs free to use?

Most government APIs are free and open as part of open government data initiatives. Agencies like the US Census Bureau, data.gov, and the UK Office for National Statistics publish APIs with no cost.

What can I build with a government data API?

You can build civic information portals, legislative tracking tools, census data visualizations, public spending dashboards, and open government transparency platforms using these APIs.