ScreenlyyIDDocs
Docs › API reference › Device verification

User agent lookup

Looks up details for a user agent string.

POSThttps://api.screenlyyid.com/api/v1/ua-lookup-verify

Headers#

NameTypeRequiredDescription
x-api-keystringYesYour ScreenlyyID API key
x-correlation-idstring (uuid)NoCorrelation ID for this customer check

Request body#

FieldTypeRequiredDescription
UserAgentstringNo
UserAgentVersionstringNo
UserAgentFlatformstringNo
UserAgentFlatformVersionstringNo
UserAgentMobilestringNo
DeviceModelstringNo
DeviceBrandstringNo

Responses#

StatusDescription
200Successful response

Response body (200)#

FieldTypeRequiredDescription
DeviceModelstringNo
OsstringNo
DeviceBrandstringNo
BrowserReleasestringNo
OsFamilystringNo
DevicePixelRatiointeger (int64)Yes
DeviceHeightPxinteger (int64)Yes
UastringNo
TypestringNo
DevicePpiinteger (int64)Yes
DevicePriceinteger (int64)Yes
VersionstringNo
VersionMajorstringNo
OsVersionMajorstringNo
BrowserEnginestringNo
DeviceModelCodestringNo
OsVersionstringNo
DeviceReleasestringNo
NamestringNo
IsWebviewbooleanYes
DeviceResolutionstringNo
DeviceWidthPxinteger (int64)Yes
IsMobilebooleanYes

Code samples#

curl --request POST \
  --url 'https://api.screenlyyid.com/api/v1/ua-lookup-verify' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'x-correlation-id: YOUR_CORRELATION_ID' \
  --header 'Content-Type: application/json' \
  --data '{
  "UserAgent": "<UserAgent>",
  "UserAgentVersion": "<UserAgentVersion>",
  "UserAgentFlatform": "<UserAgentFlatform>",
  "UserAgentFlatformVersion": "<UserAgentFlatformVersion>",
  "UserAgentMobile": "<UserAgentMobile>",
  "DeviceModel": "<DeviceModel>",
  "DeviceBrand": "<DeviceBrand>"
}'