PASAR API

🇲🇾 Train schedules ~ KTMB (GTFS)

← directory
KTMB via data.gov.myTravel & mobilitytier: openauth: no authpricing: freefreq: STATIC FEED

Response is a GTFS ZIP feed with stops/routes/trips/times, not JSON. The sampled calendar covers September 2026; actual schedule accuracy needs provider confirmation.

More Travel & mobility APIs All Malaysia APIs

Call it

curl --fail-with-body --location --max-time 30 'https://api.data.gov.my/gtfs-static/ktmb' -o response.zip

AI prompt

I'm building an app using a public Malaysia API (no private credentials needed).

API: Train schedules ~ KTMB (GTFS)
Provider: KTMB via data.gov.my
Endpoint: GET https://api.data.gov.my/gtfs-static/ktmb
Response format: ZIP

Source: KTMB via data.gov.my (https://api.data.gov.my/gtfs-static/ktmb)
Source type: Official public feed
Endpoint type: Public feed, non-JSON
Integration difficulty: Copy-paste ready
Last checked: 2026-09-16
Production caveat: Still handle downtime, changing fields, empty responses, and rate limits before shipping user-facing alerts.

Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.

Related Travel & mobility APIs

Transit schedules ~ Rapid KL LRT/MRT/monorail/bus (Prasarana GTFS)Bus schedules ~ myBAS Johor Bahru (GTFS)LTA DataMall ~ Singapore real-time bus, train & traffic dataCarpark Availability (data.gov.sg) ~ live HDB carpark lotsTraffic Images (data.gov.sg) ~ live Singapore road camerasAviationstack Real-Time Flight DataFlightAware AeroAPIBooking.com Demand APIViator Partner APISkyscanner Travel API