Display the latest snapshot
Fetch the most recent image from a construction camera and render it.
UsesDash API
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
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=truereturnsimage/jpegdirectly — point animgtag straight at it.- Otherwise you get JSON, where
datais adata:image/jpeg;base64,…URI andcreated_atis the capture time in the camera's timezone. include_image=falseomits 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
- Browse recordings on a timeline — reach back through the archive.
- Generate or retrieve a timelapse — compress weeks into seconds.
- Run an AI analysis — detect what is in frame.