{"uid":"cap_Q-xytm3TvQ6Zg55ZNruVz","slug":"sitecheck-user-agent-parser-588a7ee4","name":"SiteCheck User-Agent Parser","description":"Parses a User-Agent string: browser and version, rendering engine, operating system and version, device type, vendor and model, CPU, and whether it is a known crawler (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, AhrefsBot and a few more) with its name. Optional Client Hints values (platform, mobile, model) are reported as given. Parsed with ua-parser-js 1.x (MIT). Pure code, no outside request.","url":"https://api.sitecheck-api.workers.dev/api/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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ua"],"properties":{"ua":{"type":"string","description":"The User-Agent string, up to 1000 characters"},"chModel":{"type":"string","description":"Client Hints model, up to 60 characters (optional)"},"chMobile":{"type":"string","description":"Client Hints mobile flag, e.g. ?1 (optional)"},"chPlatform":{"type":"string","description":"Client Hints platform, e.g. Windows (optional)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"os":{"name":"iOS","version":"17.0","clientHintPlatform":null},"cpu":null,"isBot":false,"device":{"type":"mobile","model":"iPhone","vendor":"Apple"},"engine":{"name":"WebKit","version":"605.1.15"},"source":"ua-parser-js 1.0.40 (MIT); bot names from a short list of published crawler user agents","botName":null,"browser":{"name":"Mobile Safari","version":"17.0"},"platform":"iOS","checkedAt":"2026-10-15T14:07:52.209Z"}},"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_0a5DmJpoz9ZfZ8mE2HYwu","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 string (and optional Client Hints) to identify browser, OS, device, engine, platform, and bot status","exampleAgentPrompt":"Parse this user agent string for me and tell me the browser, OS, device type, and whether it's a bot: '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'","exampleUseCases":[{"title":"Bot vs human traffic detection","prompt":"I have this user agent from an incoming request — 'Googlebot/2.1 (+http://www.google.com/bot.html)' — can you check if it's a bot and what its name is?"},{"title":"Device targeting for ad campaign","prompt":"Can you parse this user agent 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36' and tell me the device vendor, model, and whether it's mobile so I know how to target the ad?"},{"title":"Debugging browser compatibility issue","prompt":"A user reported a bug and sent me their user agent string: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0' — what browser, version, and OS are they on?"}],"resultDescription":"A JSON object containing parsed fields: browser (name, version), OS (name, version, clientHintPlatform), device (type, model, vendor), engine (name, version), platform string, isBot boolean, botName (if applicable), source library attribution, and a checkedAt timestamp.","failureModes":["Missing 'ua' query parameter returns an error","User-Agent string exceeding 1000 characters may be rejected","Unrecognized or novel user agents may return partial nulls for some fields","Client Hints fields exceeding length limits may be ignored or cause errors"],"whenToPreferThis":"Use this endpoint when you need to programmatically parse raw User-Agent strings into structured browser/OS/device/bot data, especially in a pay-per-call agent context without managing your own ua-parser-js instance. It supports Client Hints enrichment for more accurate modern browser detection. Prefer it over rolling your own parser when you need bot name identification alongside standard UA parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:41:20.531Z","isFirstParty":false,"canonicalSlug":"sitecheck-user-agent-parser-588a7ee4"}