# YouTube: List a channel's videos

`youtube/videos/list` · version 1.0.0 · pilot · 1 credits a call

A YouTube channel's videos, shorts or live streams, page after page, newest first, most viewed or oldest, as its tab lists them.

Categories: Social media

## When to use

You need what a YouTube channel has published: its videos, its shorts or its live streams (past, live now and scheduled), from the newest, the most viewed or the oldest, page after page to the first. Name the channel as you have it: its id (UC...), its handle (@name) or the address of any of its pages. Each video comes as its card shows it: title, link, length, image, views and age as YouTube writes them ("73K views", "2 days ago"), whether it is live or scheduled. Follow `next` for the following page. For the channel itself (subscribers, description, links), use youtube/channels/get; for one video whole (its exact date, likes, description), youtube/videos/get.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "youtube", "operation": "videos/list", "options": {"channel": "@ynteractiveAI"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 30, "has_more": true, "next": {"source": "youtube", "operation": "videos/list", "options": {...}},
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path: inside an object with a dot (`animated_thumbnail.url`), in each item of a list with `[]` (`thumbnails[].url`, or with a dot: `thumbnails.url`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `channel` | string | yes |  | The channel: its id (UC followed by 22 letters, digits, - or _), its handle (@name) or the address of any of its pages (https://www.youtube.com/@name, /channel/UC..., /c/name, /user/name, or a tab's address). A handle or an address is first resolved to the channel's id, as YouTube's app follows a link: no extra credit. |
| `tab` | `videos`, `shorts`, `live` |  | `"videos"` | The channel's tab to list: its videos, its shorts, or its live streams (those past, live now and scheduled). A channel without the tab (no shorts, never live) gives an empty page. |
| `sort` | `latest`, `popular`, `oldest` |  | `"latest"` | The tab's order, as its chips above the list say it: the newest first, the most viewed first, or the oldest first. Another order than latest is the chip's click, a second call to YouTube for the same credit. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the list it was given with (otherwise `invalid_cursor`). |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"video"` |  |
| `id` | string | The video's id on YouTube, the same in all its addresses: youtube/videos/get takes it. |
| `position` | integer | The video's rank in the list, from 1, going on from page to page. |
| `url` | string | The video's page: its watch page, or a short's own page (/shorts/...). |
| `title` | string | null | The title, as the channel wrote it. |
| `is_short` | boolean | Whether it is a short (the Shorts tab). |
| `live_status` | `live`, `upcoming`, `ended`, null | For a live stream: live now, upcoming (scheduled, or a premiere to come), or ended (streamed). Null for a video that was never live. |
| `views` | integer | null | The views, as the list writes them: exact up to 999, rounded above ("73K views" is 73000, "1.2M views" is 1200000). youtube/videos/get gives them exact. |
| `views_text` | string | null | The views as YouTube writes them ("73K views", "1 view"). |
| `watching` | integer | null | For a live stream on now: how many are watching it ("245 watching"). |
| `waiting` | integer | null | For a scheduled live stream or premiere: how many are waiting for it ("6 waiting"). |
| `published_text` | string | null | When it was published, as the list writes it for an American visitor, relative to the day it is read: "7 days ago", "Streamed 2 days ago". Null for shorts, whose cards say none; youtube/videos/get gives the date. |
| `scheduled_text` | string | null | For a scheduled live stream or premiere: when it starts, as the list writes it ("Scheduled for 12/7/26, 12:30 PM"). |
| `duration_seconds` | integer | null | The length in seconds. Null for shorts and for streams live or to come. |
| `duration_text` | string | null | The length as the card writes it ("9:17", "1:51:18"). |
| `labels` | array of string | Any other words the card writes on the video or under it (Members only, New...), as written. |
| `thumbnails` | array | The video's image in every size the list gives, smallest first; for a short, its first frame at full size last (1080x1920). |
| `thumbnails[].url` | string |  |
| `thumbnails[].width` | integer | null |  |
| `thumbnails[].height` | integer | null |  |
| `animated_thumbnail` | object | null | The few seconds the card plays under the pointer, as an animated image (webp). |
| `animated_thumbnail.url` | string |  |
| `animated_thumbnail.width` | integer | null |  |
| `animated_thumbnail.height` | integer | null |  |
| `channel` | object | The channel the list is of. |
| `channel.id` | string | The channel's id (UC...): youtube/channels/get takes it. |
| `channel.title` | string | null | The channel's name. |
| `channel.handle` | string | null | Its handle (@name). |
| `channel.url` | string | The channel's page, by its id. |
| `ids` | object |  |
| `ids.video_id` | string |  |
| `source_url` | string | The tab's page on youtube.com, as the channel was named. |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "object": "video",
  "id": "Qx7aB2cD9eF",
  "position": 1,
  "url": "https://www.youtube.com/watch?v=Qx7aB2cD9eF",
  "title": "Sourdough for beginners: the whole bake, start to finish",
  "is_short": false,
  "live_status": null,
  "views": 18000,
  "views_text": "18K views",
  "watching": null,
  "waiting": null,
  "published_text": "3 days ago",
  "scheduled_text": null,
  "duration_seconds": 1288,
  "duration_text": "21:28",
  "labels": [],
  "thumbnails": [
    {
      "url": "https://i.ytimg.com/vi/Qx7aB2cD9eF/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==",
      "width": 360,
      "height": 202
    },
    {
      "url": "https://i.ytimg.com/vi/Qx7aB2cD9eF/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==",
      "width": 720,
      "height": 404
    }
  ],
  "animated_thumbnail": {
    "url": "https://i.ytimg.com/an_webp/Qx7aB2cD9eF/mqdefault_6s.webp?du=3000",
    "width": 320,
    "height": 180
  },
  "channel": {
    "id": "UCa1B2c3D4e5F6g7H8i9J0kL",
    "title": "Acme Kitchen",
    "handle": "@acmekitchen",
    "url": "https://www.youtube.com/channel/UCa1B2c3D4e5F6g7H8i9J0kL"
  },
  "ids": {
    "video_id": "Qx7aB2cD9eF"
  },
  "source_url": "https://www.youtube.com/@acmekitchen/videos",
  "observed_at": "2026-12-03T12:00:00Z"
}
```

## Price

1 credit a call, one page of up to 30 videos or live streams, or 48 shorts. A handle or an address costs no more than an id, and another order than latest no more than the latest. An empty page and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `ip_blocked` | 503 | yes | YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free. |
| `invalid_channel` | 422 | no | `channel` is a YouTube channel: its id (UCr9pRlsueSAVJIFmMntRv0A), its handle (@ynteractiveAI) or the address of its page (https://www.youtube.com/@ynteractiveAI). |
| `invalid_input` | 422 | no | `tab` is videos, shorts or live; `sort` is latest, popular or oldest. |
| `channel_not_found` | 404 | no | YouTube has no such channel: no channel at this handle or address, or an id YouTube says does not exist (or a channel it closed). Not charged. |
| `site_unavailable` | 503 | yes | YouTube did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | YouTube answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.0** (2026-12-03): First version: a channel's videos, shorts or live streams, by its id, handle or address, newest first, most viewed or oldest, page after page; each video as its card shows it, its views and age as YouTube writes them, live, scheduled or streamed.

Schema: https://api.lobstr.io/v2/catalog/youtube/videos/list · All operations: https://api.lobstr.io/v2/catalog.md
