Code.gov
The primary platform for Open Source and code sharing for the U.S. Federal Government
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Government
- Documentation / URL
- https://code.gov
Overview
Code.gov was the US federal open-source code sharing platform — key-based API.
⚠️ Status (verified 2026-08):
api.code.govnow 301-redirects to a digital.gov policy page — the Code.gov API has been retired (the program was folded into general federal open-source policy). Do not build new projects on it.
What it used to provide
curl "https://api.code.gov/repos?api_key=YOUR_KEY"
Alternatives
- GitHub API (listed on this site) — code search (verified).
FAQ
Is Code.gov working? Our 2026-08 test got a 301 to digital.gov (verified) — the API was retired.
Was it free? Yes — free with an api.data.gov key.
What replaced it? GitHub API (listed, verified).
More in Government
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| AI Law Tracker AI regulation laws by jurisdiction (US, EU, global) as read-only JSON; free tier | API Key | Yes | Unknown | ↗ |
| Bank Negara Malaysia Open Data Malaysia Central Bank Open Data | No auth | Yes | Unknown | ↗ |
| BCLaws Access to the laws of British Columbia | No auth | No | Unknown | ↗ |
| Brazil Community driven API for Brazil Public Data | No auth | Yes | Yes | ↗ |
| Brazil Central Bank Open Data Brazil Central Bank Open Data | No auth | Yes | Unknown | ↗ |