You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
You are viewing the article in preview mode. It is not live at the moment.
Home > Software Applications > DW Spectrum IPVMS > API > API Tip: Finding a Camera ID
API Tip: Finding a Camera ID
print icon

API Tip: Finding a camera Id

------------------------- 
Affected Roles: Administrator
Related Digital Watchdog VMS Apps: DW Spectrum Server
Complexity: Medium

Software Version: v5 and higher

Last Edit: August 21, 2024
------------------------- 

 

API Tip: Finding a Camera ID

 

The DW Spectrum Server API allows developers to interact extensively with the DW Spectrum Server and can be found in the DW Spectrum Web Admin Interface. In this guide, we'll show you how to find the camera Id - useful for anytime you want to utilize live or recorded video from a camera or cameras in your DW Spectrum System.

 

How to find the Camera ID:

Run the DW Spectrum Client software:

  • Right-click on a camera and select Camera Settings
  • Under General, select "more info" to display the Camera ID

 

Get cameraId using an API request:
 

  1. In your browser type the following HTTP request:
    (Spectrum 5.1) https://<server_ip>:<server_port>/rest/v2/devices?_with=name%2Cmac%2Cid
    (Spectrum 6.0) https://<server_ip>:<server_port>/rest/v3/devices?_with=name%2Cmac%2Cid

    server_ip = the IP address or URL of the DW Spectrum Server you are requesting this information from. 
    server_port = the port your System is using (typically 7001)

    For example, if you were placing an API call to our DW Spectrum Demo System the call would be: 
    http://47.181.136.174:7001/rest/v2/devices?_with=name%2Cmac%2Cid

    * Important note: when making an API call you can use any Server in the System.

     
  2. You should now see something similar to the following screenshot:


     
  3. Search the page (CTRL + F) and enter the name or MAC address of the camera (using dashes instead of colons)
scroll to top icon