{"uid":"cap_KeNq45mEHO8s32_O42Wm0","slug":"agenttools-user-agent-parser-c22dbc74","name":"AgentTools User-Agent Parser","description":"Parse a User-Agent header into structured data: browser (name/version), rendering engine, operating system, and device type/vendor/model. Deterministic — the same string always parses identically. Use this when an agent needs to uA string → browser, engine, OS and device.","url":"https://agentstoolshub.com/api/v1/dev/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"],"type":"string"},"queryParams":{"type":"object","required":["userAgent"],"properties":{"userAgent":{"type":"string","description":"User-Agent string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_s2w0wmldMyiKkd-_VQ6oR","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":"Parse a User-Agent string into structured browser name/version, rendering engine, operating system, and device type/vendor/model data.","exampleAgentPrompt":"Can you parse this user agent string for me — 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1' — and tell me the browser, OS, and device type?","exampleUseCases":[{"title":"Identify mobile browser in access logs","prompt":"I have this user agent from my server logs: 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36' — can you tell me what browser, OS version, and device it belongs to?"},{"title":"Detect bot vs real browser","prompt":"Parse this user agent string for me and tell me the browser name, engine, and device type: 'Googlebot/2.1 (+http://www.google.com/bot.html)'"},{"title":"Debug cross-browser compatibility issue","prompt":"A user reported a bug and sent me their user agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0' — what browser version and OS are they running?"}],"resultDescription":"A structured object containing the parsed browser (name and version), rendering engine, operating system, and device details (type, vendor, model) extracted from the provided User-Agent string.","failureModes":["Missing or empty userAgent query parameter returns an error","Malformed or unrecognized User-Agent strings may return null/unknown fields for unidentifiable components","Network timeout or service unavailability returns a non-200 status","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need deterministic, structured parsing of a raw User-Agent header string into browser, engine, OS, and device fields. Prefer it over regex-based DIY parsing or heavier analytics platforms when you just need a single UA decoded quickly and cheaply at $0.002 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:48:25.811Z","isFirstParty":false,"canonicalSlug":"agenttools-user-agent-parser-c22dbc74"}