API Almanac
API reference › Useragent

Parse a browser User-Agent string into browser, engine, OS and device

GET/v1/useragent

GET/v1/useragent

Parse a browser User-Agent string into browser, engine, OS and device

Omit ua to parse the User-Agent of the request itself.

PARAMETERS
uaquery · string
User-Agent string
e.g. Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/useragent" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1",
  "browser": {
    "name": "Mobile Safari",
    "version": "17.5",
    "major": "17"
  },
  "engine": {
    "name": "WebKit",
    "version": "605.1.15"
  },
  "os": {
    "name": "iOS",
    "version": "17.5"
  },
  "device": {
    "type": "mobile",
    "vendor": "Apple",
    "model": "iPhone"
  },
  "cpu": {
    "architecture": null
  },
  "bot": false
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.