Follow these simple steps to have the DeviceAtlas Enterprise API working locally within a few minutes. If you do not have a licence, please contact us to request an evaluation.
Device Identification API
Java
Node.JS
PHP
.NET
Python
C
C++
Go
Nginx
HaProxy
Apache
IIS
Download Java DeviceAtlas Enterprise API
Create an API instance and load the data file
DeviceApi deviceApi = new DeviceApi();
deviceApi.downloadAndLoadDataFile("https://deviceatlas.com/getJSON?licencekey=YOUR-LICENCE-KEY&index=web&format=gzip");
Detect device properties by HTTP headers
Map<String, String> headers = new HashMap<String, String>();
headers.put("HEADER NAME", "HEADER VALUE");
Properties properties = deviceApi.getProperties(headers);
Detect device properties by user-agent string
String userAgent = "THE USER AGENT VALUE";
Properties properties = deviceApi.getProperties(userAgent);
Detect if mobile device
boolean mobileDevice = properties.contains("mobileDevice", true);
int displayWidth = properties.containsKey("displayWidth")? properties.get("displayWidth").asInteger(): 100;
String vendor = properties.containsKey("vendor")? properties.get("vendor").asString(): "";
boolean useBiggerIcons = properties.contains("touchScreen", true);
You can find all information related to the Java DeviceAtlas Enterprise API here.
3. Data File Options
Default data file only has 21 out of 206 properties selected. Please visit Data File Options page to customize which device properties are to be included in data file.
4. Client-side Component
The Client-side Component is needed for granular identification of iOS devices, as well as for other dynamic properties. Please visit DeviceAtlas Client-side Component.
Questions?
If you need assistance, contact us at support@deviceatlas.com for technical support directly from R&D. For business questions and access to an evaluation licence, contact sales.