API
If you would like to check system status from your own applications, we provide a basic JSON API.
- GET /api.json
- Returns all methods in the API. Using the URLs returned from this API root, instead of hardcoding the current values, can prevent your client from breaking on URL changes.
-
{ "status_url": "https://status.github.com/api/status.json", "messages_url": "https://status.github.com/api/messages.json", "last_message_url": "https://status.github.com/api/last-message.json" } - GET /api/status.json
- Returns the current system status (one of
good,minor, ormajor) and timestamp. -
{ "status": "good", "last_updated": "2012-12-07T18:11:55Z" } - GET /api/last-message.json
- Returns the last human communication, status, and timestamp.
-
{ "status": "good", "body": "Battlestation fully operational", "created_on": "2012-12-07T18:11:55Z" } - GET /api/messages.json
- Returns the most recent human communications with status and timestamp.
-
[ { "status": "good", "body": "Battlestation fully operational", "created_on": "2012-12-07T18:11:55Z" }, { "status": "minor", "body": "Almost done reticulating splines", "created_on": "2012-12-05T12:08:33Z" } ] - JSONP support
- All API methods support JSONP, making it easy to consume the API in browser applications.
-
<script> function apiStatus(data) { console.log(data.status); } </script> <script src="https://status.github.com/api/status.json?callback=apiStatus"></script>


