---
title: "Twitch User Videos API"
method: GET
path: "/v1/twitch/user-videos"
tags: ["Twitch"]
---

# Twitch User Videos API

`GET /v1/twitch/user-videos`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/twitch/user-videos`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Twitch channel VODs — lean rows, video-id cursor, filter/sort, top-level broadcaster{} (flat 2).

Pass a Twitch channel URL or username and get a clean videos[] list (not a profile dump). Each row: id, url, embedUrl, title, createdAt, durationSeconds, views, thumbnail (320x180 — {width}x{height} substituted; thumbnailTemplate kept), animatedPreviewUrl, broadcastType, game (+ gameId/gameSlug/box art), lowercase language. Channel identity is once at the top as broadcaster{id,handle,displayName,url,avatar,followers,isPartner,isAffiliate} — videos[] do not repeat channel{}/broadcaster/broadcasterProfileImage. The same lean row shape is used on profile.recentVideos[]. filterBy=ARCHIVE|HIGHLIGHT|UPLOAD (omit for all types — no default filter; an unset filterBy is omitted, not null). sortBy=TIME|VIEWS. nextCursor is the last video id on the page (stable within the window — not a raw offset). Hard ceiling: first 100 matching videos (windowMax=100); Twitch anonymous GQL rejects after-cursors with IntegrityCheckFailed, so deeper history is not available. Flat 2 credits per call.

Docs: https://captapi.com/apis/twitch-user-videos

## Query parameters

- `url` string, required
- `limit` integer
- `filterBy` string
- `sortBy` string
- `cursor` string
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `handle` string: Channel login for this list (same value as broadcaster.handle).
    - `sortBy` string: Sort by. Example: "TIME".
    - `broadcaster` object
      - `id` string: Id of this broadcaster item.
      - `handle` string: Channel login for this list (same value as broadcaster.handle).
      - `displayName` string: Display name of the account. Canonical across profile endpoints (prefer over name).
      - `url` string: Canonical URL of the item.
      - `avatar` string: Avatar / profile picture URL. Canonical across profile endpoints.
      - `followers` integer: Follower count.
      - `isPartner` boolean: Whether the channel is a platform Partner/partner.
      - `isAffiliate` boolean: Whether the channel is an affiliate.
    - `totalReturned` integer: Number of items returned in this response.
    - `nextCursor` string: Last video id on this page. Pass as cursor for the next page within the first 100 matching videos. Not a raw offset.
    - `hasMore` boolean: Whether more results are available beyond this page. When true, pass nextCursor to fetch the next page.
    - `windowMax` integer: Always 100 — Twitch anonymous GQL only exposes the first 100 matching videos; deeper history is not available.
    - `videos` object[]
      - `platform` string: Platform identifier for this response (matches the endpoint's platform).
      - `id` string: Id of this videos item.
      - `url` string: Canonical URL of the item.
      - `embedUrl` string: Platform embed URL when a real embed id is known. Do not invent from a page/permalink id.
      - `title` string: Title of this videos item.
      - `createdAt` string: Creation date (ISO 8601).
      - `durationSeconds` integer: Length in seconds for this item (full media length, or a segment span when the endpoint documents a start/end).
      - `views` integer: View count when the platform exposes one.
      - `thumbnail` string: VOD thumbnail with {width}x{height} substituted to 320x180. See thumbnailTemplate for the raw template.
      - `thumbnailTemplate` string: Thumbnail template URL.
      - `animatedPreviewUrl` string: Storyboard strip / animated preview image for a VOD.
      - `broadcastType` string: Broadcast type. Example: "ARCHIVE".
      - `game` string: Game or category being streamed.
      - `gameId` string: Twitch game/category id.
      - `gameSlug` string: Twitch game/category slug.
      - `gameBoxArtUrl` string: Twitch category/game box art image URL (usually 144×192).
      - `language` string: BCP-47 lowercase (same as twitch/clip and profile recentVideos).

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

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