# User agent parser

Read a User-Agent string: browser, engine, operating system, device type and known bots or AI agents.

- Endpoint: `POST https://setget.net/v1/tools/user-agent-parse` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `user-agent-parse`
- Page: https://setget.net/tools/user-agent-parse

## Inputs

- `user_agent` (required, string): The User-Agent header value.

## Example 1

```json
{"input":{"user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"}}
```

Result:

```json
{"browser":{"name":"Chrome","version":"126.0.0.0"},"engine":{"name":"Blink","version":"126.0.0.0"},"os":{"name":"Windows","version":"10 or 11"},"device":"desktop","is_bot":false,"bot":null}
```

## Example 2: An AI crawler

```json
{"input":{"user_agent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"}}
```

Result:

```json
{"browser":{"name":null,"version":null},"engine":{"name":"WebKit","version":"537.36"},"os":{"name":null,"version":null},"device":"bot","is_bot":true,"bot":{"name":"ClaudeBot","kind":"ai","version":"1.0"}}
```

## Example 3: Safari on an iPhone

```json
{"input":{"user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1"}}
```

Result:

```json
{"browser":{"name":"Safari","version":"17.5"},"engine":{"name":"WebKit","version":"605.1.15"},"os":{"name":"iOS","version":"17.5"},"device":"mobile","is_bot":false,"bot":null}
```

**Why does Windows say "10 or 11"?** Windows 11 still reports itself as "Windows NT 10.0", so the two cannot be told apart from this text.

**Can a user agent be trusted?** No. Any client can send any text. Treat the result as a hint, not as proof of who is calling.

**What are the bot kinds?** search, ai, social (link previews), seo, feed, monitor, tool (libraries and command-line clients) and other.
