Istanbul (İBB) Open Data API

Free to Use Varies (check documentation)

Overview

The Istanbul (IBB) Open Data API provides access to datasets from the Istanbul Metropolitan Municipality, covering transportation, demographics, environment, and urban services across Turkey's largest city. No API key is needed to get started. It is a great resource for urban planning projects, smart city research, or applications serving Istanbul residents.

💡

Beginner Tip

The portal at data.ibb.gov.tr lists available datasets with their API endpoints. Each dataset page shows the direct API URL you can query with standard REST calls, usually returning JSON or CSV.

Available Data

Response fields: ibb gov tr
Istanbul (İBB) Open Data data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

StationName Name of the metro or transport station in Turkish
StationCode Unique code identifier for the station used in the transit system
Lat Latitude coordinate of the station location
Lng Longitude coordinate of the station location
LineCode Code of the metro or transit line the station belongs to

Implementation Example

const url = "https://data.ibb.gov.tr/";
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

Response content is in Turkish The API is primarily designed for Turkish-language content
The data fields and values may be in Turkish; plan for translation or use dataset IDs rather than names for processing
404 Not Found Dataset endpoint URLs change as the portal is updated
Always get the current endpoint URL from the dataset detail page at data.ibb.gov.tr rather than hardcoding old URLs
No CORS headers on response Some IBB API endpoints do not support cross-origin browser requests
Use a server-side proxy or backend service to fetch the data and serve it to your frontend

Matrix Score Breakdown

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

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 →