Welcome to MRT API 🚄

This is an API to get live train arrival timings as JSON. This is built for Singapore SMRT train stations.

Why use MRT API?

You can use MRT API to:

  • Integrate live timings into your app or website
  • Gather data from train arrivals and run data analysis
  • Hack something together and have fun!

Request

POST
  https://api.mrtapi.com/2.0/arrivals?stnCode=< station code >
  headers: x-api-key: < your api key >
                        

Response

{
  "Arrivals": {
    "SOM": {
      "platform1": {
        "direction": "NSL in the direction of Jurong East",
        "nextTrain": "2 min(s)",
        "nextTrainFinalDtn": "Jurong East",
        "subTrain": "4 min(s)",
        "subTrainFinalDtn": "Jurong East"
      },
      "platform2": {
        "direction": "NSL in the direction of Marina South Pier",
        "nextTrain": "1 min(s)",
        "nextTrainFinalDtn": "Marina South Pier",
        "subTrain": "9 min(s)",
        "subTrainFinalDtn": "Marina South Pier"
      }
    }
  }
}
                        

API Key

Each API key is limited to 50,000 requests per month. Each key costs $10 SGD per month.

Train Station Code

ADM Admiralty (NS10)
ALJ Aljunied (EW9)
AMK Ang Mo Kio (NS16)
CBLY  Bartley (CC12)
CBFT  Bay Front (CC2)
BDK Bedok (EW5)
CBSH  Bishan (CC15/NS17)
BNL Boon Lay (EW27)
CBTN  Botanic Gardens (CC19)
BDL Braddell (NS18)
CBBS  Bras Basah (CC2)
BGS Bugis (EW12)
BBT Bukit Batok (NS2)
BGB Bukit Gombak (NS3)
CBNV  Buona Vista (CC22)
CCDT  Caldecott (CC17)
CGA Changi Airport (CG2)
CNG Chinese Garden (EW25)
CCK Choa Chu Kang (NS4)
CTH City Hall (EW13/NS25)
CLE Clementi (EW23)
COM Commonwealth (EW20)
CDKT  Dakota (CC8)
CDBG  Dhoby Ghaut (CC1/NS24)
DVR Dover (EW22)
CEPN  Esplanade (CC3)
EUN Eunos (EW7)
XPO Expo (CG1)
CFRR  Farrer Road (CC20)
CHBF  HarbourFront (CC29)
CHPV  Haw Par Villa (CC25)
CHLV  Holland Village (CC21)
JKN Joo Koon (EW29)
JUR Jurong East (EW24/NS1)
KAL Kallang (EW10)
KEM Kembangan (EW6)
CKRG  Kent Ridge (CC24)
KTB Khatib (NS14)
KRJ Kranji (NS6)
CLBD  Labrador Park (CC27)
LKS Lakeside (EW26)
LVR Lavendar (EW11)
CLRC  Lorong Chuan (CC14)
CMPS  MacPherson (CC10)
CMRB  Marina Bay (NS27/CE1)
MSP Marina South Pier (NS28)
MSL Marsiling (NS7)
CMRM  Marymount (CC16)
CMBT  Mountbatten (CC7)
NEW Newton (NS21)
CNCH  Nicoll Highway (CC5)
NOV Novena (NS20)
CONH  One-North (CC23)
ORC Orchard (NS22)
OTP Outram Park (EW16)
CPPJ  Pasir Panjang (CC26)
PSR Pasir Ris (EW1)
CPYL  Paya Lebar (CC9/EW8)
PNR Pioneer (EW28)
CPMN  Promenade (CC4)
QUE Queenstown (EW19)
RFP Raffles Place (EW14/NS26)
RDH Redhill (EW18)
SBW Sembawang (NS11)
CSER  Serangoon (CC13)
SIM Simei (EW3)
SOM Somerset (NS23)
CSDM  Stadium (CC6)
CTSG  Tai Seng (CC11)
TAM Tampines (EW2)
TNM Tanah Merah (EW4)
TPG Tanjong Pagar (EW15)
CTLB  Telok Blangah (CC28)
TIB Tiong Bahru (EW17)
TAP Toa Payoh (NS19)
WDL Woodlands (NS8)
YWT Yew Tee (NS5)
YCK Yio Chu Kang (NS15)
YIS Yishun (NS13)