endpoint_status service - BenjaminFourmaux/ServiceDown-api GitHub Wiki

Status/service

Get current status of a service from a country

Methods

Request

GET api.service-down.net/status/service/:service_id/country/:country_id

Response

Return current Status and Stats 24h with the service Orange

{
	"currentStatus": {
		"id": 1,
		"label": "ok"
	},
	"stats24h": {
		"id": 22,
		"service": 146,
		"country": 74,
		"intervals": [
			1,
			4,
			3,
			4,
			7,
			20,
			14,
			8,
			1,
			0,
			0,
			0,
			2,
			4,
			4,
			9,
			12,
			10,
			6,
			2,
			0,
			1,
			5,
			0,
		],
		"totalReport": 123
	}
}

Errors