$ man user-agent-parse
/user-agent-parse(1)
PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
user-agent-parse — user-agent parser / ua classifier / browser detection / os detection / bot detection / ai crawler identifier (gptbot, claudebot, perplexi…
SYNOPSIS
POST https://x402.org/v1/user-agent-parse
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
User-Agent parser / UA classifier / browser detection / OS detection / bot detection / AI crawler identifier (GPTBot, ClaudeBot, PerplexityBot). Pure-local regex parser — detects browser (Chrome, Firefox, Safari, Edge, Opera, Vivaldi, Samsung), OS (Windows, macOS, iOS, Android, Linux, ChromeOS) with version, device type (desktop / mobile / tablet / bot), and identifies 32+ specific bots/crawlers. No upstream call.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| user_agent | string | Raw User-Agent header string. Up to 2000 chars. | required |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| user_agent | string | Echoes back the raw User-Agent string that was parsed. |
| is_bot | string | Boolean flag indicating whether the UA matches a known bot or crawler signature. |
| bot | string | Identified bot name when is_bot is true (e.g. GPTBot, ClaudeBot, PerplexityBot), null otherwise. |
| browser | string | Detected browser name and version (e.g. Chrome 120, Firefox 115, Safari 17). |
| os | string | Detected operating system and version (e.g. Windows 11, macOS 14, iOS 17, Android 14). |
| device | string | Device class inferred from the UA: desktop, mobile, tablet, or bot. |
| source | string | Origin of the parse result, e.g. local-regex, since no upstream API is called. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/user-agent-parse \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the user-agent-parse tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- web-probeuser-agentbrowser-detectionos-detectionbot-detectionai-crawlerua-parser
- methods
- POST
- cluster
- webprobe
- price
- $0.001 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| hacker-news-search | Hacker News search / HN search / yc-news / Algolia HN. | $0.001 |
| hn-search | HN search / Hacker News search / yc-news / startup-news search / Algolia HN / who-is-hiring scraper / programmer-news firehose. | $0.001 |
| ip-asn | IP to ASN / IP geolocation / IP-to-ISP lookup / WHOIS for IP / cloud-provider attribution. | $0.001 |
| qr-code-generate | QR code generator / QR maker / vCard QR / WiFi QR / URL to QR / SVG QR / PNG QR / customizable error correction. | $0.001 |
| tld-info | TLD info / top-level domain registry lookup / ccTLD vs gTLD / TLD introduction year / new gTLD registry. | $0.001 |
| arxiv-bibtex | arXiv to BibTeX / arxiv citation generator / paper bibtex / LaTeX citation builder / academic citation lookup. | $0.002 |
| github-readme | GitHub README fetch / repo readme / open-source-readme-as-markdown / package documentation puller. | $0.002 |
| keyword-suggest | Keyword autocomplete / search suggest / SEO keyword research / query expansion / autocomplete suggestions. | $0.002 |
SEE ALSO