---
title: "Fetch runs by camera"
method: GET
path: "/v1/industrial/vision/runs/{camera_id}"
tags: ["Industrial"]
---

# Fetch runs by camera

`GET /v1/industrial/vision/runs/{camera_id}`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/v1/industrial/vision/runs/{camera_id}`
- Auth: HTTP bearer

> 🚧 This endpoint is still on our legacy API.

Fetch runs by camera. 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

To use this endpoint, select **Read Industrial** under the Industrial category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

## Path parameters

- `camera_id` integer, required

## Query parameters

- `durationMs` integer, required
- `endMs` integer

## Response `200`

Return runs by cameraId.

- object[]
  - `deviceId` integer
  - `endedAtMs` integer
  - `program` object
    - `id` integer
    - `name` string
  - `reportMetadata` object
    - `itemsPerMinute` number
    - `noReadCount` integer
    - `rejectCount` integer
    - `successCount` integer
  - `startedAtMs` integer

## Other responses

- `default`: Unexpected error.

---

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