The Enterprise APIs are built to ensure the fastest recognition speeds (capable of millions of detections per second, per server) while providing best-in-class device detection and comprehensive device properties.
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 knowledge.
Skip to:
Java
Node.js
PHP
.NET
Python
Golang
C / C++ / NGINX / Apache / Golang wrapper
Read about our API performance here.
All documentation is bundled in the API package and also available online.
Note: The latest version of DeviceAtlas Client-side Component is now available for download. For more information about Client-side properties and how they are obtained, please see the Dynamic Data page and Client-side Component Generator.
Java
- The Java package contains the following:
- Device Detection API
- Full support for Client Hints
- Documentation (also available online)
- Sample applications
- Requires Java 8 or higher
- Easily used under a web container like Tomcat or GlassFish.
Install with Maven
1. Once per machine, save your licence key in ~/.m2/settings.xml, as both username and password:
<settings>
<servers>
<server>
<id>deviceatlas</id>
<username>YOUR_LICENCE_KEY</username>
<password>YOUR_LICENCE_KEY</password>
</server>
</servers>
</settings>2. In your project, add the DeviceAtlas repository and the API to pom.xml:
<repositories>
<repository>
<id>deviceatlas</id>
<url>https://java-api.deviceatlas.com/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.deviceatlas</groupId>
<artifactId>deviceatlas-enterprise-java</artifactId>
<version>3.5.1</version>
</dependency>
<!-- Optional: DeviceApiWeb / CarrierApiWeb for servlet requests -->
<dependency>
<groupId>com.deviceatlas</groupId>
<artifactId>deviceatlas-enterprise-java-web</artifactId>
<version>3.5.1</version>
</dependency>
</dependencies>Install with Gradle
1. Once per machine, save your licence key in ~/.gradle/gradle.properties:
deviceatlasUsername=YOUR_LICENCE_KEY
deviceatlasPassword=YOUR_LICENCE_KEY2. In your project, add the DeviceAtlas repository and the API to build.gradle:
repositories {
maven {
name = 'deviceatlas'
url = 'https://java-api.deviceatlas.com/'
credentials(PasswordCredentials)
}
}
dependencies {
implementation 'com.deviceatlas:deviceatlas-enterprise-java:3.5.1'
// Optional: DeviceApiWeb / CarrierApiWeb for servlet requests
implementation 'com.deviceatlas:deviceatlas-enterprise-java-web:3.5.1'
}Or, with the Kotlin DSL, to build.gradle.kts:
repositories {
maven {
name = "deviceatlas"
url = uri("https://java-api.deviceatlas.com/")
credentials(PasswordCredentials::class)
}
}
dependencies {
implementation("com.deviceatlas:deviceatlas-enterprise-java:3.5.1")
// Optional: DeviceApiWeb / CarrierApiWeb for servlet requests
implementation("com.deviceatlas:deviceatlas-enterprise-java-web:3.5.1")
}Node.js
- The Node.js package contains the following:
- Device Detection API
- Documentation (also available online)
- Sample applications and code
Install with npm
1. Once per machine, save your licence key for the DeviceAtlas repository, as both username and password (run in bash, zsh or PowerShell):
npm config set //node-api.deviceatlas.com/:_auth $(node -p "Buffer.from('YOUR_LICENCE_KEY:YOUR_LICENCE_KEY').toString('base64')")This saves the key in your user ~/.npmrc (%USERPROFILE%\.npmrc on Windows)
2. In your project, install the API:
npm install https://node-api.deviceatlas.com/deviceatlas-enterprise-nodejs/deviceatlas-deviceapi-3.2.1.tgzPHP
- The PHP package contains the following:
- Device Detection and Carrier Identification APIs
- Documentation (ApiDocs also available online)
- Sample applications and code
- Automatic download and reload of data file.
- The API relies on the native JSON functions available in
PHP 7 (and later) and is not supported on earlier versions.
.NET / .NET Core / .NET Framework
- The .NET API contains the following:
- Device Detection and Carrier Identification APIs (DLL files)
- .NET Core support for Device and Carrier Identification APIs (DLL files)
- Documentation (ApiDocs also available online)
- Sample ASP.NET-based and .NET Core applications and code
- Automatic download and reload of data file.
- It can be deployed easily into a standard .NET core and .NET Framework environment,
such as IIS v6 on Microsoft Windows XP or Server 2003.
Python
- The Python API package contains the following:
- Device Detection and Carrier Identification APIs
- Sample files and code
- Extra Tools: Client-side Component.
- Python v3.6 or higher and the standard simplejson library are required.
- Documentation available online.
Install with pip
Add your licence key to ~/.netrc (%USERPROFILE%\_netrc on Windows), as both login and password:
machine python-api.deviceatlas.com
login YOUR_LICENCE_KEY
password YOUR_LICENCE_KEYThen install the API:
pip install https://python-api.deviceatlas.com/deviceatlas-enterprise-python/deviceatlas_enterprise-3.2.1-py3-none-any.whlGolang
- The Go API package contains the following:
- Device Detection and Carrier Identification APIs
- Sample files and code
- Extra Tools: Client-side Component.
- Documentation available online.
Install with go get
Add your licence key to ~/.netrc (%USERPROFILE%\_netrc on Windows), as both login and password:
machine go-api.deviceatlas.com
login YOUR_LICENCE_KEY
password YOUR_LICENCE_KEYMark the module as private. (if GOPRIVATE is already set, add the host to the existing comma-separated list instead):
go env -w GOPRIVATE=go-api.deviceatlas.comIn your project, install the API (run go mod init <module-name> first if the project has no go.mod):
go get go-api.deviceatlas.com/deviceatlas-enterprise-go/v3@v3.3.0Then import it in your code:
import "go-api.deviceatlas.com/deviceatlas-enterprise-go/v3/device"C / C++ / NGINX / Apache / Golang wrapper
- Native C API (Device Identification).
- NGINX module for C API
- Apache module for C API
- C++ wrapper
- Golang wrapper
- Best performance, small footprint and robust.
- Lowest memory footprint of all APIs.
- Documentation available online.
or NGINX module.
C / NGINX Plus
- Binary install packages for NGINX Plus.
- Very easy to use and maintain.
or NGINX Plus module.