FORGOT YOUR DETAILS?

JavaScript device detection API

Device detection lets you discover the user's type of device, OS, screensize, and more. This can be done with just one line of simple Javascript code. Try for free now!

Device detection API

Personalise your website based on the type of device of your visitor.

After easy integration the Device detection API delivers the results in JSON format.

The Device Detection API works great for small projects and large scale entrerprise projects.

api icon

Try the Device Detection API and receive 1000 API calls for free.

Try the device detection API for free!

1000 FREE API CALLS

Device detection features

Using the simple implementation extensive information about the device of your visitor is available to you. Below are some of the most important features outlined.

Device type detection


  • Detect the type of device of the user  
  • Identify the brand of the device
  • Even discover the name of the device  
  • EXAMPLE: mobile – Apple – iPhone XS

OS detection


  • Detect the operating system of the user
  • Identify the name of the OS
  • Even discover the version of the OS
  • EXAMPLE: macOS Mojave 10.14

Screen detection


  • Information about the screen dimensions
  • Detect the screen height and width
  • Even detect the screen ratio
  • EXAMPLE: 900px * 600px – 2x

Browser detection


  • Detect the browser information
  • Get information about the browser name
  • Detect the version of the browser
  • EXAMPLE: Safari 12.0.1

Touchscreen detection


  • Detect whether the device has touch
  • Use this to optimize your UX
  • EXAMPLE: Touchscreen: TRUE

GPU detection


  • Detect information about the graphics
  • Discover the GPU type and brand
  • EXAMPLE: Intel(R) Iris(TM) Graphics 6100

Try the device detection API for free!

1000 FREE API CALLS

Code 

There are several implementations available. Choose the best type for your application. Once implemented the variables can be used to identify information about the device of visitors on your website.  

IMPLEMENTATION

Add the following code between your <head> tags.

<script src="https://theapicompany.com/deviceAPI.js?id=XXX"></script>


Note: the ID is used for idenfication and not for authorization. You will receive the unique ID in your email after your order is complete or you enlisted to the trial!

VARIABLES
DEVICE TYPE
var devicetype = deviceAPI.deviceType; //mobile var devicebrand = deviceAPI.deviceBrand; //Apple var devicename = deviceAPI.deviceName; //iPhone XS
SCREEN
var screenwidth = deviceAPI.screenWidth; //800 var screenheight = deviceAPI.screenHeight; //1600 var screenratio = deviceAPI.screeenRatio; //2
GPU
var gpu = deviceAPI.GPU; //Apple GPU
BROWSER
var browsername = deviceAPI.browserName; //Safari var br_version = deviceAPI.browserVersion; //12.0.1
OPERATING SYSTEM
var osname = deviceAPI.osName; //MAC OS X var osversion = deviceAPI.osVersion; //10.14.1
TOUCHSCREEN
var touchscreen = deviceAPI.touchScreen; //TRUE
IMPLEMENTATION

Add the following code between your <head> tags.

<script async src="https://theapicompany.com/deviceAPI2.js?id=XXX"></script>


Note: the ID is used for idenfication and not for authorization. You will receive the unique ID in your email after your order is complete or you enlisted to the trial!

VARIABLES

Create a callback function. Use the following variables inside this function:

function deviceAPIcallback(result){ // do stuff here - use result. alert(result.deviceType); //mobile alert(result.deviceBrand); //Apple alert(result.deviceName); //iPhone XS alert(result.screenWidth); //800 alert(result.screenHeight); //1600 alert(result.screenRatio); //2 alert(result.GPU); //Apple GPU alert(result.browserName); //Safari alert(result.browserVersion); //12.0.1 alert(result.osName); // MAC OS X alert(result.touchScreen); //TRUE };

Coming soon!

Some of our clients

Pick your plan

BASIC PLAN

$3.99per month

10K API Calls
  • Best for small websites!
Calls/month10.000
Device type detection
OS detection
Screen detection
Browser detection
Touchscreen detection
GPU detection
MEDIUM PLAN

$9.99per month

1M API Calls
  • Best for most companies!
Calls/month1.000.000
Device type detection
OS detection
Screen detection
Browser detection
Touchscreen detection
GPU detection

PRO PLAN

$59.99per month

10M API Calls
  • Best for enterprises!
Calls/month10.000.000
Device type detection
OS detection
Screen detection
Browser detection
Touchscreen detection
GPU detection

Contact us

Find more information on the blog. If you have any questions or remarks let us know!

TOP