UniFi Device Search tool – README

UniFi Device Search tool

Are you managing multiple sites on one or more UniFi controllers and have you ever spent too much time searching for a specific device? Or did you ever attempt to export the details and serial numbers of the devices you manage to an Excel sheet? That’s where our UniFi device search tool comes in handy and saves you time.

The UniFi Device Search tool was specifically developed to quickly find a single UniFi device, or a group of devices, across all sites on a UniFi controller by using multiple filters and a search option. The results can quickly be exported to CSV and Excel.

This tool leverages Ubiquiti’s UniFi Controller API and is written in PHP, JavaScript, and the Bootstrap CSS framework.

Please keep the following in mind:

  • currently, versions 4.x.x and 5.x.x of the UniFi Controller software are supported (version 5.10.17 has been confirmed to work)
  • we are looking to continuously add/improve functionality and usability of this tool so suggestions/comments are very welcome. Please email us (info@artofwifi.net) or ping us on the Ubiquiti Community forums using @slooffmaster to share your ideas/questions.
  • please read the Security Notice below before installing this tool!


The UniFi Device Search tool offers the following features:

  • quickly find a single UniFi device or a group of UniFi devices, across all sites on a UniFi controller by using multiple filters and the search option
  • results can quickly be exported to CSV and Excel
  • toggle column visibility
  • reset all filters and search strings with a single button click
  • easily switch between controllers that are set up in your configuration file
  • switch between default Bootstrap theme and the Bootswatch themes
  • responsive UI which allows the tool to work well on mobile devices as well as large screens
  • very easy setup with minimal dependencies
  • debug mode to troubleshoot cURL connections (set $debug to true in the config file to enable debug mode)


  • a web server with PHP and cURL modules installed (tested on apache2 with PHP Version 7.2.15 and cURL 7.58.0)
  • network connectivity between this web server and the server (and port, usually 8443) where the UniFi controller is running


Installation of this tool is quite straightforward. Simply download the zip file and unzip it in your directory of choice somewhere in the folder structure of your web server, then follow the configuration steps below.


  • credentials for access to the UniFi Controller API need to be configured in the file named config.template.php which should be copied/renamed to config.php before using the UniFi Device Search tool
  • you can store multiple controller configurations in the config.php file
  • please refer to the comments in the config.template.php file for further instructions

after following these steps, you can open the tool in your web browser of choice (assuming you installed it in the root folder of your web server as suggested above) by going to this URL: http://<server IP address or FQDN>/<folder where you installed the tool>/


Included libraries:

  • Bootstrap (version 3.3.7) http://getbootstrap.com
  • Font-awesome (version 4.7.0) https://fortawesome.github.io/Font-Awesome
  • jQuery (version 3.2.1) https://jquery.com
  • jQuery Datatables (1.10.16) https://datatables.net/
  • Yet Another DataTables Column Filter, yadcf (0.9.4.beta.16) https://github.com/vedmack/yadcf
  • JSZip (3.1.3) http://stuartk.com/jszip
  • lodash (4.17.11) http://lodash.com
  • nanobar (0.4.2) https://github.com/jacoborus/nanobar
  • UniFi Controller API client class (1.1.40) https://github.com/Art-of-WiFi/UniFi-API-client

Security notice

The use of this tool is not secured in any way! Make sure to prevent unauthorised access to it!