Catalog/ref-user-agent

Reference

User-Agent parser (browser/OS/device + bot detection) API

Parse a raw User-Agent string into browser+version, OS+version, device type (desktop/mobile/tablet/bot), and — the value-add — BOT detection flagging crawlers, AI agents, headless browsers, and HTTP libraries from a curated ruleset. Answers 'what browser is this UA', 'is this a bot', 'what OS does this user agent indicate', 'detect crawler from user agent'.

Price$0.01per request
MethodPOST
Route/v1/ref/user-agent
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refuser-agentuabot-detectionbrowserosdevicecrawler
API URLhttps://x402.hexl.dev/v1/ref/user-agent
Integration docs
Example request
{
  "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
}
Example response
{
  "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
  "isBot": true,
  "botName": "Googlebot",
  "deviceType": "bot",
  "browser": null,
  "browserVersion": null,
  "os": null,
  "osVersion": null
}
Input schema
{
  "type": "object",
  "required": [
    "userAgent"
  ],
  "properties": {
    "userAgent": {
      "type": "string",
      "examples": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}