GovernmentPublic API
District of Columbia Open Data
Contains D.C. government public datasets, including crime, GIS, financial data, and so on
Before you call it
What this listing means in practice
No key to obtain
You can make a request immediately. Be considerate with volume anyway: open APIs often publish informal rate limits, and some will block clients that hammer them.
HTTPS supported
Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.
CORS not confirmed
If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.
Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.
http://opendata.dc.gov/pages/using-apisNo API calls are proxied by this directory. Links go directly to the provider.
API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.
Overview
About District of Columbia Open Data
District of Columbia Open Data needs no API key. That puts it among 92 of the 126 government APIs we list that you can try without signing up.
It supports HTTPS but CORS is not confirmed, so plan to call it from a server or serverless function. That is true for 88 of the 126 APIs in this category.
The documentation sits on a government domain (opendata.dc.gov), so this is an official source. Expect stable data but slower changes and older formats.
Government APIs in general
Government APIs publish official data: legislation, statistics, budgets, company registries and public services. Coverage depends heavily on the country.
What people build with them
- Civic tech and transparency projects
- Pulling official statistics into reports
- Checking public registries
Watch out for
Official APIs are reliable but slow to change. Expect older formats, and watch for planned migrations announced on the portal.
First request
Calling District of Columbia Open Data
Run this on a server or in a serverless function, because CORS is not confirmed.
JavaScript// Replace the path with an endpoint from the District of Columbia Open Data docs
const res = await fetch("http://opendata.dc.gov/pages/using-apis/<endpoint>");
if (!res.ok) throw new Error(`District of Columbia Open Data returned ${res.status}`);
const data = await res.json();Compare
District of Columbia Open Data vs similar APIs
| API | Auth | HTTPS | CORS |
|---|---|---|---|
| District of Columbia Open Data | No key | Yes | Unknown |
| India LGD Index | No key | Yes | Yes |
| EU VAT Rates by Commodity Code | No key | Yes | Yes |
| Election | No key | Yes | Yes |
| EditalMD | No key | Yes | Yes |
| ContaCLT | No key | Yes | Yes |
FAQ
Common questions about District of Columbia Open Data
Does District of Columbia Open Data need an API key?
No. District of Columbia Open Data is listed with no authentication, so you can send a request without registering.
Can I call District of Columbia Open Data from the browser?
CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.
Is District of Columbia Open Data free?
No key is required, which usually means free access, but providers can still limit volume. Check District of Columbia Open Data's docs for rate limits and fair-use terms.
What are some alternatives to District of Columbia Open Data?
Other government APIs in the directory include India LGD Index (no key), EU VAT Rates by Commodity Code (no key), Election (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.
Same category
More Government APIs
Next step
Keep looking until the constraints fit.
Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.