User guide for version 7.10
Previous versions: 7.9 | 7.8 | 7.7
×

Event media files

This API retrieves media files for selected objects over a specified period. It provides links to photos and videos associated with events, including ADAS and DMS events.

How to get data

Method

GET

Request address

Use the following URL to retrieve data: https://<server_address>/api/api.php?

Request parameters

  • cmd=get_media— command used to retrieve media files
  • agent_id— ID of an object or a comma-separated list of object IDs
  • start— start of the requested period as a Unix timestamp
  • stop— end of the requested period as a Unix timestamp
     

Example request

https://<server_address>/api/api.php?cmd=get_media&agent_id=1234,5678&start=1724623200&stop=1724709600
A successful API response returns information about media files for the selected objects and period, along with links for viewing them. Follow a link to open the image or video associated with the event in your browser.