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

# Get People/Vehicle Counts

`GET /cameras/v1/analytics/object_counts`

## Request

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

Returns the 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 an hour ago from the current time.
- `end_time` integer: The end of the time range for requested counts. Formatted as a Unix timestamp in seconds. Default value is the current time.
- `page_token` string: The pagination token used to fetch the next page of results.
- `page_size` integer: The number of items returned in a single response. Default is 100. Max is 200.

## Response `200`

OK

- ObjectCountResponseV1
  - `next_page_token` string: The pagination token used to fetch the next page of results.
  - `object_counts` ObjectCountItem[]: Object counts
    - `detected_time` integer: The time when the target was created. Formatted as a Unix timestamp in seconds.
    - `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)
