---
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`

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.net/verkada/apis/api-tokens.md) · [All operations](https://skmtc.net/verkada/apis/api-tokens/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/verkada/api-tokens/revisions/4a79d2d949a6/schema)
