Device Detection API Documentation
Complete reference for the Device Detection API
Authentication
Authorization: Bearer sk_live_your_key_here
GET POST /v1/device/detect
Parameters
| Field | Type | Description |
|---|---|---|
user_agent | string | User-Agent string to parse (required, max 1024 chars) |
Response Fields
| Field | Description |
|---|---|
browser.name | Browser name (Chrome, Firefox, Safari, etc.) |
browser.version | Browser version string |
browser.engine | Rendering engine (WebKit, Gecko, Trident) |
os.name | Operating system name |
os.version | OS version |
device.type | mobile, tablet, or desktop |
device.brand | Device brand (Apple, Samsung, Google, etc.) |
device.model | Device model when detectable |
is_bot | Whether the UA belongs to a bot/crawler |
bot_name | Bot name if detected (Googlebot, Bingbot, etc.) |
Example
curl -X POST "https://snapapis.com/api/v1/device/detect" \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X)"}'