πŸ–¨οΈEndpoints

The following are all of the publicly accessible endpoints for the API.

Nomenclature

Route

Gets all the platforms available along a specific direction on a specific line.

e.g. The platforms of all stations heading towards Pasir Ris on the East-West line

Example Route URL

https://api.mrtinfo.sg/v1/doors/route?line=NE&direction=NE-6&showFacilities=false

[  
  {
    "line": "NE",
    "order": 1,
    "name": "Harbourfront",
    "direction": "NE-6",
    "allCodes": [
      "NE1",
      "CC29"
    ],
    "crossPlatform": [],
    "isInterchange": true,
    "publicTransfer": false,
    "busInterchange": true,
    "airportTerminal": false,
    "cruiseCentre": true,
    "facilities": [...]
  },
  {
    "line": "NE",
    "order": 1,
    "name": "TBC",
    "direction": "NE-6",
    "allCodes": [
      "NE2"
    ],
    "crossPlatform": [],
    "isInterchange": false,
    "publicTransfer": false,
    "busInterchange": false,
    "airportTerminal": false,
    "cruiseCentre": false,
    "facilities": []
  },
  {
    "line": "NE",
    "order": 2,
    "name": "Outram Park",
    "direction": "NE-6",
    "allCodes": [
      "NE3",
      "EW16",
      "TE17"
    ],
    "crossPlatform": [],
    "isInterchange": true,
    "publicTransfer": false,
    "busInterchange": false,
    "airportTerminal": false,
    "cruiseCentre": false,
    "facilities": [...]
  },
...]

Platform

Gets the platform object of a specific station.

Either code or name is required as one of the query parameters.

Example URLs

https://api.mrtinfo.sg/v1/doors/platform?line=EW&direction=EW-1&code=EW24&showFacilities=true

https://api.mrtinfo.sg/v1/doors/platform?line=EW&direction=EW-1&name=jurong+e

when showFacilities=true

{
  "line": "EW",
  "order": 24,
  "name": "Jurong East",
  "direction": "EW-1",
  "allCodes": [
    "EW24",
    "NS1",
    "JE5"
  ],
  "crossPlatform": [
    "NS-5"
  ],
  "isInterchange": true,
  "publicTransfer": false,
  "busInterchange": true,
  "airportTerminal": false,
  "cruiseCentre": false,
  "facilities": [
    {
      "type": "lift",
      "towards": "exit",
      "doors": [
        13
      ]
    },
    {
      "type": "escalator",
      "towards": "exit",
      "doors": [
        8,
        18
      ]
    },
    {
      "type": "stairs",
      "towards": "exit",
      "doors": [
        8,
        18
      ]
    }
  ]
}

Platform Facilities

Gets all the facilities that are located on a specific platform.

Either code or name is required as one of the query parameters.

Example URLs

https://api.mrtinfo.sg/v1/doors/platformfacilities?line=EW&direction=EW-1&code=EW24&showFacilities=true

https://api.mrtinfo.sg/v1/doors/platformfacilities?line=EW&direction=EW-1&name=jurong+e

[
  {
    "type": "lift",
    "towards": "exit",
    "doors": [
      13
    ]
  },
  {
    "type": "escalator",
    "towards": "exit",
    "doors": [
      8,
      18
    ]
  },
  {
    "type": "stairs",
    "towards": "exit",
    "doors": [
      8,
      18
    ]
  }
]

Route, Platform, and Platform Facilities APIs

Route listing

Gets all the platforms available along a specific direction on a specific line.

GET https://api.mrtinfo.sg/v1/doors/route

Path Parameters

Name
Type
Description

line*

String

The line code for the route.

showFacilities

Boolean

Whether to include facilities that the platform connects to. If not specified or if the value is invalid, facilities will be shown.

direction*

String

The direction code for the route.

Platform listing

Gets the platform object of a specific station.

GET https://api.mrtinfo.sg/v1/doors/platform

Either code or name is required as one of the query parameters.

Path Parameters

Name
Type
Description

showFacilities

Boolean

Whether to include facilities that the platform connects to. If not specified or if the value is invalid, facilities will be shown.

name

String

The name of the station (Any case, complete match not required)

code

String

The station code for the route. The station code does not have to be the same as the line as specified above.

direction*

String

The direction code for the route.

line*

String

The line code for the route.

Platform Facilities listing

Gets all the facilities that are located on a specific platform.

GET https://api.mrtinfo.sg/v1/doors/platformfacilities

Either code or name is required as one of the query parameters.

Path Parameters

Name
Type
Description

showFacilities

Boolean

Whether to include facilities that the platform connects to. If not specified or if the value is invalid, facilities will be shown.

name

String

The name of the station (Any case, complete match not required)

code

String

The station code for the route. The station code does not have to be the same as the line as specified above.

direction*

String

The direction code for the route.

line*

String

The line code for the route.

Last updated

Was this helpful?