{"operation":"videos/list","version":"1.0.0","status":"pilot","title":"List a channel's videos","summary":"A YouTube channel's videos, shorts or live streams, page after page, newest first, most viewed or oldest, as its tab lists them.","use_when":"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.","categories":["Social media"],"icon":"videos","source":"youtube","input":{"type":"object","required":["channel"],"additionalProperties":false,"properties":{"channel":{"type":"string","minLength":1,"maxLength":300,"description":"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.","examples":["@ynteractiveAI","UCr9pRlsueSAVJIFmMntRv0A","https://www.youtube.com/@NASA/streams"]},"tab":{"enum":["videos","shorts","live"],"default":"videos","description":"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":{"enum":["latest","popular","oldest"],"default":"latest","description":"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":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,20000}$","description":"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`)."}}},"pagination":{"style":"cursor","page_size":30,"next":{"channel":"<as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","url","title","is_short","live_status","views","views_text","watching","waiting","published_text","scheduled_text","duration_seconds","duration_text","labels","thumbnails","animated_thumbnail","channel","ids","source_url","observed_at"],"$defs":{"image":{"type":"object","additionalProperties":false,"required":["url","width","height"],"properties":{"url":{"type":"string"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}}}},"properties":{"object":{"const":"video"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{11}$","description":"The video's id on YouTube, the same in all its addresses: youtube/videos/get takes it."},"position":{"type":"integer","minimum":1,"description":"The video's rank in the list, from 1, going on from page to page."},"url":{"type":"string","description":"The video's page: its watch page, or a short's own page (/shorts/...)."},"title":{"type":["string","null"],"description":"The title, as the channel wrote it."},"is_short":{"type":"boolean","description":"Whether it is a short (the Shorts tab)."},"live_status":{"enum":["live","upcoming","ended",null],"description":"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":{"type":["integer","null"],"description":"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":{"type":["string","null"],"description":"The views as YouTube writes them (\"73K views\", \"1 view\")."},"watching":{"type":["integer","null"],"description":"For a live stream on now: how many are watching it (\"245 watching\")."},"waiting":{"type":["integer","null"],"description":"For a scheduled live stream or premiere: how many are waiting for it (\"6 waiting\")."},"published_text":{"type":["string","null"],"description":"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":{"type":["string","null"],"description":"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":{"type":["integer","null"],"description":"The length in seconds. Null for shorts and for streams live or to come."},"duration_text":{"type":["string","null"],"description":"The length as the card writes it (\"9:17\", \"1:51:18\")."},"labels":{"type":"array","items":{"type":"string"},"description":"Any other words the card writes on the video or under it (Members only, New...), as written."},"thumbnails":{"type":"array","items":{"$ref":"#/$defs/image"},"description":"The video's image in every size the list gives, smallest first; for a short, its first frame at full size last (1080x1920)."},"animated_thumbnail":{"oneOf":[{"$ref":"#/$defs/image"},{"type":"null"}],"description":"The few seconds the card plays under the pointer, as an animated image (webp)."},"channel":{"type":"object","additionalProperties":false,"required":["id","title","handle","url"],"description":"The channel the list is of.","properties":{"id":{"type":"string","description":"The channel's id (UC...): youtube/channels/get takes it."},"title":{"type":["string","null"],"description":"The channel's name."},"handle":{"type":["string","null"],"description":"Its handle (@name)."},"url":{"type":"string","description":"The channel's page, by its id."}}},"ids":{"type":"object","additionalProperties":false,"required":["video_id"],"properties":{"video_id":{"type":"string"}}},"source_url":{"type":"string","description":"The tab's page on youtube.com, as the channel was named."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"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.","free":["empty","failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"ip_blocked","status":503,"retryable":true,"retry_after":60,"message":"YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free."},{"code":"invalid_channel","status":422,"detail":true,"message":"`channel` is a YouTube channel: its id (UCr9pRlsueSAVJIFmMntRv0A), its handle (@ynteractiveAI) or the address of its page (https://www.youtube.com/@ynteractiveAI)."},{"code":"invalid_input","status":422,"detail":true,"message":"`tab` is videos, shorts or live; `sort` is latest, popular or oldest."},{"code":"channel_not_found","status":404,"detail":true,"message":"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."},{"code":"site_unavailable","status":503,"retryable":true,"message":"YouTube did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"YouTube answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"channel":"@acmekitchen"},"records":[{"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"},{"object":"video","id":"Lm3nO4pQ5rS","position":2,"url":"https://www.youtube.com/watch?v=Lm3nO4pQ5rS","title":"Five weeknight pastas in 20 minutes","is_short":false,"live_status":null,"views":942,"views_text":"942 views","watching":null,"waiting":null,"published_text":"1 week ago","scheduled_text":null,"duration_seconds":734,"duration_text":"12:14","labels":[],"thumbnails":[{"url":"https://i.ytimg.com/vi/Lm3nO4pQ5rS/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==","width":360,"height":202},{"url":"https://i.ytimg.com/vi/Lm3nO4pQ5rS/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==","width":720,"height":404}],"animated_thumbnail":null,"channel":{"id":"UCa1B2c3D4e5F6g7H8i9J0kL","title":"Acme Kitchen","handle":"@acmekitchen","url":"https://www.youtube.com/channel/UCa1B2c3D4e5F6g7H8i9J0kL"},"ids":{"video_id":"Lm3nO4pQ5rS"},"source_url":"https://www.youtube.com/@acmekitchen/videos","observed_at":"2026-12-03T12:00:00Z"}]},{"request":{"channel":"UCa1B2c3D4e5F6g7H8i9J0kL","tab":"live"},"records":[{"object":"video","id":"Tu6vW7xY8zA","position":1,"url":"https://www.youtube.com/watch?v=Tu6vW7xY8zA","title":"Live: holiday baking, ask us anything","is_short":false,"live_status":"upcoming","views":null,"views_text":null,"watching":null,"waiting":41,"published_text":null,"scheduled_text":"Scheduled for 12/20/26, 11:00 AM","duration_seconds":null,"duration_text":null,"labels":[],"thumbnails":[{"url":"https://i.ytimg.com/vi/Tu6vW7xY8zA/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==","width":360,"height":202}],"animated_thumbnail":null,"channel":{"id":"UCa1B2c3D4e5F6g7H8i9J0kL","title":"Acme Kitchen","handle":"@acmekitchen","url":"https://www.youtube.com/channel/UCa1B2c3D4e5F6g7H8i9J0kL"},"ids":{"video_id":"Tu6vW7xY8zA"},"source_url":"https://www.youtube.com/channel/UCa1B2c3D4e5F6g7H8i9J0kL/streams","observed_at":"2026-12-03T12:00:00Z"}]}],"health":{"canaries":[{"channel":"@ynteractiveAI","min_records":25},{"channel":"UCLA_DiR1FfKNvjuUpBHmylQ","tab":"live","min_records":20}],"required_fields":["id","url","title","thumbnails","channel","ids"],"sparse":{"live_status":"Live streams only: none on most channels' Videos tab.","watching":"A stream live now: on the Live tab, a few at a time.","waiting":"A stream or premiere to come: rare.","scheduled_text":"A stream or premiere to come: rare.","labels":"Members only, New...: none on the pages of 03/12.","animated_thumbnail":"Not given for every video (none for live streams on 03/12).","views":"None for a stream to come or a short.","views_text":"None for a stream to come.","published_text":"None for shorts, nor for streams live or to come.","duration_seconds":"None for shorts, nor for streams live or to come.","duration_text":"None for shorts, nor for streams live or to come."}},"changelog":[{"version":"1.0.0","date":"2026-12-03","notes":"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."}],"object":"operation","id":"youtube/videos/list","site":{"title":"YouTube","domain":"youtube.com","color":"#FF5A4E"}}