metro.istanbul APImetro.istanbul ↗
Access Istanbul Metro lines, stations, real-time service status, ticket prices, and network maps via 6 structured endpoints.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/c9026794-8ccd-456e-a6fb-d85c5e313a38/get_all_lines' \ -H 'X-API-Key: $PARSE_API_KEY'
Get all transit lines operated by Metro Istanbul. Returns line codes, display names, IDs, and color codes.
No input parameters required.
{
"type": "object",
"fields": {
"data": "array of line objects with METROISTHATID, HATADI, HATTANIM, EKTANIM, RENKR, RENKG, RENKB",
"status": "string, always 'success'"
},
"sample": {
"data": [
{
"RENKB": "88",
"RENKG": "115",
"RENKR": "124",
"HATADI": "F1",
"EKTANIM": "Taksim-Kabataş Füniküler Hattı",
"HATTANIM": "F1 ISLETME",
"METROISTHATID": 4
}
],
"status": "success"
}
}About the metro.istanbul API
The Metro Istanbul API exposes 6 endpoints covering every aspect of Istanbul's metro and tram network — from full line listings with RGB color codes via get_all_lines, to real-time service disruptions and faulty elevator counts via get_service_status. Response fields include station ordering, SAP codes, fare categories by card type, transfer connections, and direct links to network map images for all active and under-construction lines.
Lines and Stations
get_all_lines returns every transit line operated by Metro Istanbul, including the internal identifier (METROISTHATID), the line display name (HATADI, HATTANIM), supplementary annotation (EKTANIM), and the RGB color values (RENKR, RENKG, RENKB) used in official maps. get_all_stations complements this with a full station roster across all lines, including station_id, name, display_name, line_id, line_name, ordering position, and sap_code for each station.
Line Detail and Transfers
get_line_detail accepts a line_code parameter (e.g., M2, T1, F4, TF2) and returns the full station sequence for that line, key operating metrics under details, and a transfers array listing interchange connections. Valid line codes span metro (M1A–M9), tram (T1, T3–T5), funicular (F1, F4), and cable car (TF1, TF2) services.
Service Status and Fares
get_service_status returns the seferDurumlari array — each element describes an active service disruption; an empty array indicates normal operation. The same response includes string-typed counts of faulty elevators (arizaliAsansor) and escalators (arizaliYuruyenMerdiven), making it useful for accessibility monitoring. get_ticket_prices returns fare objects keyed by category, type, and price, reflecting the current tariff for each card class (full fare, student, senior, etc.).
Network Maps
get_network_map returns an array of map objects, each with a title and a url pointing to official network map images — covering metro, tramway, and construction-phase maps. No parameters are required for any of the listing or status endpoints.
- Build a transit app that renders line colors from RENKR/RENKG/RENKB values returned by get_all_lines
- Display live service disruption banners by polling get_service_status and checking the seferDurumlari array
- Show out-of-service elevator counts per station for accessibility-focused routing apps
- Populate a station autocomplete using display_name and line_name fields from get_all_stations
- Render transfer connection graphs by parsing the transfers array from get_line_detail
- Show current fares by card category from get_ticket_prices for trip cost estimation
- Embed official network map images from get_network_map into a route planning interface
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.