---
title: "Find next frame with valid video file on disk"
method: GET
path: "/frames/next-valid"
tags: ["Frames"]
---

# Find next frame with valid video file on disk

`GET /frames/next-valid`

Allows the frontend to skip directly to a valid frame instead of trying each one when frames fail to load.

## Query parameters

- `frame_id` integer, required
- `direction` string
- `limit` integer

## Response `200`

Next valid frame found

- NextValidFrameResponse
  - `frame_id` integer, required
  - `timestamp` string, date-time, required
  - `skipped_count` integer, required

## Other responses

- `404` — No valid frames found

## Changes

- **2026-02-16** `e143bf8d73bc` — 1 info
  - endpoint added
- **2026-02-11** `2825740bcf63` — 1 breaking
  - api path removed without deprecation
- **2026-02-11** `61c0a2f34556` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/screenpipe/apis/screenpipe-api/changes/frames/next-valid/get.md)

---

[API](https://skmtc.dev/screenpipe/apis/screenpipe-api.md) · [All operations](https://skmtc.dev/screenpipe/apis/screenpipe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/screenpipe/screenpipe-api/revisions/e143bf8d73bc/schema)
