Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man user-agent-parse

/user-agent-parse(1)

agentutility / web-probe / user-agent-parse
PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobe
CATEGORY
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.

INPUTrequest schema
propertytypedescriptionreq?
user_agentstringRaw User-Agent header string. Up to 2000 chars.required
OUTPUTresponse shape
fieldtypedescription
user_agentstringEchoes back the raw User-Agent string that was parsed.
is_botstringBoolean flag indicating whether the UA matches a known bot or crawler signature.
botstringIdentified bot name when is_bot is true (e.g. GPTBot, ClaudeBot, PerplexityBot), null otherwise.
browserstringDetected browser name and version (e.g. Chrome 120, Firefox 115, Safari 17).
osstringDetected operating system and version (e.g. Windows 11, macOS 14, iOS 17, Android 14).
devicestringDevice class inferred from the UA: desktop, mobile, tablet, or bot.
sourcestringOrigin of the parse result, e.g. local-regex, since no upstream API is called.
EXAMPLEStwo 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
ADJACENTother endpoints in webprobe
endpointdescriptionprice
hacker-news-searchHacker News search / HN search / yc-news / Algolia HN.$0.001
hn-searchHN search / Hacker News search / yc-news / startup-news search / Algolia HN / who-is-hiring scraper / programmer-news firehose.$0.001
ip-asnIP to ASN / IP geolocation / IP-to-ISP lookup / WHOIS for IP / cloud-provider attribution.$0.001
qr-code-generateQR code generator / QR maker / vCard QR / WiFi QR / URL to QR / SVG QR / PNG QR / customizable error correction.$0.001
tld-infoTLD info / top-level domain registry lookup / ccTLD vs gTLD / TLD introduction year / new gTLD registry.$0.001
arxiv-bibtexarXiv to BibTeX / arxiv citation generator / paper bibtex / LaTeX citation builder / academic citation lookup.$0.002
github-readmeGitHub README fetch / repo readme / open-source-readme-as-markdown / package documentation puller.$0.002
keyword-suggestKeyword autocomplete / search suggest / SEO keyword research / query expansion / autocomplete suggestions.$0.002
SEE ALSO
agentutility(7) · webprobe(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org