User Agent Parser API
Browser, engine, operating system, device and bot detection from a User-Agent string.
POST /api/v1/tools/user-agent-parserMCP user_agent_parserWeb & SEOParse any user agent string into browser and version, engine, operating system, device type and known bots such as Googlebot, GPTBot and ClaudeBot.
Input
Send these as a JSON object. Unknown fields are rejected.
- userAgent
- The User-Agent header value. (string, required)
curl https://pithlab.com/api/v1/tools/user-agent-parser \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"}'Example response
{
"ok": true,
"result": {
"summary": "Chrome 130.0.0.0 on Windows 10 or 11 (desktop)",
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "130.0.0.0"
},
"engine": {
"name": "Blink",
"version": "130.0.0.0"
},
"os": {
"name": "Windows",
"version": "10 or 11"
},
"device": {
"type": "desktop",
"model": ""
},
"bot": null,
"notes": [
"Windows 11 still reports Windows NT 10.0, so the user agent cannot tell 10 and 11 apart. Client hints (platformVersion 13 or higher) can.",
"Chrome's reduced user agent hides the minor, build and patch numbers (shown as .0.0.0)."
]
}
}