{"uid":"cap_-tEd0sHjp6iW58f_4ODo5","slug":"saylor-innovations-user-agent-parser-cadf3d16","name":"Saylor Innovations User-Agent Parser","description":"Parse a User-Agent string into browser, version, engine, OS, device type and architecture, and flag search, AI and social bots and HTTP tools","url":"https://saylorinnovations.com/api/dev/user-agent?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ua"],"properties":{"ua":{"type":"string","description":"User-Agent header value to parse"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["user_agent","is_bot","device_type"],"properties":{"os":{"type":["string","null"],"description":"Operating system"},"bot":{"type":["object","null"],"description":"Bot or crawler name when the agent is automated, otherwise null"},"note":{"type":"string","description":"Caveat or context for reading the result"},"engine":{"type":["string","null"],"description":"Engine or model that produced the result"},"is_bot":{"type":"boolean","description":"True when this is bot"},"source":{"type":"string","description":"Data source the values come from"},"browser":{"type":["string","null"],"description":"Browser family"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"os_version":{"type":["string","null"],"description":"Os version"},"user_agent":{"type":"string","description":"User-agent the rules were evaluated for"},"device_type":{"type":"string","description":"Device type"},"architecture":{"type":["string","null"],"description":"CPU architecture when stated"},"browser_major":{"type":"integer","description":"Browser major"},"browser_version":{"type":["string","null"],"description":"Browser version"},"outdated_browser_hint":{"type":"null","description":"Outdated browser hint"}},"additionalProperties":true},"description":{"type":"string"}}}}},"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_WVKhfRUAqmArLbnPln3wE","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 browser, version, engine, OS, device type, and architecture, and flags bots including search crawlers, AI agents, and social media scrapers","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 type, and whether it's a bot?","exampleUseCases":[{"title":"Bot detection for incoming web traffic","prompt":"I'm seeing a spike in traffic from this user agent: 'Googlebot/2.1 (+http://www.google.com/bot.html)' — can you tell me if it's a bot and what kind?"},{"title":"Identifying user browser and OS for support","prompt":"A user submitted a bug report and their user agent is 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' — what browser, version, and OS are they on?"},{"title":"Flagging AI crawlers in server logs","prompt":"I want to check if this user agent belongs to an AI bot or scraper: 'GPTBot/1.0 (+https://openai.com/gptbot)' — is it a bot, and if so, what type?"}],"resultDescription":"Returns a JSON object with the parsed user agent broken down into browser family, browser version, browser major version, rendering engine, operating system, OS version, device type, CPU architecture, a boolean is_bot flag, a bot object with the crawler name when automated traffic is detected, plus a source field and an optional note providing context or caveats about the result.","failureModes":["Missing or empty 'ua' query parameter returns an error","Highly obfuscated or malformed UA strings may produce null fields for browser/OS/engine","Novel or obscure user agents not in the ruleset may be misclassified","Paid endpoint returns HTTP 402 if x402 payment is not provided"],"whenToPreferThis":"Choose this endpoint when you need fast, structured parsing of raw User-Agent strings into discrete fields (browser, OS, device type, bot flag) without running your own regex rules or maintaining a UA database. Especially useful for bot detection pipelines that need to distinguish search crawlers, AI bots, and social media scrapers from real users. Prefer this over generic libraries when you want a hosted, always-updated service that covers modern AI crawlers and HTTP tooling signatures.","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":"saylor-innovations-user-agent-parser-b6317dd7"}