# Get browser user agent

Generate a user agent that matches the requested operating system and browser vendor, using only
published kernels.

Endpoint: POST /env/advanced/ua/get
Version: 1.0.0
Security: OpenApiBearer

## Request fields (application/json):

  - `os` (integer, required)
    Operating system:
- `1` — Windows
- `2` — macOS
- `3` — Android
- `4` — iOS
- `5` — Linux
    Enum: 1, 2, 3, 4, 5

  - `osVersion` (string)
    Operating system version. Defaults to an empty string.
    Enum: "", "Windows 7", "Windows 8", "Windows 10", "Windows 11", "macOS 12", "macOS 13", "macOS 14"

  - `vendor` (integer, required)
    Browser type:
- `1` — Chrome
- `2` — Firefox
    Enum: 1, 2

  - `mobileDevice` (string)
    Mobile device model ID. Used for Android and iOS profiles.
    Example: pixel_8

  - `systemBitType` (integer)
    System bitness. Defaults to `1`:
- `0` — 32-bit
- `1` — 64-bit
    Enum: 0, 1

  - `architecture` (integer)
    CPU architecture. Defaults to `0`:
- `0` — x86
- `1` — ARM
    Enum: 0, 1

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code. `0` means success; other codes indicate exceptions.
    Example: 0

  - `msg` (string | null, required)
    Error message. Usually `null` on success.
    Example: null

  - `requestId` (string)
    Operation request ID. This field may be present when the request passes through the API gateway.
    Example: 1d4f3ea968664593860b94b35d4ebf5e

  - `data` (object, required)

  - `data.ua` (string)
    Matched user agent.
    Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

  - `data.resolution` (object)

  - `data.resolution.id` (string)
    Resolution ID.
    Example: 1920_1080

  - `data.resolution.value` (string)
    Display value.
    Example: 1920x1080

  - `data.mobileDevice` (string | null)
    Mobile device model ID. Empty for desktop profiles.
    Example: null

