City, Berlin API

Free to Use Varies (check documentation)

Overview

The City of Berlin Open Data portal provides free access to a wide variety of datasets published by Berlin s government and public services. You can find data on transportation, demographics, environment, public facilities, and more in formats like JSON, CSV, and GeoJSON. No API key is required for most datasets.

💡

Beginner Tip

Use the CKAN API at daten.berlin.de/api/3/action/package_list to get a full list of available dataset names, then fetch a specific dataset using package_show?id=DATASET_NAME.

Available Data

Use case: Integrate berlin(de) city open data data into web and mobile applications
City, Berlin data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from City, Berlin",
    "description": "Berlin(DE) City Open Data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

success Indicates whether the CKAN API request was processed successfully
result.results Array of dataset metadata objects matching the search query
result.count Total number of datasets matching the search query across all pages
name Unique slug identifier for the dataset used in direct API calls
title Human-readable title of the dataset
resources List of downloadable files for this dataset, each with a URL and format field

Implementation Example

const url = "https://daten.berlin.de/";
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.

Common Errors & Troubleshooting

Dataset not in JSON format Many Berlin datasets are published as CSV or shapefile, not JSON
Check the resource format field in the package metadata before attempting to parse the download as JSON
Empty results from package_search The search query uses German keywords which may not match English terms
Use German language keywords in your search query, for example Verkehr for traffic or Bevoelkerung for population
Resource URL returns 404 Dataset file URLs in the catalog may become outdated as files are updated
Always fetch the package metadata first to get the latest resource URL rather than hardcoding file links

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 1144ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →