{"uid":"cap_Mw4agVPJlNIdiYos02S_Z","slug":"user-agent-string-parser-dfc0170e","name":"User-Agent String Parser","description":"User-agent string parsing: browser, engine, OS, device type/vendor/model, CPU architecture, plus a likely-bot flag. For agents analyzing logs or adapting responses per client.","url":"https://api.aventtech.com/parse/useragent?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":"User-agent string, max 1000 chars"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_ZOm82WYAjV2kSLYZ7bHVP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 into structured browser, engine, OS, device type/vendor/model, CPU architecture, and bot-likelihood fields.","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 browser, OS, device model, and whether it's likely a bot?","exampleUseCases":[{"title":"Bot traffic filtering in logs","prompt":"I have this user-agent from my server log: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' — can you parse it and tell me if it's flagged as a bot, and what browser and OS it claims?"},{"title":"Mobile vs desktop detection for adaptive UI","prompt":"Before rendering the page, parse 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' — and tell me the device type, vendor, and model so I can decide which layout to serve."},{"title":"Security audit of unusual client requests","prompt":"We got a weird request with this user-agent: 'python-requests/2.28.1' — parse it and let me know the browser, OS, CPU architecture, and whether it's likely an automated bot or script."}],"resultDescription":"Returns a structured breakdown of the user-agent string including: browser name and version, rendering engine name and version, operating system name and version, device type (mobile/tablet/desktop/etc.), device vendor, device model, CPU architecture, and a boolean or flag indicating whether the client is likely a bot or crawler.","failureModes":["Missing 'ua' query parameter returns an error","User-agent string exceeding 1000 characters is rejected","Unrecognized or malformed UA strings may return empty/null fields for most components while still succeeding","Payment failure or insufficient funds returns 402"],"whenToPreferThis":"Choose this endpoint when you need a fast, structured breakdown of a raw user-agent string into its constituent parts — especially when bot detection, device classification, or browser/OS identification is needed programmatically. Prefer it over rolling your own regex parsing or relying on client-side hints when you need a reliable, maintained parser accessible via API with per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:42:01.426Z","isFirstParty":false,"canonicalSlug":"user-agent-string-parser-dfc0170e"}