Parse a User-Agent into browser, OS, device and bot
user_agentParses a User-Agent string: browser and version, rendering engine, operating system and version, device type, vendor and model, CPU, and whether it is a known crawler (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, AhrefsBot and a few more) with its name. Optional Client Hints values (platform, mobile, model) are reported as given. Parsed with ua-parser-js 1.x (MIT). Pure code, no outside request. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ua": "<ua>"
},
"name": "user_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ua | Yes | The User-Agent string, up to 1000 characters | |
| chModel | No | Client Hints model, up to 60 characters (optional) | |
| chMobile | No | Client Hints mobile flag, e.g. ?1 (optional) | |
| chPlatform | No | Client Hints platform, e.g. Windows (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| cpu | No | ||
| isBot | No | ||
| device | No | ||
| engine | No | ||
| source | No | ||
| botName | No | ||
| browser | No | ||
| platform | No | ||
| checkedAt | No |