๐ŸŽ‰ Limited time โ€” 20% off all plans. View pricing โ†’
Docs ยท Parsing

Parse User-Agent

Decode a User-Agent string into browser, OS, device, and a single device-kind label.

POST /v1/parse/useragent

Parses any HTTP User-Agent header string and returns the browser family/version, OS family/version, device family/brand/model, plus a single kind label (mobile, tablet, pc, bot, unknown) and helper booleans. Backed by the ua-parser project's regex catalogue. No network call.

Parameters

Name Type Required Default Description
user_agent string yes โ€” The raw User-Agent header value.

Request

curl -X POST https://api.qcrawl.com/v1/parse/useragent \
  -H "Authorization: Bearer osk_..." \
  -d '{"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1"}'

Response

{
  "status": "success",
  "user_agent": "Mozilla/5.0 (iPhone; ...)",
  "browser": {"family": "Mobile Safari", "version": "17.4"},
  "os": {"family": "iOS", "version": "17.4"},
  "device": {"family": "iPhone", "brand": "Apple", "model": "iPhone"},
  "kind": "mobile",
  "is_bot": false,
  "is_mobile": true,
  "is_tablet": false,
  "is_pc": false,
  "is_touch_capable": true
}

Related