SMSMyBus exposes its data via a programming interface. This page describes that interface.

getroutes

this enpoint is deprecated

Overview

The getroutes method will return all routes in the Metro system. This data will rarely change.

URL

https://api.smsmybus.com/v1/getroutes

Fields

Name Value Description
key String (required) API access key

Examples

https://www.smsmybus.com/v1/getroutes?key=xxx

Response

{ "status" : "0", "timestamp" : "12:38pm", "routes" : [ { "routeID" : "02", "directions" : [ "NTP", "WTP" ] }, { "routeID" : "03", "directions" : [ "ETP", "WTP" ] }, ... ... ], }

Error

An error is indicated by a non-zero status value. If the status value is non-zero, the description field will be present describing the error in plain English.

{ "status" : "-1", "description" : "Invalid request parameters", }