---
title: Extract User Agent API
slug: parse-user-agent
url: https://apyverse.com/apyhub/service/parse-user-agent
provider: ApyHub
categories: [Developer Tools]
tags: [user-agent, browser-detection, device-detection, bot-detection, request-parsing]
auth: api_key
---

# Extract User Agent API

Parse a raw User-Agent string into browser, platform, device, and engine data. Useful for analytics, bot checks, and request logging.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyverse.com/extract/user-agent` | What it does Parses a raw HTTP User-Agent string and returns structured information about the detec… | 20 |

## Examples

### Parse User-Agent string

#### Quickstart

Parse a raw User-Agent string into browser, platform, device, and engine details.

```bash
curl -X POST "https://api.eu.apyverse.com/extract/user-agent" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}'
```

#### What you'll get back

Returns a JSON object with a `data` object field. `data` contains the parsed `browser`, `platform`, `device`, and `engine` objects.

```json
{
  "data": {
    "browser": {},
    "platform": {},
    "device": {},
    "engine": {}
  }
}
```

## About

## What it does

User Agent Parser turns a raw HTTP `User-Agent` header into structured browser, platform, device, and engine data. Send a single `user_agent` string in the request body, and get parsed metadata back in `data`.

Use it when you need to identify the client behind a request without maintaining your own user-agent parsing logic. The response includes browser details such as name, version, major and minor version, whether it looks like a bot, plus platform fields like name, short code, and version.

You also get device and engine information. Device data can include the device name, type, brand, code name, and an icon URL. Engine data includes the engine name and version. That makes this useful for analytics pipelines, bot detection, device-level reporting, and request logging where you want consistent client classification.

User Agent Parser is a simple way to normalize browser and device metadata from messy header strings into a predictable JSON response.

## Usage

Base URL: `https://api.eu.apyverse.com` (default region — see
`GET https://apyverse.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/parse-user-agent
