Service status
The status
endpoint gives you up-to-the-minute information on all disruptions affecting Lothian Buses and Edinburgh Trams services.
Update frequency
Once a minute
Resource
GET /v1/status
Authorisation
API Authentication Token
Response
Status-Code: 200 OK
{
"last_updated": 1419854725,
"disruptions": [
{
"id": 273,
"type": "planned",
"category": "closure",
"summary": "Market Street closed to buses from Friday 26 December for 7 days.",
"updated": 1419009211,
"services_affected": [
"6",
"41",
"42",
"67"
],
"web_link": "http://www.lothianbuses.com/service-updates/details/market-street-from-friday-26-december"
}
...
]
}
Name | Type | Description |
---|---|---|
last_updated | int | The time since this endpoint was last updated |
id | int | An identifier unique to each disruption |
type | string | The type of disruption - either 'planned' or 'incident' |
category | string | Can be 'closure' |
summary | string | A brief summary of the disruption |
updated | int | The last time this disruption was added or edited |
services_affected | Array(string) | A list of services affected by this disruption (Edinburgh Trams is shown as 'T50') |
web_link | string | A link to the Lothian Buses or Edinburgh Trams page with a more detailed description of the diversion |
Updated less than a minute ago