EvercamDevelopers

Search

Search guides, documentation and the API reference

Display the latest snapshot

Fetch the most recent image from a construction camera and render it.

The fastest way to see something real from the Evercam platform is to pull the latest image from one of your cameras.

Request the snapshot

GET/v2/cameras/{camera_exid}/recordings/snapshots/latestDash API

Returns the most recent snapshot for a camera.

curl -H "Authorization: Bearer $EVERCAM_TOKEN" \
  "https://media.evercam.io/v2/cameras/$CAMERA_ID/recordings/snapshots/latest"

Two response shapes

This endpoint returns either the raw image or JSON. Two query parameters control which:

  • view=true returns image/jpeg directly — point an img tag straight at it.
  • Otherwise you get JSON, where data is a data:image/jpeg;base64,… URI and created_at is the capture time in the camera's timezone.
  • include_image=false omits the image entirely, which is much cheaper when you only need the timestamp.
{
  "data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ...",
  "created_at": "2026-06-02T15:25:30Z"
}

Render it

Because the JSON response is already a data URI, it drops straight into an image tag with no extra work:

const res = await fetch(url, {
  headers: { Authorization: `Bearer ${token}` },
})
const { data, created_at } = await res.json()

return <img src={data} alt={`Captured ${created_at}`} />

Timestamps are camera-local

created_at is expressed in the camera's own timezone, not UTC and not the caller's. Convert before comparing snapshots across sites.

Next