Skip to content

get_camera

Fetch a single camera’s full record by ID.

Side effects: None (read-only).

Returns the full camera record (same shape as one entry from list_cameras) including current recording mode, motion sensitivity, privacy-mask state, and the most recent lastMotion timestamp.

get_camera(camera_id="65f...", controller="default")
Parameter Type Required Default Description
camera_id string yes The Protect id (or _id) from list_cameras.
controller string no “default” Name of the UniFi controller to target. Defaults to "default".