{"uid":"cap_oLIljs08uOCAQatRafzeC","slug":"user-agent-string-parser-413d46d6","name":"User-Agent String Parser","description":"Parse a User-Agent string: browser, OS, device class (desktop, mobile, tablet, tv, bot) and a bot flag.","url":"https://dev-utils.x402tookit.com/user-agent-parse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ua"],"properties":{"ua":{"type":"string","description":"The User-Agent header value, up to 600 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"os":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"version":{"type":["null","string"]}}},"bot":{"type":["boolean","null"]},"asOf":{"type":["null","string"]},"length":{"type":["null","number"]},"source":{"type":["null","string"]},"botKind":{},"botName":{},"browser":{"type":["null","object"],"properties":{"name":{"type":["null","string"]},"engine":{"type":["null","string"]},"version":{"type":["null","string"]}}},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"deviceClass":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CWwC7V5-uoCQgU-q4kX5i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a User-Agent string to extract browser, OS, device class (desktop/mobile/tablet/tv/bot), and bot detection flag.","exampleAgentPrompt":"Can you parse this user-agent string for me and tell me what browser, OS, and device type it is — also flag if it looks like a bot: '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'?","exampleUseCases":[{"title":"Bot traffic filtering in access logs","prompt":"I have this user-agent from a suspicious request hitting my API: 'Googlebot/2.1 (+http://www.google.com/bot.html)' — can you parse it and tell me if it's a bot, what kind, and what device class it is?"},{"title":"Mobile vs desktop analytics segmentation","prompt":"Parse this user-agent string 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36' and tell me whether it's a mobile or desktop device and which browser it's using."},{"title":"Browser compatibility check for support ticket","prompt":"A user submitted this user-agent with their support ticket: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0' — what browser, version, and OS are they on?"}],"resultDescription":"Returns a structured object containing: browser name/engine/version, OS name/version, device class (desktop/mobile/tablet/tv/bot), a boolean bot flag, bot name and kind if applicable, a human-readable summary and verdict, degraded-parse flag, a list of unchecked signals, disclaimer, source, and timestamp of the parse result.","failureModes":["Missing 'ua' query parameter returns an error","User-agent string exceeding 600 characters may be truncated or rejected","Uncommon or novel user-agent strings may return degraded results with the 'degraded' flag set to true","Unknown or ambiguous user-agents may return null fields for browser/OS/deviceClass","Payment failure returns HTTP 402 before parsing occurs"],"whenToPreferThis":"Use this endpoint when you need a quick, structured breakdown of a raw User-Agent string — especially when you need bot detection, device class classification, or browser/OS fingerprinting in a single call. Prefer it over regex-based parsing when you want a maintained, up-to-date parser that handles edge cases and flags degraded results. At $0.02 per call it's cost-effective for on-demand lookups in support workflows, access log analysis, or API middleware.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:31:02.328Z","isFirstParty":false,"canonicalSlug":"user-agent-string-parser-413d46d6"}