Docs

Device Detection

Capture rich device data with Ambriel Device Detection: instant user-agent analysis plus signals that expose emulators and spoofs.

What is Device Detection?

Device Detection is a powerful tool that provides valuable insights into any user's device. It can be used to:

  • Strengthen Authentication: Identify key device characteristics in seconds, flagging suspicious setups.
  • Enrich Customer Analytics: Access detailed device data, including retail price and release year.
  • Streamline Integration: Seamlessly integrate with the Ambriel API in minutes.

Key Features

User Agent Parsing

Access a vast user-agent database updated daily for maximum coverage.

Device Identification

Effortlessly identify devices of any kind to strengthen authentication.

Screen Analysis

Access detailed screen data for any device, including phones, laptops, and wearables.

Connectivity Capabilities

Get connectivity insights such as highest cellular generation, network protocols and VoLTE.

Hardware Information

Enhance customer analytics with additional device data, like retail price and release year.

Seamless Integration

Start embedding actionable device signals in minutes, with our simple API integration.

How to Use Device Detection?

User Agent Parsing and Device Identification

Identify key device characteristics in seconds, flagging suspicious setups to strengthen authentication.

  • Instant retrieval of user agent string
  • Accurate device identification
  • Browser and OS information extraction

Screen Analysis

Retrieve rich, actionable data on the screen characteristics of any device, including mobile phones, laptops, smart TVs and wearables:

  • Accurate screen width and height information
  • Display PPI and colour depth
  • Available for all smart devices

Hardware Information

Access additional device data for enriched customer segmentation, analytics and business intelligence applications.

  • Price segments and release year
  • SIM slots, camera and connectivity capabilities
  • Current retail price of the device

Multiple Lookup Options

Flexible API integration allows you for real-time responses and actionable results.

Unlock digital signals as trust and risk indicators. Silently check phones, emails, IPs, devices and browsers.

What does the API return?

Device signals are collected by the JavaScript agent into a session, then scored with the transaction through the Fraud API. The table below summarizes the key fields you act on.

FieldWhat it tells youHow to use it
sessionDevice fingerprint collected client-side for this visitorPass it with every transaction so repeat devices link together
device.typePhone, tablet, desktop, TV, or wearableFlag logins from an unexpected device class for an account
browser / osParsed browser and operating system from the user agentSpot mismatches, e.g. a Safari user agent on a Windows stack
screenWidth, height, PPI, and colour depthDetect headless or spoofed environments with impossible geometries
emulator / spoofing flagsSigns of emulators, rooted devices, or tampered fingerprintsStep up or block high-value actions when these fire
hardwareRelease year, price segment, SIM slots, connectivity (cellular generation, VoLTE)Segment users and sanity-check implausible hardware claims

Try it: example request

Score a transaction with its device session attached. Copy, paste, and replace YOUR_API_KEY and the session value from the JavaScript agent:

curl -X POST "https://api.ambriel.io/v1/transactions/" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "transactionId": "ORDER123",
    "transactionType": "order",
    "actionType": "purchase",
    "session": "SESSION_FROM_JS_AGENT",
    "ip": "8.8.8.8"
  }'

Collect the session first

The session value comes from the JavaScript agent running on your page. Without it, device fingerprinting has nothing to link — embed the agent before scoring device-sensitive actions.

How to interpret Device Detection results?