{"uid":"cap_28g8zPftZRwGpy4h9Rk-C","slug":"user-agent-parser-aad09af7","name":"User-Agent Parser","description":"Break a User-Agent string into browser, engine, operating system (each with a version) and device type. Unidentifiable components are reported as null.","url":"https://useragent.openverbs.com/v1/parse","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["ua"],"properties":{"ua":{"type":"string","description":"The User-Agent header string."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.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_DyjimMG4CeWImNHKdJ1B6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 header string and returns structured device, browser, and OS information","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 what browser, OS, and device type it is?","exampleUseCases":[{"title":"Analytics pipeline device breakdown","prompt":"I have this user agent from my access logs — 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' — can you parse it and tell me the browser name, version, and OS?"},{"title":"Bot traffic detection in web logs","prompt":"Can you parse this user agent string 'Googlebot/2.1 (+http://www.google.com/bot.html)' and tell me what client or crawler it belongs to?"},{"title":"Mobile vs desktop routing logic","prompt":"I need to know if this user agent — 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36' — is from a mobile device so I can serve the right layout."}],"resultDescription":"A structured breakdown of the User-Agent string including browser name and version, operating system and version, device type (mobile/desktop/tablet/bot), rendering engine, and platform details.","failureModes":["Empty or missing 'ua' field returns a validation error","Malformed or truncated UA string may return partial results or unknown fields","Extremely long or obfuscated UA strings may not be fully parsed","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, structured parsing of raw HTTP User-Agent strings into browser, OS, and device components — especially in agent workflows that process web logs, personalize responses by device type, or filter bot traffic. Prefer this over regex-based self-parsing when reliability and accuracy across thousands of UA formats is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:22.609Z","isFirstParty":false}