获取频道视频 V2/Get channel videos V2
YouTubeapi
About
获取频道视频 V2/Get channel videos V2
Documentation
获取频道视频 V2/Get channel videos V2
[中文]
用途:
- 获取频道视频 V2,支持获取频道视频列表,频道短视频列表,频道直播列表。
参数:
- channel_id: 频道ID或频道名称,如果是频道名称,则需要在前面加上
@符号,例如:@LinusTechTips。 - lang: 视频结果语言代码,默认为
en-US,任何语言代码均可,当提交不支持的语言代码时,默认使用en-US作为语言代码。 - sortBy: 排序方式,默认为
newest,可选值为newest和oldest和mostPopular:- newest: 按照最新排序,默认值。
- oldest: 按照最旧排序。
- mostPopular: 按照最热排序。
- contentType: 内容类型,默认为
videos,可选值为videos和shorts和live:- videos: 视频列表,默认值。
- shorts: 短视频列表。
- live: 直播列表。
- nextToken: 用于继续获取视频的令牌。可选参数,默认值为空,从第一页开始获取。
- 如果获取第一页,则nextToken参数为None。
- 如果获取第二页,则nextToken参数为第一页请求返回的nextToken。
返回:
- 频道视频列表,包含视频ID、标题、缩略图、观看次数、点赞次数、评论数、视频时长等信息。
[English]
Purpose:
- Get channel videos V2, support getting channel video list, channel short video list, channel live list.
Parameters:
- channel_id: Channel ID or channel name, if it is a channel name, add
@symbol in front of it, for example: @LinusTechTips. - lang: Video result language code, default is
en-US, any language code is supported, when submitting unsupported language code, default useen-USas language code. - sortBy: Sort by, default is
newest, optional values arenewestandoldestandmostPopular:- newest: Sort by newest, default value.
- oldest: Sort by oldest.
- mostPopular: Sort by most popular.
- contentType: Content type, default is
videos, optional values arevideos- videos: Video list, default value.
- shorts: Short video list.
- live: Live list.
- nextToken: Token to continue fetching videos. Optional parameter, default value is empty, start from the first page.
- If fetching the first page, the nextToken parameter is None.
- If fetching the second page, the nextToken parameter is the nextToken returned by the first page request.
Returns:
- Channel video list, including video ID, title, thumbnail, view count, like count, comment count, video duration and other information.
[示例/Example]
channel_id = "UCXuqSBlHAE6Xw-yeJA0Tunw" lang = "en-US" sortBy = "newest" contentType = "videos" nextToken = None
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取频道视频 V2/Get channel videos V2
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取频道ID/Get channel IDYouTubeapi从频道URL获取频道ID V2/Get channel ID from URL V2YouTubeapi获取频道信息/Get channel informationYouTubeapi获取频道短视频/Get channel short videosYouTubeapi从频道ID获取频道URL/Get channel URL from channel IDYouTubeapi获取推荐视频/Get related videosYouTubeapi搜索频道/Search channelYouTubeapi搜索视频/Search videoYouTubeapi