{
"success": true,
"data": {
"video_id": "jNQXAC9IVRw",
"language_code": "en",
"requested_language": "en",
"caption_type": "manual",
"title": "Me at the zoo",
"author_name": "jawed",
"author_url": "https://www.youtube.com/channel/UC4QobU6STFB0P71PVoOGeMg",
"thumbnail_url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
"transcript": "All right, so here we are, in front of the elephants...",
"word_count": 39,
"cached": true,
"fetched_at": "2026-09-20T03:10:58.938Z"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39036/get+a+youtube+video+transcript?v=jNQXAC9IVRw&language=en×tamps=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"video_id": "kJQP7kiw5Fk",
"default_language_code": "en",
"languages": [
{
"language_code": "en",
"name": "English - en",
"caption_type": "manual"
},
{
"language_code": "es",
"name": "Spanish",
"caption_type": "manual"
},
{
"language_code": "ko",
"name": "Korean (auto-generated)",
"caption_type": "auto"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39037/list+the+caption+languages+of+a+video?v=jNQXAC9IVRw' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"query": "lofi beats",
"video_results": [
{
"title": "lofi hip hop radio - beats to relax/study to",
"videoId": "jfKfPfyJRdk",
"channel": {
"name": "Lofi Girl"
}
}
],
"continuation_token": "c_bKt9xQ2mVf7LpR0aZ3sWyA"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39038/search+youtube+videos+or+channels?q=how to make sourdough bread' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"title": "Marques Brownlee",
"handle": "http://www.youtube.com/@mkbhd",
"resolved_via": "lookup"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39039/resolve+a+channel+handle+or+url+to+a+channel+id?handle=@jawed' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"playlist_id": "PLillGF-RfqbYE6Ik_EuXA2iZFcE082B3s",
"title": "Example playlist",
"videos": [
{
"position": 1,
"id": "jNQXAC9IVRw",
"title": "Me at the zoo",
"channel": {
"name": "jawed"
}
}
],
"has_more": true,
"continuation_token": "c_DfE9mQx2Ln8TbW4kJ1pZsA"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39040/list+every+video+in+a+playlist?list=PLillGF-RfqbYE6Ik_EuXA2iZFcE082B3s' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"channel": {
"id": "UC4QobU6STFB0P71PMvOGN5A",
"title": "jawed",
"handle": "http://www.youtube.com/@jawed",
"description": "",
"subscribers": 6740000,
"videos": 1,
"avatar": "https://yt3.googleusercontent.com/uI3VE4PVqvCy0xnWLqMJnEzyBUm3T8VHOCp4ee-1RxdHqKXCdUE_qXYQnpf9AfuEoIPactVyDhM=s900-c-k-c0x00ffffff-no-rj"
},
"videos_sections": [
{
"section_title": "Latest Videos",
"videos": [
{
"position": 1,
"id": "jNQXAC9IVRw",
"title": "Me at the zoo",
"link": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"views": 448000000,
"length": "0:19",
"published_time": "21 years ago"
}
]
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39041/get+channel+details+and+latest+uploads?channel=@jawed' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"videos": [
{
"id": "jNQXAC9IVRw",
"title": "Me at the zoo",
"length": "0:19",
"published_time": "20 years ago",
"thumbnail": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg"
}
],
"has_more": true,
"continuation_token": "EqAA..."
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39042/search+videos+within+one+channel?channel=@mkbhd&q=iphone' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"videos": [
{
"id": "jNQXAC9IVRw",
"title": "Me at the zoo",
"length": "0:19",
"published_time": "20 years ago",
"thumbnail": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg"
}
],
"has_more": true,
"continuation_token": "c_pqHR9v13sqaqxlcKhA4MnA"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39043/list+every+video+a+channel+has+uploaded?channel=@mkbhd&tab=videos&sort=latest' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"playlists": [
{
"position": 1,
"id": "PLBsP89CPrMeNIuvr9j3_EQaMwaNJ6rhuQ",
"title": "Retro Tech S2",
"link": "https://www.youtube.com/playlist?list=PLBsP89CPrMeNIuvr9j3_EQaMwaNJ6rhuQ",
"video_count": 5
}
],
"has_more": false,
"continuation_token": null
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39044/list+the+playlists+of+a+channel?channel=@mkbhd' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"posts": [
{
"position": 1,
"id": "UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ",
"url": "https://www.youtube.com/post/UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ",
"text": "Alright, it is that time...",
"published_time": "2 years ago",
"likes": "12K",
"comments": "1K"
}
],
"has_more": true,
"continuation_token": "c_DfE9mQx2Ln8TbW4kJ1pZsA"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39045/list+the+community+posts+of+a+channel?channel=@mkbhd' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"handle": "http://www.youtube.com/@mkbhd",
"title": "Marques Brownlee",
"avatar": "https://yt3.googleusercontent.com/...=s900",
"has_banner": true,
"banner": {
"original": "https://yt3.googleusercontent.com/...=s0",
"largest": "https://yt3.googleusercontent.com/...=w2560",
"sizes": [
{
"url": "https://yt3.googleusercontent.com/...=w1060",
"width": 1060,
"height": 175
}
]
}
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39046/get+the+banner+and+avatar+of+a+channel?channel=@jawed' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"related": [
{
"position": 1,
"id": "C6Vwl8bD33s",
"title": "Rick Astley - Together Forever (1 Hour)",
"channel": {
"name": "Jacob Neill"
},
"length": "1:01:35"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39047/get+related+videos+for+a+video?v=jNQXAC9IVRw' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"likes": 19497714,
"dislikes": 521713,
"rating": 4.9,
"view_count": 1830715799,
"deleted": false,
"estimated": true,
"source": "returnyoutubedislike.com"
}
}
curl --location --request GET 'https://zylalabs.com/api/14937/youtube+transcript+and+data+api/39048/get+estimated+likes+and+dislikes+of+a+video?v=jNQXAC9IVRw' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 YouTube 字幕和数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
任何有字幕的公共YouTube视频,无论是由创作者上传的还是由YouTube自动生成的。关闭字幕的视频将返回空结果
视频提供的每种字幕语言 使用字幕语言端点查看视频包含的内容 然后传递语言代码 你还可以使用翻译参数将转录翻译成另一种语言
是的。将timestamps=true设置为每个字幕行接收一个段落及其开始时间和持续时间(以秒为单位),以及完整文本
短视频和完成的直播与普通视频的工作方式相同,只要它们有字幕
YouTube搜索结果 频道详情和最新上传 频道完整视频列表 播放列表和社区帖子 播放列表内容 建议相关视频 频道横幅和估算的点赞和点踩数量
每个成功的调用都算作您计划中的一个请求 失败的调用,例如没有字幕的视频,不计算