{"uid":"cap_83jWgpq019s6Q1s13pmRM","slug":"saylor-innovations-user-agent-parser-b6317dd7","name":"Saylor Innovations User-Agent Parser","description":"User-Agent Parser: browser, OS, device, bot detection (incl. AI crawlers) — Developer Tools","url":"https://saylorinnovations.com/api/useragent/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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"ua":{"type":"string","description":"user-agent string (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["device","is_bot"],"properties":{"os":{"type":["object","null"]},"device":{"type":"string"},"is_bot":{"type":"boolean"},"browser":{"type":["object","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CawzxYcsE6ad3NuyQic-k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","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 type, rendering engine, and detect bots including AI crawlers like GPTBot and ClaudeBot","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' — and tell me the browser, OS, device type, and whether it's a bot?","exampleUseCases":[{"title":"Detect AI crawler on web server","prompt":"I'm seeing weird traffic on my site and want to know if it's an AI crawler — can you check this user-agent string 'Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)' and tell me if it's a bot and which one?"},{"title":"Identify mobile vs desktop visitors","prompt":"I have a list of user-agent strings from my access logs — start with 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36' and tell me whether it's a mobile device, what OS it's running, and what browser it is."},{"title":"Block scrapers by bot detection","prompt":"Before I serve this page, I need to know if the incoming request from user-agent 'CCBot/2.0 (https://commoncrawl.org/faq/)' is a bot — parse it and confirm whether it should be blocked."}],"resultDescription":"Returns a JSON object with the device type (string), a boolean is_bot flag, and optional browser object (name and version) and OS object (name and version). If the user-agent belongs to a known bot or AI crawler such as GPTBot, ClaudeBot, PerplexityBot, or CCBot, is_bot is true.","failureModes":["Missing or empty 'ua' query parameter — may return null/empty fields or an error","Unrecognized user-agent string — browser and OS fields may be null while is_bot defaults to false","Malformed user-agent string — partial parsing with some fields null","Rate limit or payment failure — request rejected with 402 or 429 status"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, per-call user-agent parse that includes AI crawler detection (GPTBot, ClaudeBot, PerplexityBot, CCBot) alongside standard browser, OS, and device classification. Ideal for agents processing HTTP access logs, gating content from AI scrapers, or enriching analytics pipelines with device context without standing up a local UA library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:51:18.628Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-user-agent-parser-b6317dd7"}