utilpeek: parse a User-Agent string (browser, OS, device, bot)
parse_user_agentParse a User-Agent string into browser, OS, device, and bot signals using ua-parser regexes, helping identify clients while noting self-reported data can be faked.
Instructions
utilpeek: parse a User-Agent string. For known x402 monitors and indexers with call rates use identify_x402_client. A User-Agent is self-reported and easy to fake; is_bot is a heuristic (declared crawlers, HTTP libraries, headless browsers). Parsed with ua-parser and the uap-core regexes (Apache-2.0). Typically under 0.1 s (first call up to 0.5 s). Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/user-agent-parser-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_agent | Yes | User-Agent string (1-1024 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| device | No | ||
| is_bot | No | ||
| length | No | ||
| source | No | ||
| browser | No | ||
| is_mobile | No | ||
| bot_reason | No |