User-Agent Parser
Detect your browser, OS, and whether you look like a human or an AI agent.
Detecting your User-Agent...
Parsed Result
Raw User-Agent
API Response (JSON)
Use as API
curl
JavaScript
Python
MCP
curl https://hatchloop.dev/api/user-agent
const res = await fetch('https://hatchloop.dev/api/user-agent');
const data = await res.json();
console.log(data.parsed.type); // "browser" | "ai_agent" | "bot" | "http_client"
console.log(data.parsed.browser); // "Chrome" | "Firefox" | null
console.log(data.parsed.os); // "macOS" | "Windows" | "Linux" | null
import httpx
r = httpx.get('https://hatchloop.dev/api/user-agent')
data = r.json()
print(data['parsed']['type']) # 'browser', 'ai_agent', 'bot', 'http_client'
print(data['parsed']['os']) # 'macOS', 'Windows', 'Linux', None
// Connect: {"mcpServers":{"hatchloop-tools":{"url":"https://hatchloop.dev/mcp"}}}
// Call tool: user_agent (no arguments needed)
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": { "name": "user_agent", "arguments": {} },
"id": 1
}
The MCP tool returns the User-Agent of the MCP client making the request. Available via the hatchloop-tools MCP server.