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_agentstringUser-Agent string to parse (required, max 1024 chars)

Response Fields

Field Description
browser.nameBrowser name (Chrome, Firefox, Safari, etc.)
browser.versionBrowser version string
browser.engineRendering engine (WebKit, Gecko, Trident)
os.nameOperating system name
os.versionOS version
device.typemobile, tablet, or desktop
device.brandDevice brand (Apple, Samsung, Google, etc.)
device.modelDevice model when detectable
is_botWhether the UA belongs to a bot/crawler
bot_nameBot 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)"}'