{"uid":"cap_WkFctj0W_bRGE_l7p8v5M","slug":"24k-labs-user-agent-parser-be4048fb","name":"24K Labs User-Agent Parser","description":"Parse a User-Agent string into browser, version, engine, OS, device class, and bot/AI-crawler flag (GPTBot, ClaudeBot, PerplexityBot).","url":"https://api.24klabs.ai/api/user-agent-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ua":{"type":"string"}}},"responseSchema":{"type":"json","example":{"os":"Windows","device":"desktop","is_bot":false,"browser":"Chrome"}},"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_teMYUVNs_Qkct5WoHPb-1","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 into structured fields: browser name/version, rendering engine, operating system, device class, and bot/AI-crawler flag (GPTBot, ClaudeBot, PerplexityBot).","exampleAgentPrompt":"Can you parse this User-Agent string for me — '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' — and tell me the browser, OS, device class, and whether it's a bot or AI crawler?","exampleUseCases":[{"title":"Detect AI crawler scraping your site","prompt":"I'm seeing a lot of traffic in my logs and I want to know if these requests are coming from AI crawlers like GPTBot or ClaudeBot — can you parse this user agent string and tell me if it's a known AI bot: 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.0; +https://openai.com/gptbot)'?"},{"title":"Segment analytics by device class","prompt":"I have a list of user agent strings from our web logs and I need to know whether each visitor was on a mobile device, tablet, or desktop — can you parse this one first: 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36'?"},{"title":"Identify browser and engine for compatibility","prompt":"We're debugging a CSS rendering issue and need to know which browser engine this user agent belongs to — please parse 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0' and give me the browser name, version, and rendering engine."}],"resultDescription":"Returns a structured breakdown of the User-Agent string including: browser name and version, rendering engine, operating system (name and version), device class (mobile/tablet/desktop), and a bot/AI-crawler flag with identification of specific known bots such as GPTBot, ClaudeBot, and PerplexityBot.","failureModes":["Empty or missing User-Agent string returns a validation error","Malformed or truncated User-Agent strings may yield partial or null fields","Unknown or custom bot user agents may not be flagged as bots","Very new browser versions may not be recognized and return incomplete version data","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable User-Agent parsing with explicit AI/bot crawler detection (GPTBot, ClaudeBot, PerplexityBot) beyond what standard UA libraries provide. Ideal for agentic workflows that need to classify incoming HTTP requests, filter AI crawler traffic, or enrich analytics data without running a local UA library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:58:01.934Z","isFirstParty":false}