Daily KTMB Ridership

Data as of 30 Mar 2025, 23:59

Daily-frequency ridership data for the 5 main KTMB services, namely Komuter, Komuter Utara, Intercity, ETS and Shuttle Tebrau. The table and charts provide a preview of the data using the most recent 1 year of data, but you may download the data in full.

0 viewsΒ·0 downloads

Table

Ridership

How is this data produced?

This dataset is derived from anonymous transactional data generated by the KTMB Integrated Ticketing System (KITS). The aggregated daily 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.

What caveats I should bear in mind when using this data?

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.

Publication(s) using this data

Our site features a dashboard on KTMB ridership where you can explore this data in a more interactive manner.

Metadata

Dataset description

Daily-frequency ridership data for the 5 main KTMB services, namely Komuter, Komuter Utara, Intercity, ETS and Shuttle Tebrau. The table and charts provide a preview of the data using the most recent 1 year of data, but you may download the data in full.

Variable definitions
  • Date
  • Service
  • Ridership
Last updated:

31 Mar 2025, 03:31

Next update:

01 Apr 2025, 03:45

Data source(s)
  • Malayan Railways Limited
  • Ministry of Transport
License

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.

Download

Data
Full Dataset (CSV)

Full Dataset (CSV)

Recommended for individuals seeking an Excel-friendly format.

0

Full Dataset (Parquet)

Full Dataset (Parquet)

Recommended for data scientists seeking to work with data via code.

0

Code

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_daily.parquet' df = pd.read_parquet(URL_DATA) if 'date' in df.columns: df['date'] = pd.to_datetime(df['date']) print(df)

Sample OpenAPI query

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_daily&limit=3" response_json = requests.get(url=url).json() pprint.pprint(response_json)