What features are available:
Currently, it is possible to detect 13 different device characteristics. However, we are constantly updating our API to detect even more information. Until this moment, the following features can be detected:
- The type of device
- Device brand
- Device name
- Screen height
- Screen width
- Pixel density / Screen Ratio
- Browser name
- Browser version
- OS name
- The version of the OS
- Touchscreen capabilities
Let us know if you have more features you want to be added to this list.
Alternatively, the asynchronous is available to improve efficiency and reduce loading times. Just copy-paste the following code in the <head> tags of your website.
<script async src=“https://theapicompany.com/deviceAPI2.js?id=XXX”></script>
Once included several variables can be accessed to detect the device information of the user. These variables are described in the following paragraph.
Device detection variables
Once included in your HTML code you can access the features above. Each piece of information is stored in a variable. These variables have the following names:
|Feature||Variable name||Example return|
|Device name||deviceAPI.deviceName||iPhone XS|
|Pixel density / Screen Ratio||deviceAPI.screenRatio||2|
|OS name||deviceAPI.osName||OS X Yosemite 10.10|
As you see it is very easy to implement the device detection API. Check our homepage to see how you can implement it for your website!
Conclusion and future blog posts