---
title: "Stats Queue Endpoint"
method: GET
path: "/stats/queue"
tags: ["statistics"]
---

# Stats Queue Endpoint

`GET /stats/queue`

## Request

- Base URL: `https://api.sumvid.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sumvid.app/stats/queue`
- Auth: none declared

Public-safe preview of the live in-flight queue for the /statistics page.

Returns the top `limit` jobs in worker-processing order (running first, then
pending FIFO), each with its position, size, ETA, and display metadata —
but **none** of the identifying fields the admin `/queue` exposes (no
user_id, raw URL, or job_id). `count` is the full queue length so the UI can
show "+ N more". Cached ~10s, so it's near-live without hammering Postgres.

## Query parameters

- `limit` integer

## Response `200`

Successful Response

- QueuePreviewResponse
  - `count` integer, required
  - `queue` QueuePreviewItem[], required
    - `position` integer, required
    - `status` string, required
    - `youtube_video_id` string, required
    - `title` string, nullable
    - `channel` string, nullable
    - `thumbnail_url` string, nullable
    - `duration_seconds` integer, nullable
    - `transcript_chars` integer, nullable
    - `eta_seconds` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sumvid/apis/summarize-vid.md) · [All operations](https://skmtc.dev/sumvid/apis/summarize-vid/llms.txt) · [OpenAPI document](https://skmtc.dev/sumvid/apis/summarize-vid/revisions/c03d66e07deb?raw)
