{"uid":"cap_TltG4Mn8986DwAJzPHG08","slug":"24k-labs-user-agent-parser-54d4301e","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/v1/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_PZcEqkhLZjCAGFQ9u14DT","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, version, rendering engine, OS, device class, and flags for known bots and AI crawlers (GPTBot, ClaudeBot, PerplexityBot).","exampleAgentPrompt":"Can you parse this user-agent string for me — 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' — and tell me the browser, OS, device class, and whether it's a bot or AI crawler?","exampleUseCases":[{"title":"AI crawler traffic detection","prompt":"I'm seeing a spike in traffic to my site. Can you parse this user-agent — 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.0; +https://openai.com/gptbot)' — and tell me if it's an AI crawler and which one?"},{"title":"Mobile vs desktop device classification","prompt":"Given this user-agent string 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1', what device class and OS does it represent?"},{"title":"Browser version analytics enrichment","prompt":"I need to enrich my server logs — can you parse this user-agent '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 object with browser name, browser version, rendering engine, operating system name and version, device class (desktop/mobile/tablet/bot), and boolean flags indicating whether the user-agent belongs to a known bot or a specific AI crawler (GPTBot, ClaudeBot, PerplexityBot).","failureModes":["Empty or missing user-agent string returns a validation error","Malformed or truncated user-agent strings may result in partial/unknown fields","Unrecognized or novel AI crawlers not yet in the database will not be flagged","Payment failure or insufficient USDC balance blocks the request","Rate limiting may occur under high-volume usage"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable decomposition of a raw User-Agent string, especially when detecting AI crawlers (GPTBot, ClaudeBot, PerplexityBot) is a priority. It is more suitable than regex-based solutions for agents that need reliable bot/AI detection without maintaining their own UA-parser libraries. At $0.002 per call it is cost-effective for on-demand log enrichment or real-time request classification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:51:33.527Z","isFirstParty":false}