Resources

Getting Started - DeviceAtlas for Web

Resources

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.

1) Download Enterprise APIs

The APIs are available in a range of languages to provide easy integration into your environment, so whatever your web server technology, you should be able to benefit from DeviceAtlas.

2) Download Device Data File

For the Enterprise solution, device data is packaged in a JSON format, which is highly compressed to reduce server footprint, and is optimized for speed of search and retrieval. It can either be downloaded manually or fetched with an automated script.

$ curl https://deviceatlas.com/getJSON.php?licencekey=YOUR-LICENCE-KEY&format=zip&index=web
$ curl https://deviceatlas.com/getJSON.php?licencekey=YOUR-LICENCE-KEY&format=zip&index=web&md5=1

Refer to our Device Data (JSON) reference documentation to know more about DeviceAtlas data downloads.

3) Using Device Detection API

DeviceApi deviceApi = new DeviceApi();
deviceApi.loadDataFromFile("/path/to/DeviceAtlas.json");
Map<String, String> headers = new HashMap<String, String>();
headers.put("HEADER NAME", "HEADER VALUE");
Properties properties = deviceApi.getProperties(headers);
String userAgent = "THE USER AGENT VALUE";
Properties properties = deviceApi.getProperties(userAgent);
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.

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.