Agent DVR is a cross-platform video surveillance application by iSpyConnect. It supports IP cameras, ONVIF devices, RTSP streams, USB cameras, and audio devices. Free for private local use; remote access, cloud storage, mobile apps, and business use require a subscription from $7.95/month. Runs on Windows 10+, macOS 11+, Linux (glibc 2.28+: Ubuntu 20.04+, Debian 10+, Fedora 29+, Arch), Docker, and Raspberry Pi 4+. Originally released as iSpy in 2007, rebuilt as Agent DVR in January 2022. 2M+ users worldwide.
Download Agent DVR · Features · Documentation · Pricing
This repository contains the HTTP API reference for Agent DVR. The API allows you to control Agent DVR programmatically — manage cameras and microphones, trigger recordings, arm and disarm, retrieve snapshots and video clips, read the alert log, and integrate with third-party systems.
By default Agent DVR runs at:
http://localhost:8090
All API endpoints are relative to this base. Change the host and port to suit your server.
Every call is a plain HTTP request, nearly all of them GET with query string parameters:
| Path | What it is |
|---|---|
/command/<name> |
Commands: do something now, change a setting, or read status |
/q/<name> |
Queries and the newer JSON calls. A few take a JSON body with POST |
/<name>.jpg, .mjpg, .mp4, .cgi ... |
Media: images, live and recorded video, audio |
Most calls act on a device, named by ot (object type: 1 = microphone, 2 = camera) and oid (the number in front of the device's name when you edit it in the web UI).
curl "http://localhost:8090/command/record?ot=2&oid=1"
{"status":"ok"}
Commands answer in JSON with HTTP status 200, also when they fail: {"status":"ok"}, or {"error":"Device not found"}.
By default, calls from the local network need no credentials. Switch on Protect API in Server Settings to require them; calls from outside the local network always need them. Credentials are a user account on the server, sent with HTTP Basic authentication:
curl -u admin:password "http://localhost:8090/command/getStatus"
| Endpoint | Description |
|---|---|
GET /command/getStatus |
Server status: armed, version, device counts |
GET /command/getObjects |
List every camera and microphone with its id and state |
GET /command/arm, /command/disarm |
Arm or disarm the system |
GET /command/switchOn?ot=2&oid=1 |
Switch a device on (switchOff for off) |
GET /command/record?ot=2&oid=1 |
Start recording (recordStop to stop) |
GET /command/alert?ot=2&oid=1 |
Raise an alert on a device |
GET /grab.jpg?oid=1 |
Live image from a camera |
GET /video.mjpg?oids=1,2 |
Live video as an MJPEG stream |
POST /q/files-window |
List recordings, a page at a time |
GET /q/getalerts |
The alert log |
The reference groups the calls by what they do: server, arming and profiles, devices, schedule, recording, detection and alerts, AI, actions and tasks, PTZ, talk, live video and audio, recordings and photos, the alert log, FTP and cloud uploads, RTMP streaming, assistant rules and analytics.
Full endpoint reference with parameters, examples and response schemas: ispysoftware.github.io/Agent_API
- Home Assistant — native integration, no API key required: HACS Agent DVR integration
- REST clients — any HTTP client works; the API returns JSON
- MQTT — Agent DVR can publish events to an MQTT broker for integration with home automation systems
Agent DVR must be running locally or remotely to use the API. Download Agent DVR to get started.