endpoint_service with_status - BenjaminFourmaux/ServiceDown-api Wiki

Service/with_status

list of all services from a country with current status

Methods

Request

GET api.service-down.com/service/country/:country_id/with_status

Parameters

List of url parameters available on this endpoint

Name Description Type
page (optionnal) Index for pagination. By default 1 number

Response

Return an array of Service with Status wrapped into Paging

{
	"data": [
		{
			"service": {
				"id": 146
				"name": "Orange",
				"cname": "ORANGE",
				"description": "French Internet Provider",
				"path": "/status/orange-france",
				"twitterUsername": "orange",
				"countries": [
					74
				]
			},
			"country": {
				"id": 74,
				"name": "France",
				"shortname": "FR",
				"domainSuffix": "fr",
				"isAvailable": true
			},
			"status": {
				"id": 3,
				"label": "error"
			}
		},
		...
	],
	"paging": {
		"totalDataCount": 3,
		"dataPerPage": 6,
		"currentPage": 1,
		"hasPrev": false,
		"hasNext": false,
		"totalPage": 1
	}
}

Errors