Skip to main content

Obtain valid values for fields: browsers, devices, tz, oses, languages

Description

The API method allows you to retrieve valid values for the following fields:

  • browser
  • device
  • tz
  • os
  • language

These fields are used in the following requests:

URL

Method: POST

Request URL: https://example.com/api/v1.1/dictionary

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
namestring"browsers"
"devices"
"tz"
"oses"
"languages"
YesSpecify the name of the system field to retrieve the corresponding list of valid values.

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"name": "devices"
}

Response example

{
"data": [
{
"title": "Desktop",
"value": "web"
},
{
"title": "Other",
"value": "other"
},
{
"title": "Mobile",
"value": "mob"
}
],
"error": 0,
"error_text": "Successful operation"
}