Skip to main content

Get latest data for all public cameras

GET 

/api/getCameraDataByLoc

  • Data Format: the camera data is delivered in a compressed format to optimize object size. The data is comprised of two objects, "cams" & "locs", each of which contains attributes "data" & "key". "data" is an array of objects, each corresponding to one camera or location. "key" correlates the abbreviated attributes for these two data types to human-readable values. Cameras are linked to locations via the "lid" (location id) attribute, found on each camera object.
  • Constructing Image Keys: Image keys are constructed using the following information, which can be derived from the "cid" (camera id), and "img" keys. The year/month/day information can be derived from the epoch timestamp embedded in the image filename: https://img.cdn.prod.alertwest.com/data/img/[cid]/[yyyy]/[mm]/[dd]/[img]

Request

Responses

Successful operation

Schema

    code integer

    The status code (1 for success, 0 for failure)

    str string

    The status message

    data

    object

    The camera data

    locs

    object

    data

    object[]

  • Array [

  • id integer

    The location ID

    lat string

    The latitude of the location

    lon string

    The longitude of the location

    st string

    The state code of the location

    lp integer

    Private location true/false

  • ]

  • key object

    A map of location attributes to human-readable keys

    cams

    object

    data

    object[]

  • Array [

  • ato integer

    Auto Target Override (whether the most recent move should display a target on the map)

    p string

    The pan value of the camera in degrees

    t string

    The tilt value of the camera in degrees

    z string

    The zoom value of the camera

    af integer

    Whether auto focus is enabled

    foc string

    The focus value of the camera

    br string

    The brightness value of the camera

    ptz integer

    Whether the camera is PTZ

    id string

    The camera ID

    pv integer

    Whether the camera is private

    lmt string

    The last move time of the camera

    lid integer

    The location ID of the camera

    cn string

    The camera name

    hn string

    The hostname of the camera

    img string

    The image URL of the camera

    off integer

    Whether the camera is offline

    cl integer

    The average execution time of recent requests to the camera

    isp string

    The ISP of the camera

    typ string

    The type of camera

    cc string

    The camera class / manufacturer of the camera

    fov string

    The field of view of the camera

    sp string

    The sponsor of the camera

    co string

    The county of the camera

    st string

    The state of the camera (deprecated - use location)

    pr string

    The provider of the camera

    pl string

    URL of the provider's website

    pi string

    URL of the provider's bar logo

    ps string

    URL of the provider's square logo

    tb integer

    Whether the camera has a guard tour configured

    trg integer

    Whether the camera is currently in touring mode

    tr string

    The name of the camera tour

  • ]

  • key object

    A map of camera attributes to human-readable keys

    err string

    The error message

    rendered string

    Unused/Deprecated

Loading...