Parses user agent strings into structured browser, OS, and device information. Call via MCP in AI editors or GET /v1/misc/user-agent with the user agent string as a parameter. Returns JSON with browser name, version, operating system, device type, and engine details. Essential for web analytics, device detection, and compatibility testing in AI-powered development workflows.
curl "https://tinyfn.io/v1/misc/user-agent" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/misc/user-agent', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/misc/user-agent',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's miscellaneous tools:
{
"mcpServers": {
"tinyfn-misc": {
"url": "https://tinyfn.io/mcp/misc",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Send the user agent string to GET /v1/misc/user-agent. Returns structured JSON with browser name/version, OS details, device type, and rendering engine information.
Extracts browser name and version, operating system, device type (mobile/desktop/tablet), rendering engine, and platform architecture from the user agent string.
Yes, use the user agent parser in Cursor, Claude Code, or other MCP-enabled editors to analyze user agent strings during development and testing workflows.
Yes, accurately identifies mobile browsers, tablets, desktop browsers, and common bots/crawlers. Handles both modern and legacy user agent formats.
Browser name is Chrome, Firefox, Safari, etc. Engine is the underlying technology like Blink, Gecko, or WebKit that actually renders web pages.