Skip to content

Code.gov

The primary platform for Open Source and code sharing for the U.S. Federal Government

Open documentation ↗
API keyHTTPSNo CORSGovernment

Verified 4 days ago: 100% uptime

API key

Required

HTTPS

Supported

Browser calls

No, needs a proxy

Status

Live · 100/100

What our checks found

Health score
100/100
Reliability
100%
Average latency
1500ms

Last checked 2026-09-18. Measured independently, not self-reported by the provider.

How to call it

A starting template for Code.gov. Replace ENDPOINT with the path from the official documentation, which we link above rather than guess at.

# Requires an API key. Check the docs for whether it goes in a header or a query parameter.
curl -s "https://code.gov/ENDPOINT" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

This API does not send CORS headers, so a browser will block a direct call from your front end. Call it from your server, or put a small proxy in front of it.

Where this listing comes from

Aggregated from 2 public sources (public-api-lists, public-apis), then normalised and checked by us. If something here is wrong, tell us and we will correct it.

Other Government APIs

See all 137

Bidledger

Government

Every open public tender in the European Union, rebuilt daily from the official TED data

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Brazil

Government

Community driven API for Brazil Public Data

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

EditalMD

Government

Brazilian public procurement (PNCP) notices as Markdown with deadlines and requirements

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Indian Mandi Prices

Government

Free, keyless daily wholesale mandi prices for 5 Indian states, sourced from data.gov.in

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Code.gov — common questions

Answered from what our own scheduled checks found, not from the provider's marketing.

Is Code.gov free to use?

Code.gov is listed in our free catalogue, but it requires an API key, so you will need to register before your first call. Providers frequently reserve higher limits and commercial use for paid plans.

Does Code.gov need an API key?

Yes. Code.gov authenticates with an API key. Keep it server-side rather than in browser code, because anything in your frontend bundle is readable by anyone who opens developer tools.

Can I call Code.gov from browser JavaScript?

Not directly. Code.gov did not return CORS headers when we checked, so the browser will block your page from reading the response even though the request itself succeeds. Call it from a server, or put a small proxy in front of it.

Is Code.gov still working?

Yes, as of 2026-09-18. Our automated check reached Code.gov and recorded a 100% reliability score with a median response time of 1500 ms. We re-check on a schedule, and this page updates with the result.

Is Code.gov available over HTTPS?

Yes. Code.gov serves over HTTPS, so you can call it from a secure page without triggering a mixed-content block.