The SDK is currently in active development. For more details, see the U301 Postman docs.

Top Device Vendors

Top device vendors used by visitors.

Use this API to retrieve recent most used device vendors in a specified date range.

u301.analytics.getTopDeviceVendors
import { U301 } from 'u301';

const apiKey = '<YOUR_API_KEY>';
const workspaceId = '<YOUR_WORKSPACE_ID>';

const u301 = new U301({
  apiKey,
  workspaceId,
});

const clicks = await u301.analytics.getTopDeviceVendors({
    range: '1m',
    timezone: 'Europe/London'
})

the response schema

Request

NameLocationTypeRequiredDefaultDescription
AuthorizationHeaderstringBearer token used for authentication.
workspaceIdQuerystringWorkspace identifier for multi‑tenant routing.
rangeQuerystringDate range for data aggregation.
timezoneQuerystringUTCTimezone for data aggregation. See Timezone for details.

Response

Data is an array of objects, each object contains the device vendor label and click count. Device vendor examples: Apple, Samsung, Huawei, Xiaomi, Google, OnePlus, Sony.

NameTypeDescription
datetimeRangestring[]Date range for data aggregation. The format is an array of two strings, each string is a timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
rangestringDate range for data aggregation.
data[].labelstringLabel for data aggregation.
data[].clicknumberClick count for data aggregation.
{
    "datetimeRange": [
        "2025-11-01T00:00:00.000Z",
        "2025-11-30T23:59:59.999Z"
    ],
    "range": "1m",
    "data": [
        {
            "label": "Apple",
            "click": 76
        },
        {
            "label": "Samsung",
            "click": 58
        },
        {
            "label": "Xiaomi",
            "click": 23
        },
        {
            "label": "Huawei",
            "click": 12
        },
        {
            "label": "Google",
            "click": 9
        },
        {
            "label": "OnePlus",
            "click": 4
        },
        {
            "label": "Sony",
            "click": 2
        }
    ]
}

Last updated on

On this page