Skip to main content

Loitering Detection Configuration

Application Guide

For a complete walkthrough with code examples, see the Loitering Detection application guide.

GetSmartLoiteringConfig

Retrieves loitering detection configuration. Loitering detection triggers an alarm when a person or vehicle remains within a defined zone for longer than a configured time threshold.

FieldValue
Endpoint/GetSmartLoiteringConfig[/channelId]
MethodPOST or GET
ProductsIPC
Channel IDOptional (default 1)

Response

The response returns the loitering detection configuration in the standard <config> XML wrapper, including the detection zone, dwell time threshold, and object filter settings. Query this endpoint against your camera to see the full XML structure for your firmware version.

Notes

  • Loitering detection combines zone-based detection with a time threshold — a target must remain in the zone for the configured duration before an alarm triggers.
  • This is useful for detecting suspicious behavior such as someone lingering near a door, ATM, or restricted area.
  • The corresponding Set command is SetSmartLoiteringConfig using the same XML structure returned by the Get command.
  • Loitering webhook events use smartType value LOITERING (IPC format) or loiterDetection (NVR format).
EndpointPurpose
GetSmartPerimeterConfigIntrusion detection (immediate trigger, no dwell time)
GetSmartAoiEntryConfigRegion entry detection
SetHttpPostConfigConfigure webhook destination for loitering alerts