{"uid":"cap_bKZP4WGXpSaFo-6GYIrpM","slug":"agent402-tools-user-agent-parser-177c0839","name":"agent402.tools User-Agent Parser","description":"Heuristic user-agent string parser: browser, version, OS, device class, and bot detection.","url":"https://agent402.tools/api/user-agent","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ua":{"type":"string","description":"User-Agent header value"}}},"responseSchema":{"type":"json","example":{"os":"Windows","bot":false,"device":"desktop","browser":"Chrome","version":"125.0"}},"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_zwyYiM1pEy5owRYYNBjHN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 to extract browser name, version, operating system, device class, and detect bots.","exampleAgentPrompt":"Can you parse this user-agent string and tell me what browser, OS, and device type it is, and whether it's a bot? The string is: '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":null,"resultDescription":"Returns parsed components of the User-Agent string including browser name and version, operating system, device class (e.g. mobile/desktop/tablet), and a bot detection flag.","failureModes":["Empty or missing 'ua' field returns an error","Malformed or truncated user-agent strings may produce partial or low-confidence results","Unknown or very new user agents may not be recognized and return unknown fields","Payment not included or insufficient USDC returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need fast, heuristic-based parsing of HTTP User-Agent strings to classify browsers, operating systems, device types, or detect bot traffic — especially in agent pipelines that process web request logs or filter automated traffic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.891Z","isFirstParty":false}