Monthly-frequency ridership data for the 5 main KTMB services, namely Komuter, Komuter Utara, Intercity, ETS and Shuttle Tebrau.
0 viewsΒ·0 downloads
This dataset is derived from anonymous transactional data generated by the KTMB Integrated Ticketing System (KITS). The aggregated monthly totals are calculated by summing passenger counts across all origin-destination pairs for each service type (ETS, Intercity, Komuter, Komuter Utara, and Shuttle Tebrau), thus providing a snapshot of ridership across all KTMB services. As such, it is 100% consistent with the granular origin-destination data published on our site.
It should be noted that the starting date is different across the different services, due to the phased roll-out of KITS, from which the data is derived.
Our site features a dashboard on KTMB ridership where you can explore this data in a more interactive manner.
Monthly-frequency ridership data for the 5 main KTMB services, namely Komuter, Komuter Utara, Intercity, ETS and Shuttle Tebrau.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | Date in YYYY-MM-DD format, with DD set to 01 as the data is at monthly frequency |
service (String) | Service | One of 5 services (Komuter, Komuter Utara, Intercity, ETS, Shuttle Tebrau) in lower snake case |
ridership (Integer) | Ridership | Number of trips taken using the service; it should be noted that this may not equal the number of passengers, as a single passenger may take multiple trips within the same month |
01 Mar 2025, 03:30
01 Apr 2025, 03:30
This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.
Full Dataset (CSV)
Recommended for individuals seeking an Excel-friendly format.
0
Full Dataset (Parquet)
Recommended for data scientists seeking to work with data via code.
0
Connect directly to the data with Python.
# If not already installed, do: pip install pandas fastparquet
import pandas as pd
URL_DATA = 'https://storage.data.gov.my/transportation/ktmb/ridership_ktmb_monthly.parquet'
df = pd.read_parquet(URL_DATA)
if 'date' in df.columns: df['date'] = pd.to_datetime(df['date'])
print(df)
The following code is an example of how to make an API query to retrieve the data catalogue mentioned above. You can use different programming languages by switching the code accordingly. For a complete guide on possible query parameters and syntax, please refer to the official Open API Documentation.
import requests
import pprint
url = "https://api.data.gov.my/data-catalogue?id=ridership_ktmb_monthly&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Β© 2025 Public Sector Open Data