MobileESP API

The following methods are consistent across the currently supported platforms: PHP, Java ASP.NET, and Python.

New! Demo the PHP API using your device.

GLOBAL INFO

DETECTION METHOD RETURN VALUES

All DetectXXX() methods return a boolean or equivalent.

DETECTION METHODS: Platforms and OSes

DETECTION METHODS: Classes of Devices

These methods detect broad classes of mobile devices, excluding the Apple iPad. However, for developing mobile-optimized web design, we recommend using the Device Tier methods.

DETECTION METHODS: Device Tiers

These methods group mobile phones into three broad tiers based on the capabilities of their browsers.

To best use the device tier system, you might optimize your device detection logic like this: