Detector

Last updated 5 months ago

get
Detect Device

https://apis.marsble.com
/detector/v1/detector?api_key=:API_KEY
This endpoint allows you to detect device.
Request
Response
Query Parameters
API_KEY
required
string
Marsble API requires api key to get connect.
200: OK
If data successfully retrieved.
{
"IP": "127.0.0.1",
"country": {
"ID": "US",
"image": "https:\/\/static.marsble.com\/images\/flags\/a1.png"
},
"userAgent": "Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/68.0.3440.106 Safari\/537.36",
"client": {
"type": "browser",
"name": "Chrome",
"short_name": "CH",
"version": "68.0",
"engine": "Blink",
"engine_version": ""
},
"OS": {
"name": "Windows",
"short_name": "WIN",
"version": "7",
"platform": ""
},
"device": 0,
"brand": "",
"model": "",
"errors": null
}
400: Bad Request
If there was a problem with the request.
{
"errors": {
"code": 400,
"status": "400 Bad Request",
"message": "There was a problem with the request."
}
}

‚Äč