{"uid":"cap_MAek8kCpb_W6_PScLm5UP","slug":"agent-data-tools-revmesh2074-workers-dev-user-agent-parser-browser-os-154c1238","name":"User Agent Parser: Browser, OS, Device & Bot Detection","description":"Parse a User-Agent string into browser and version, operating system and version, device type (desktop, mobile, tablet or bot) and, for crawlers, which bot it is: Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, social previewers, SEO crawlers and HTTP libraries such as curl or python-requests. Local rules, no outside service. Use to read access logs, segment traffic or spot AI crawlers.","url":"https://agent-data-tools.revmesh2074.workers.dev/useragent/parse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["ua"],"properties":{"ua":{"type":"string","description":"The User-Agent string"}}},"responseSchema":{"type":"object","properties":{"os":{"type":"string"},"bot":{},"isBot":{"type":"boolean"},"device":{"type":"string"},"browser":{"type":"string"},"osVersion":{"type":"string"},"userAgent":{"type":"string"},"majorVersion":{"type":"number"},"browserVersion":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h1FlMhAHnkNltxKl8h_k3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Parses a User-Agent string into browser, OS, device type, and bot identity (including AI crawlers like GPTBot and ClaudeBot) using local rules with no external service dependency.","exampleAgentPrompt":"Can you parse this user agent string for me and tell me whether it's a bot, which browser and OS it is, and what device type — 'Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36'?","exampleUseCases":[{"title":"Spot AI crawlers in access logs","prompt":"I'm seeing a lot of traffic in my server logs and I want to know if any of it is from AI crawlers like GPTBot, ClaudeBot, or PerplexityBot — can you parse this user agent string and tell me if it's one of those bots: 'GPTBot/1.0 (+https://openai.com/gptbot)'?"},{"title":"Segment traffic by device type","prompt":"I have a list of user agent strings from my web analytics and I need to know which ones are from mobile phones vs desktops vs tablets — can you start by parsing this one: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'?"},{"title":"Detect HTTP library scraping attempts","prompt":"Someone keeps hitting my API and I want to know if they're using a script or a real browser — can you parse this user agent and tell me if it's something like curl or python-requests: 'python-requests/2.31.0'?"}],"resultDescription":"Returns a JSON object with: browser name, browser version string, major version number, operating system name, OS version, device type (desktop/mobile/tablet/bot), a boolean isBot flag, the raw userAgent echoed back, and a bot field naming the specific crawler (e.g. GPTBot, ClaudeBot, Googlebot, Bingbot, PerplexityBot, curl, python-requests) when applicable.","failureModes":["Missing or empty 'ua' query parameter returns an error","Unrecognized or highly unusual user agent strings may return generic/empty fields for browser or OS","Malformed user agent strings may produce partial results with some fields null or empty","Very new bots not yet in the local rule set will not be identified by name"],"whenToPreferThis":"Choose this endpoint when you need fast, private user agent parsing without sending data to a third-party service — ideal for access log analysis, traffic segmentation, and AI crawler detection. It covers a broad set of bots including AI crawlers (GPTBot, ClaudeBot, PerplexityBot) and HTTP libraries (curl, python-requests) that generic parsers often miss. At $0.01 per call with local rules and no external dependency, it is well-suited for agents processing individual log lines or real-time request inspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T21:47:04.266Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-user-agent-parser-browser-os-154c1238"}