Open Government, Germany API

Free to Use
74 B
Measured Score 0 50 100 Speed 15/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

The Open Government Germany API (GovData) gives you free access to thousands of German government datasets including statistics, geographic data, and public records. No API key is needed — you can start querying right away using standard HTTP requests. It is a great starting point for exploring European open data and building civic or research applications.

Beginner Tip

Use the CKAN-compatible API endpoint at https://www.govdata.de/ckan/api/3/action/package_search to search datasets by keyword — for example, append ?q=umwelt to find environmental datasets. The response is standard JSON, so any HTTP library will work.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://www.govdata.de/ckan/api/3/action/package_search?q=bevoelkerung&rows=5
Result
HTTP 200 · application/json · 33,896 bytes
Response time
265 ms (median of 3) · fastest 259 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by DigiCert Inc
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
gunicorn
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
count integer 599
facets object {0 fields}
results array [1 item]
sort string score desc, metadata_modified desc
search_facets object {0 fields}

Captured Response

Captured from a real request to https://www.govdata.de/ckan/api/3/action/package_search?q=bevoelkerung&rows=5 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "help": "https://ckan.govdata.de/api/3/action/help_show?name=package_search",
  "success": true,
  "result": {
    "count": 599,
    "facets": {},
    "results": [
      {
        "…": "(29 more fields)"
      }
    ],
    "sort": "score desc, metadata_modified desc",
    "search_facets": {}
  }
}

Field Reference

success Indicates whether the API call succeeded

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.govdata.de/daten/-/details/govdata-metadatenkatalog";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Empty results array Search query uses German umlauts that are not URL-encoded
URL-encode special characters (e.g., ü → %C3%BC) or use ASCII-equivalent search terms
404 Not Found on dataset URL Dataset has been removed or its identifier has changed
Search via package_search first and use the returned id field to construct the correct resource URL
Response is HTML instead of JSON Requesting the portal homepage URL instead of the CKAN API endpoint
Use https://www.govdata.de/ckan/api/3/action/ as the base URL for all API calls

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 15/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 265ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →