{"_id":"549a60225b50c21400fae6b8","project":"54995cb59da9390b00cffac6","user":"54995c979da9390b00cffac5","__v":7,"version":{"_id":"54995cb59da9390b00cffac9","__v":3,"project":"54995cb59da9390b00cffac6","createdAt":"2014-12-23T12:14:45.422Z","releaseDate":"2014-12-23T12:14:45.422Z","categories":["54995cb59da9390b00cffaca","54995e289da9390b00cffad0","5499610f0195cc0b00dc32e2"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5499610f0195cc0b00dc32e2","pages":["549961290195cc0b00dc32e3","549961320195cc0b00dc32e5","5499613c0195cc0b00dc32e7","549961499da9390b00cffad7","549961549da9390b00cffad9","5499615f9da9390b00cffadb","5499646c0195cc0b00dc32fb","549a60225b50c21400fae6b8","54cbbea561698d0d00baf85d"],"project":"54995cb59da9390b00cffac6","version":"54995cb59da9390b00cffac9","__v":9,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-23T12:33:19.815Z","from_sync":false,"order":9999,"slug":"api-reference","title":"API Reference"},"githubsync":"","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-12-24T06:41:38.120Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"The `status` endpoint gives you up-to-the-minute information on all disruptions affecting Lothian Buses and Edinburgh Trams services.\n\n## Update frequency\n\nOnce a minute\n\n## Resource\n\n    GET /v1/status\n\n## Authorisation\n\nAPI Authentication Token\n\n## Response\n\n    Status-Code: 200 OK\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"last_updated\\\": 1419854725,\\n    \\\"disruptions\\\": [\\n        {\\n            \\\"id\\\": 273,\\n            \\\"type\\\": \\\"planned\\\",\\n            \\\"category\\\": \\\"closure\\\",\\n            \\\"summary\\\": \\\"Market Street closed to buses from Friday 26 December for 7 days.\\\",\\n            \\\"updated\\\": 1419009211,\\n            \\\"services_affected\\\": [\\n                \\\"6\\\",\\n                \\\"41\\\",\\n                \\\"42\\\",\\n                \\\"67\\\"\\n            ],\\n            \\\"web_link\\\": \\\"http://www.lothianbuses.com/service-updates/details/market-street-from-friday-26-december\\\"\\n        }\\n        ...\\n    ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`last_updated`\",\n    \"0-1\": \"int\",\n    \"0-2\": \"The time since this endpoint was last updated\",\n    \"1-0\": \"`id`\",\n    \"1-1\": \"int\",\n    \"1-2\": \"An identifier unique to each disruption\",\n    \"2-0\": \"`type`\",\n    \"2-1\": \"string\",\n    \"2-2\": \"The type of disruption - either 'planned' or 'incident'\",\n    \"3-0\": \"`category`\",\n    \"3-1\": \"string\",\n    \"3-2\": \"Can be 'closure'\",\n    \"4-0\": \"`summary`\",\n    \"4-1\": \"string\",\n    \"4-2\": \"A brief summary of the disruption\",\n    \"5-0\": \"`updated`\",\n    \"5-1\": \"int\",\n    \"5-2\": \"The last time this disruption was added or edited\",\n    \"6-0\": \"`services_affected`\",\n    \"6-1\": \"Array(string)\",\n    \"6-2\": \"A list of services affected by this disruption (Edinburgh Trams is shown as 'T50')\",\n    \"7-0\": \"`web_link`\",\n    \"7-1\": \"string\",\n    \"7-2\": \"A link to the Lothian Buses or Edinburgh Trams page with a more detailed description of the diversion\"\n  },\n  \"cols\": 3,\n  \"rows\": 8\n}\n[/block]","excerpt":"","slug":"service-status","type":"basic","title":"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 [block:code] { "codes": [ { "code": "{\n \"last_updated\": 1419854725,\n \"disruptions\": [\n {\n \"id\": 273,\n \"type\": \"planned\",\n \"category\": \"closure\",\n \"summary\": \"Market Street closed to buses from Friday 26 December for 7 days.\",\n \"updated\": 1419009211,\n \"services_affected\": [\n \"6\",\n \"41\",\n \"42\",\n \"67\"\n ],\n \"web_link\": \"http://www.lothianbuses.com/service-updates/details/market-street-from-friday-26-december\"\n }\n ...\n ]\n}", "language": "json" } ] } [/block] [block:parameters] { "data": { "h-0": "Name", "h-1": "Type", "h-2": "Description", "0-0": "`last_updated`", "0-1": "int", "0-2": "The time since this endpoint was last updated", "1-0": "`id`", "1-1": "int", "1-2": "An identifier unique to each disruption", "2-0": "`type`", "2-1": "string", "2-2": "The type of disruption - either 'planned' or 'incident'", "3-0": "`category`", "3-1": "string", "3-2": "Can be 'closure'", "4-0": "`summary`", "4-1": "string", "4-2": "A brief summary of the disruption", "5-0": "`updated`", "5-1": "int", "5-2": "The last time this disruption was added or edited", "6-0": "`services_affected`", "6-1": "Array(string)", "6-2": "A list of services affected by this disruption (Edinburgh Trams is shown as 'T50')", "7-0": "`web_link`", "7-1": "string", "7-2": "A link to the Lothian Buses or Edinburgh Trams page with a more detailed description of the diversion" }, "cols": 3, "rows": 8 } [/block]