{"uid":"cap_pyTZ2SlstT56hRH_5yeEo","slug":"httpay-user-agent-parser-10f94660","name":"HTTPay User Agent Parser","description":"Parse any user agent string into device type, browser, OS, engine, and bot detection. Pass ?ua= query param. Uses ua-parser-js. Returns structured browser/device/OS breakdown.","url":"https://httpay.xyz/api/user-agent-parse","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Parse any user agent string into device type, browser, OS, engine, and bot detection. Pass ?ua= query param. Uses ua-parser-js. Returns structured browser/device/OS breakdown."}},"example":{"request":{"user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"},"response":{"os":{"name":null,"version":null},"ua":"node","meta":{"x402":true,"poweredBy":"Alfred Zhang 🫡"},"flags":{"isBot":false,"isMobile":false,"isTablet":false,"isDesktop":true},"device":{"type":"desktop","model":null,"vendor":null},"engine":{"name":null,"version":null},"source":"ua-parser-js","browser":{"name":null,"major":null,"version":null},"parsedAt":"2026-06-12T04:38:48.263Z"}},"exampleRequest":{"user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kS472C1gmBtCCUcDHDEcM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a user agent string into structured browser, device, OS, engine, and bot detection fields using ua-parser-js","exampleAgentPrompt":"Can you parse this user agent string for me — 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1' — and tell me the device type, browser, and OS?","exampleUseCases":null,"resultDescription":"Returns a structured JSON breakdown of the user agent string including device type (mobile/desktop/tablet), browser name and version, operating system and version, rendering engine, and whether the agent is identified as a bot or crawler.","failureModes":["Missing or empty user_agent parameter returns a 400 error","Malformed or unrecognized user agent strings may return partial or empty fields","Payment failure via x402/USDC results in 402 response blocking the call","Extremely long or specially crafted user agent strings may not parse correctly"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, no-subscription user agent parser for occasional or bursty use cases where paying $0.002 USDC per call is preferable to maintaining an API key subscription. Ideal for agents that need structured browser/device/OS breakdown from raw HTTP user agent headers without managing credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:49:23.074Z","isFirstParty":false}