---
title: "Fetch runs"
method: GET
path: "/v1/industrial/vision/runs"
tags: ["Industrial"]
---

# Fetch runs

`GET /v1/industrial/vision/runs`

## Request

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

> 🚧 This endpoint is still on our legacy API.

Fetch runs. 

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

## Query parameters

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

## Response `200`

Return runs.

- V1VisionRunsResponse
  - `visionRuns` V1VisionRunsResponseVisionRuns[]
    - `deviceId` integer
    - `endedAtMs` integer
    - `programId` integer
    - `reportMetadata` V1VisionRunsResponseReportMetadata: The response includes 4 additional fields that are now deprecated
      - `itemsPerMinute` number: Returns average scanned items per minute. Should be used instead of scanRate.
      - `noReadCount` integer: Returns no read count for the run. Should be used instead of noReadScansCount
      - `rejectCount` integer: Returns reject count for the run. Should be used instead of failedScansCount
      - `successCount` integer: Returns success count for the run. Should be used instead of successfulScansCount
    - `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)
