---
title: "Get Max People/Vehicle Counts"
method: GET
path: "/cameras/v1/analytics/max_object_counts"
tags: ["Analytics"]
---

# Get Max People/Vehicle Counts

`GET /cameras/v1/analytics/max_object_counts`

## Request

- Base URL: `https://api.verkada.com`
- URL: `https://api.verkada.com/cameras/v1/analytics/max_object_counts`
- Auth: one of:
  - API key in header `x-verkada-auth`
  - API key in header `x-api-key`

Returns the max count of people and vehicles within a specified time range.

## Query parameters

- `camera_id` string, required: The unique identifier of the camera.
- `start_time` integer: The start of the time range for requested counts. Formatted as a Unix timestamp in seconds. Default value is the current time. If only providing a start time, the same value will be used for <code>end_time</code>
- `end_time` integer: The end of the time range for requested counts. Formatted as a Unix timestamp in seconds. It can only be used if <code>start_time</code> is also provided
- `search_zones` array[]: Zones to search Formatted as coordinates ranging from <code>[0,0]</code> to <code>[9,9]</code> e.g., <code>[[3,3],[3,4],[4,3],[4,4]]</code>
  - integer[]

## Response `200`

OK

- MaxObjectCountsResponseV1
  - `people_count` integer: The number of people detected.
  - `vehicle_count` integer: The number of vehicle detected.

---

[API](https://skmtc.dev/verkada/apis/camera-api.md) - [All operations](https://skmtc.dev/verkada/apis/camera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verkada/apis/camera-api/revisions/26cbfa5870e4?raw)
