{"uid":"cap_JT0sAYPt0uvaEVJ-YYxXq","slug":"foundry-user-agent-parser-1fcf6827","name":"Foundry User-Agent Parser","description":"User agent parser: browser and version, OS, device type, and whether it is a bot or AI crawler. Input: a User-Agent string.","url":"https://minty-sprout.onrender.com/v1/user-agent?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"A User-Agent header value"}}},"responseSchema":{"type":"json","example":{"os":"Windows","bot":null,"device":"desktop","is_bot":false,"browser":"Chrome","os_version":"10.0","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36","browser_version":"130.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_UfjSf0vbrP9LJRMFJyxNF","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 and version, OS and version, device type, and bot/AI crawler detection","exampleAgentPrompt":"Can you parse this user agent string for me and tell me what browser, OS, device type it is, and whether it's a bot: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36'?","exampleUseCases":[{"title":"Bot traffic detection in logs","prompt":"I have this user agent from my server logs: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' — can you parse it and tell me if it's a bot and which one?"},{"title":"Mobile vs desktop audience analytics","prompt":"Parse this user agent and tell me whether the visitor was on a mobile device or desktop: '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'"},{"title":"AI crawler identification for access control","prompt":"We're trying to block AI scrapers — can you check this user agent and tell me if it's an AI crawler: 'CCBot/2.0 (https://commoncrawl.org/faq/)'?"}],"resultDescription":"Returns a JSON object with: browser (name string), browser_version, os (operating system name), os_version, device (e.g. 'desktop', 'mobile', 'tablet'), is_bot (boolean), bot (bot name if detected, else null), and the original user_agent string echoed back.","failureModes":["Empty or missing input string returns an error","Extremely malformed or non-standard user agent strings may result in null fields for unrecognized components","Very long strings beyond 8000 characters will be rejected","Novel or rare bot user agents may not be recognized and is_bot may return false"],"whenToPreferThis":"Use this endpoint when you need fast, structured parsing of a single User-Agent string including bot and AI crawler detection. It is ideal for enriching request logs, gating access for bots, or classifying visitor device type without running a local UA parsing library. Choose this over browser fingerprinting services when you only have the UA string and need quick classification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:43.058Z","isFirstParty":false,"canonicalSlug":"foundry-user-agent-parser-1fcf6827"}