---
title: Extract User Agent API
slug: parse-user-agent-string
url: https://apyhub.com/apyhub/service/parse-user-agent-string
provider: ApyHub
categories: [Developer Tools, "Security & Privacy"]
auth: api_key
---

# Extract User Agent API

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

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract/user-agent` | What it does Parses a raw HTTP User-Agent string from the request body and returns a structured bre… | 20 |

## About

## What it does
User Agent Parser turns a raw HTTP `user_agent` string into structured browser, platform, device, and engine data. Send the header value you receive from a request, and get back the parsed client details you can use in analytics, support, or bot filtering.

The request body accepts one field: `user_agent`. The response wraps everything under `data`, with required `browser`, `platform`, `device`, and `engine` objects. Browser data includes the browser name, type, version, major and minor version, and an `is_bot` flag. Platform data includes the OS name, short code, version, and icon. Device data includes the device name, type, brand, code name, and icon. Engine data includes the rendering engine name and version.

Use User Agent Parser when you need to segment traffic by browser or operating system, detect desktop versus mobile clients, or flag automated requests. It is a direct fit for request logging pipelines, fraud checks, and product analytics that need a normalized view of the client behind each HTTP request.

## Usage

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