YouTube内容抓取器 API

API ID 15623

公开的 YouTube 数据:频道、视频、短视频、直播、社区帖子、播放列表、流媒体 URL(包括混合 MP4)、文字稿、评论、相关视频和筛选搜索

API 文档

端点

请求
社区帖子:完整文本、图片(原始尺寸)、附带的视频或投票、精确点赞数和大致发布时间(YouTube 显示“2 周前”)。社区帖子的评论数和评论内容不可用。
Endpoint ID: 42155
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42155/get+channel+community+posts
输入参数

获取频道社区帖子 — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL
continuation_token 可选 continuation_token from the previous page (null: no more pages)

剩余免费测试请求:3 / 3。


输入参数

channel_id
continuation_token
API 示例响应
JSON
{
    "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "channel_name": "NASA",
    "posts": [
        {
            "post_id": "Ugkx-7xgRw-Uc9lRS3_2RvS2zASPTZOFtIlw",
            "url": "https://www.youtube.com/post/Ugkx-7xgRw-Uc9lRS3_2RvS2zASPTZOFtIlw",
            "author": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "text": "Have you heard about MAX POWER?   It's our new aerospace festival, and it's landing at NASA's Kennedy Space Center in Florida, Nov. 7-8.\n\nLearn how to join us: https://www.nasa.gov/maxpower\n\nhttps://www.youtube.com/watch?v=wJhhS...",
            "like_count": 328,
            "like_count_text": "328",
            "published_time": "1 month ago",
            "published_at": 1789622688,
            "published_at_approximate": true,
            "images": [],
            "video": {
                "type": "video",
                "video_id": "wJhhSlplzuE",
                "title": "MAX POWER 2026 — Official Announcement",
                "author": "UP.Summit",
                "channel_name": "UP.Summit",
                "channel_id": "UCdTIUu9GI7ZzqddT_ykL3Xw",
                "video_length": 82,
                "number_of_views": 27937,
                "number_of_views_text": "27,937 views",
                "like_count": null,
                "comment_count": null,
                "published_at": null,
                "published_at_approximate": null,
                "published_time": "1 month ago",
                "description": null,
                "description_snippet": "MAX POWER 2026 is America's premier expo for the technology and aerospace of the future — one week at America's gateway to the stars, at Kennedy Space Center in Florida.\n\nFlying cars. Humanoid...",
                "is_live": false,
                "thumbnails": [
                    {
                        "url": "https://i.ytimg.com/vi/wJhhSlplzuE/hqdefault.jpg",
                        "width": 480,
                        "height": 270
                    }
                ]
            },
            "poll": null
        },
        {
            "post_id": "Ugkxoe0cWV_GPHNbxsN2r4vfWksT18Wo9DL_",
            "url": "https://www.youtube.com/post/Ugkxoe0cWV_GPHNbxsN2r4vfWksT18Wo9DL_",
            "author": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "text": "Have you ever kicked a soccer ball and wondered why it curves, spins, or sometimes wobbles?\r\n \r\nGet the scoop from the International Space Station – NASA astronaut Jessica Meir explains the science hidden inside every football. ⚽\r\n \r\nNASA STEM resources: https://www.nasa.gov/learning-resources/",
            "like_count": 1066,
            "like_count_text": "1K",
            "published_time": "4 months ago",
            "published_at": 1781846688,
            "published_at_approximate": true,
            "images": [],
            "video": {
                "type": "video",
                "video_id": "g8zVn14wg38",
                "title": "STEMonstrations: Distribution of Mass",
                "author": "Learn With NASA",
                "channel_name": "Learn With NASA",
                "channel_id": "UC9SM7V7J1pAhPabOUST01fw",
                "video_length": 202,
                "number_of_views": 32826,
                "number_of_views_text": "32,826 views",
                "like_count": null,
                "comment_count": null,
                "published_at": null,
                "published_at_approximate": null,
                "published_time": "4 months ago",
                "description": null,
                "description_snippet": "Have you ever kicked a soccer ball and wondered why it curves, spins, or sometimes wobbles? NASA astronaut Jessica Meir aboard the International Space Station explains the science hidden inside...",
                "is_live": false,
                "thumbnails": [
                    {
                        "url": "https://i.ytimg.com/vi/g8zVn14wg38/hq720.jpg",
                        "width": 360,
                        "height": 202
                    },
                    {
                        "url": "https://i.ytimg.com/vi/g8zVn14wg38/hq720.jpg",
                        "width": 720,
                        "height": 404
                    }
                ]
            },
            "poll": null
        }
    ],
    "continuation_token": "4qmFsgKBARIYVUNMQV9EaVIxRmZLTnZqdVVwQkhteWxRGkxFZ1Z3YjNOMGM2b0RLQW9rVVRKb1ExSkdVWGRVYTJ4UFlXMW9UMVZxUWxkVlZrVjNUVVJHVkdKVk5VUlNWVVpDS0FyeUJnUUtBa29BmgIWYmFja3N0YWdlLWl0ZW0tc2VjdGlvbg%3D%3D"
}
获取频道社区帖子 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42155/get+channel+community+posts?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
订阅者 观看次数 视频数量 描述 链接 头像 横幅 已验证徽章 国家和创建日期
Endpoint ID: 42156
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42156/get+channel+details
输入参数

获取频道详情 — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL

剩余免费测试请求:3 / 3。


输入参数

channel_id
API 示例响应
JSON
{
    "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "title": "NASA",
    "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions about our place in the universe. We're exploring space and discovering Earth. Join us on this exciting and important journey.\n",
    "subscriber_count": 15100000,
    "view_count": 1129592359,
    "video_count": 6191,
    "links": [
        {
            "name": "nasa.gov",
            "endpoint": "nasa.gov"
        },
        {
            "name": "X",
            "endpoint": "x.com/nasa"
        }
    ],
    "avatar": [
        {
            "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s72-c-k-c0x00ffffff-no-rj",
            "width": 72,
            "height": 72
        },
        {
            "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s120-c-k-c0x00ffffff-no-rj",
            "width": 120,
            "height": 120
        }
    ],
    "banner": [
        {
            "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
            "width": 1060,
            "height": 175
        },
        {
            "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
            "width": 1138,
            "height": 188
        }
    ],
    "verified": true,
    "username": "@NASA",
    "keywords": "nasa space iss shuttle 50th astronauts planets earth rockets hubble telescopes NASA TV galaxy apollo gemini mercury sta Moon Artemis \"solar system\"",
    "creation_date": 1212451200,
    "country": null
}
获取频道详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42156/get+channel+details?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
频道 ID(UC……),对应某个账号名、自定义名称、旧版用户名或任意频道网址
Endpoint ID: 42157
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42157/get+channel+id
输入参数

获取频道 ID — 端点功能

对象 描述
channel_name 可选 Handle (@nasa), custom name, username or channel URL
url 可选 Channel URL (/@handle, /channel/UC..., /c/name, /user/name), instead of channel_name

剩余免费测试请求:3 / 3。


输入参数

channel_name
url
API 示例响应
JSON
{
    "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "channel_name": "@NASA"
}
获取频道 ID — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42157/get+channel+id?channel_name=@NASA' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
频道的直播标签:正在直播的内容(is_live)、即将直播和过去的直播,包含观看次数和发布时间(published_at);支持分页
Endpoint ID: 42158
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42158/get+channel+live+streams
输入参数

获取频道直播流 — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL
continuation_token 可选 continuation_token from the previous page (null: no more pages)

剩余免费测试请求:3 / 3。


输入参数

channel_id
continuation_token
API 示例响应
JSON
{
    "continuation_token": "4qmFsgKhDBIYVUNMQV9EaVIxRmZLTnZqdVVwQkhteWxRGoQMOGdiX0NCcjhDSEw1Q0RyMkNBb2tObVExWVdNME1qVXRNREF3TUMweVptRTRMVGxrWlRrdFpqUXdNekEwTTJSa01qazBFc3NJUVdaelYydHNORGQ1WkRSU01GbEVUVFZsVWpkRGJsRlJaeTFSVkhKVWVqWlVRbDlIUlVGNk1HUmxkMmhoYWtWM2RWSjFXSHBVZUVnNGNtTjNVRWxPYWt3NGEwNWFkVEJCYVdwdlkxcE1ZbXRMUjBobU5EVllMWFpUT1hKeFRWOWlkbFU1V1hoc1FYWnlWMUpZUzBwRVNuRnBlRkI0U1VSQ2QxWmlTUzFHUjBGcFVVTnVYMmxoZFV4bFpXcENNbVpyZWpjNVNWSnJTRUpFVW5GaVkxcG9RM2g1ZDBoU0xYTXROM3BWWmtvdGNXSnBkVlJ2ZFROSGQwZDFNek0wV0RCak4ydDJjSEJ0UVVzdFFVbzNXRzFRT0ZOelNuWlZSalpNYjBsWU1UQkNSVE16VWxsalEwOHRYMVJEYlZsNE5tZGtWRWQzVlU1SE16bGtVMnhXUkV4TmEwTTBWMlZOTW00NVpYRkZNRE15VDA5M01sVTJkakozU1hwWFVHaGxibGxDUVMxR1dUQkhkMmxGZFRjM1EwUTViak5vYkRGVlZtdzFWSE5VUjBSaldWcHFZWFo2ZEU1M2JEaEJUVlpRVFdGMWN6VkJURXB2ZVV4MFJsOTRXazFoVUV3emIzRnFTVEZCUVVVNVRFNUNRMWRVWVY5bVJtaDVMVEpSWWpCaWQyMXlORmhTYjBreUxWOTFWVVZ2TlVsb1lURlFlVVZZZDA1YU1rSklNelppYkZoelowMVJkblpzUmxWR01VUTRWMjR3TmtzMFNVODBSbXB4Y0c5d1VuZEpWM0ZpVDBKTFNFRjViMjFyVkUxQ1NXVkVZemh1ZWpoWVRUSlBhbWMxTjIxMU5HTXhXREZwYkVkU1JGRmlUVmd4VEVSNmNsTmhjM1ZIYW1oa1pYRlhYMlZrUW5aaldXZEVhWGRQVVU1VVFVUk5jaTFyVFZZdFNXeEpRVlJmZFRBeVdVNW1ibWRHVTFvNGFWbzBTMWhtTXpkQ1QyUmpUblZNVEZwSU5UWnBaRGhUV1RWTVQyUnNXV2hVUTNWUWNsWnBNR3RXTnkxaVZHWTNjamxQTnpnd1VtRXhTVkpuZVhCWmVHVndURXBDUWxRd1JXdzNPVlZ5VFRsdVpFdHdPSGRCTW5sTE4wUTFjbkZaYUhGMFoyeExRVXRCUlUxNlJWVmlUMEpOYTI5bE9VRk9hbnBHZUd0YVEwZzFibFJ3V0d0TmRIQkVkMDh3VEVOMVdGUm5OR2RDYUdwdkxUaHlVMGRFYjJsdVpUUnpTVGxVVFU0NGFXSkRaRWhGYVRGUVJ6aFVXR0ZFVERSSVZYaHhOVXBPVFZsVVJEa3dWMk5YUVVsbFRWWmxP...",
    "videos": [
        {
            "type": "live",
            "video_id": "pAKqJxuxDgk",
            "title": "Artemis Acceleration (Oct. 23, 2026)",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 0,
            "number_of_views": 0,
            "number_of_views_text": null,
            "like_count": 51,
            "comment_count": null,
            "published_at": 1790280168,
            "published_at_approximate": false,
            "published_time": null,
            "description": "Tune in as agency leaders provide an update on NASA's plans to return American astronauts to the surface of the Moon by 2028. \n\nParticipants include:\n- NASA Administrator Jared Isaacman\n- NASA Associate Administrator Amit Kshatriya\n- Jeremy Parsons, NASA’s Artemis program manager\n\nAs part of a Golden Age of innovation and exploration, NASA will send Artemis astronauts on increasingly difficult missions near the lunar South Pole to explore more of the Moon than ever before. In addition to providing economic benefits and advancing scientific discovery through its Moon missions, NASA will establish an enduring human presence on the lunar surface and build on the agency’s foundation for the first crewed mission to Mars.\n\nMore about the Artemis program: https://www.nasa.gov/humans-in-space/artemis/",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/pAKqJxuxDgk/hq720.jpg",
                    "width": 360,
                    "height": 202
                },
                {
                    "url": "https://i.ytimg.com/vi/pAKqJxuxDgk/hq720.jpg",
                    "width": 720,
                    "height": 404
                }
            ]
        },
        {
            "type": "live",
            "video_id": "UleiRdWFG7o",
            "title": "U.S. Spacewalk Preview News Conference (Oct. 20, 2026)",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 0,
            "number_of_views": 0,
            "number_of_views_text": null,
            "like_count": 27,
            "comment_count": null,
            "published_at": 1792080348,
            "published_at_approximate": false,
            "published_time": null,
            "description": "We're giving a preview of two upcoming spacewalks on Oct. 29 and Nov. 5 to finish installing solar arrays that will provide more power to the International Space Station. \n\nNASA astronaut Anil Menon and CSA (Canadian Space Agency) astronaut Joshua Kutryk will participate in both spacewalks. The spacewalks will be the 285th and 286th conducted in support of space station assembly, maintenance, and upgrades.\n\nNASA participants in the news conference include:\n- Gaurang Patel, operations integration manager, Low Earth Orbit Program\n- Garrett Hehn, spacewalk flight director, Flight Operations Directorate\n\nLearn more about the spacewalks: https://go.nasa.gov/4yRBm97\nLearn more about International Space Station operations and research: https://www.nasa.gov/station",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/UleiRdWFG7o/hq720.jpg",
                    "width": 360,
                    "height": 202
                },
                {
                    "url": "https://i.ytimg.com/vi/UleiRdWFG7o/hq720.jpg",
                    "width": 720,
                    "height": 404
                }
            ]
        }
    ],
    "channel": {
        "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions about our place in the universe. We're exploring space and discovering Earth. Join us on this exciting and important journey.\n",
        "subscriber_count": 15100000,
        "view_count": 1129592359,
        "video_count": 6191,
        "links": [
            {
                "name": "nasa.gov",
                "endpoint": "nasa.gov"
            },
            {
                "name": "X",
                "endpoint": "x.com/nasa"
            }
        ],
        "avatar": [
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s72-c-k-c0x00ffffff-no-rj",
                "width": 72,
                "height": 72
            },
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s120-c-k-c0x00ffffff-no-rj",
                "width": 120,
                "height": 120
            }
        ],
        "banner": [
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1060,
                "height": 175
            },
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1138,
                "height": 188
            }
        ],
        "verified": true,
        "username": "@NASA",
        "keywords": "nasa space iss shuttle 50th astronauts planets earth rockets hubble telescopes NASA TV galaxy apollo gemini mercury sta Moon Artemis \"solar system\"",
        "creation_date": 1212451200,
        "country": null
    }
}
获取频道直播流 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42158/get+channel+live+streams?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
频道创建的播放列表:ID、标题、整数视频数量、缩略图;分页
Endpoint ID: 42159
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42159/get+channel+playlists
输入参数

获取频道播放列表 — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL
continuation_token 可选 continuation_token from the previous page (null: no more pages)

剩余免费测试请求:3 / 3。


输入参数

channel_id
continuation_token
API 示例响应
JSON
{
    "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "channel_name": "NASA",
    "playlists": [
        {
            "type": "playlist",
            "playlist_id": "PLF98rxtslw6s",
            "title": "Nancy Grace Roman Space Telescope",
            "channel_name": "NASA",
            "video_count": 3,
            "video_count_text": "3 videos",
            "updated_time": null,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/9wq3VHsL_bE/hqdefault.jpg",
                    "width": 480,
                    "height": 270
                }
            ]
        },
        {
            "type": "playlist",
            "playlist_id": "PLB29CbKaE2OY",
            "title": "NASA Moon Base",
            "channel_name": "NASA",
            "video_count": 9,
            "video_count_text": "9 videos",
            "updated_time": null,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/pl_c/PLB29CbKaE2OY/studio_square_thumbnail.jpg",
                    "width": 426,
                    "height": 240
                },
                {
                    "url": "https://i.ytimg.com/pl_c/PLB29CbKaE2OY/studio_square_thumbnail.jpg",
                    "width": 854,
                    "height": 480
                }
            ]
        }
    ],
    "continuation_token": "4qmFsgJ4EhhVQ0xBX0RpUjFGZktOdmp1VXBCSG15bFEaKkVnbHdiR0Y1YkdsemRITVlBeUFBTUFFNEFlb0RCME5uVGtSUmFsRSUzRJoCL2Jyb3dzZS1mZWVkVUNMQV9EaVIxRmZLTnZqdVVwQkhteWxRcGxheWxpc3RzMTA0"
}
获取频道播放列表 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42159/get+channel+playlists?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
频道视频的一页(约 30 条,按最新排序),包含观看次数、点赞数、时长、完整描述和发布时间(每次调用对最多 20 条之前未见过的视频提供精确发布时间,超出部分标记为发布时间近似值);max_published_days 用于筛选(0:不筛选)。第一页还会返回频道。Shorts:获取频道 Shorts。
Endpoint ID: 42160
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42160/get+channel+videos
输入参数

获取频道视频 — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL
max_published_days 可选 Only videos published in the last N days (0: no filter)
continuation_token 可选 continuation_token from the previous page (null: no more pages)

剩余免费测试请求:3 / 3。


输入参数

channel_id
max_published_days
continuation_token
API 示例响应
JSON
{
    "continuation_token": "4qmFsgLZCRIYVUNMQV9EaVIxRmZLTnZqdVVwQkhteWxRGrwJOGdhRUJ4cUJCM3ItQmpyN0Jnb2tObVF4TkdNd05UQXRNREF3TUMweU9XSTBMVGxsT1dRdFlXTXpaV0l4TldRNU1XTXdFdEFHUVdaelYydHNOMFpmTVhwc2JWaFRkWGs0YjFOdFlrTkRSRXB3ZWtKTVpUbHlNM2hZTVRsbFNqazFZM1l3TjBZdFQxUklZM05HVlZWMmVrOVZVWFp1U25seFFrRndjSGd5UTFoeWFFMUhhVVJVVjNWb1F6UTRURm8yZGxOMVN6TkZTRXhIVEZWM1NuZFpNa2xZYm1OaGFua3lia2gzWmw4NWNraDBRV3BwZERGQmRXaHRkMmxCZDFRMGJVeGFMWEpaYnpSUlNXWklSREpPY1ZwU1IzaDRlV2QyZFZKMFMzUmpaVFI2WDJneWJsQldkRUY0VERGeVVIQlBlVTlCTkV4dU5rNUVWMHh3ZEZKcmJWaENja0p4VFVWcE9WVXdUakJxTW1obU5IRXRNQzFuWWsxUlJWcGlNVUZ5WTNCdFpsOHRhRVV6WlVKd1IwMTJMVFp5UjNGUlZYWXdPRWxzUWs5TFNucGphSGxNVUVsMFowZDZUMkZ3TkhwZmRrVmFhbEJRVERjME1sSlhRMnMxVVZCVFltVklNVXBKY1RCcWNXdEliRWxpZFhVeGEwTjJiV0poVWpSVWJHVm1aMWt4YmtKelRrbzNkbTlTUkhZNExXSTJjakJMVlVaNWRuYzBkbEJSYjA0MmFtOTRWek16UmpkUmQxTTVPSGhNUXpOUU5GWnlPUzFIVXpKNmJteFBheTF4UWpsMFVVVlVkV3N3WXpORmVHNTBRaTFJYW5sdmRqSmljREpuVG5wM01rRm5ibUpxVkRWWlowbDVMWEZPVjJWcFVUZEhaMGwwTW14bWRUTlBhekJOWlU1NE4ydFRVa1F0VG04MVNrTk5VVTl0UVZOTGNsTnhUVzlzWjBGS01VOTFSMFpJV21ac1FXbEhhbnBSUkVFdE5VaHdZbHB0YWpCSU5ISXdaRGQyUW5kc1JYcHNNVW81U21aV2EycE5kRkYxVnpGUE1HMUJlWFZTV25JemRHOVhUbkpRZG5sUFlqWlFaVUpLU2tVMmRGZHpiR05UVUd0UGQybHNYMnRRU0hSZlJFZDJTbEJWZDJRemFXWXdZVFo1WW5CME55MHhaREI2VWtabWQwaHdNV1psU0ZOZlp6QnFOMW80VVhrNWFEWkJZM2MyUlVGR1dXMVpZV0pFTkZWM1pFNHlRamgzU3pCT1VHZGtkbE00YlhOa2NEQkJlbTFpWm1zM1ZUZE9SRGN4ZGt4VFNrTktja1F3VFhrNVZYVkhVMFpoUlZaS2VWaHBVRU5tVm5aTFRUSm5hVE5wV1VsUFNrbE5ZWE5OYW5WalpFaE5TRzVqV1ZkQlYwMVhOUzFyTTFwdVpEUjZRVEZ5WVROdGQwSXhV...",
    "videos": [
        {
            "type": "video",
            "video_id": "5b3n-u_0QAI",
            "title": "Planetary Defenders: This Is Not an Exercise",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 1215,
            "number_of_views": 476000,
            "number_of_views_text": "476K views",
            "like_count": 9162,
            "comment_count": null,
            "published_at": 1791990317,
            "published_at_approximate": false,
            "published_time": "2 days ago",
            "description": "When a newly discovered asteroid posed a potential risk to Earth, a global planetary defense system was put to the test like never before. \n\nPlanetary Defenders: This Is Not an Exercise tells the story of how NASA, its international partners, the astronomy community, and scientists around the world raced to observe and track the asteroid, understand its orbit into the future, calculate its impact probabilities, and eventually retire it from the risk list.\n\nLearn more about NASA’s efforts to find, track and monitor near-Earth asteroids: https://science.nasa.gov/planetary-defense/\nWatch the debut episode of \"Planetary Defenders\": https://www.youtube.com/watch?v=jOb2DQWvDvc",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/5b3n-u_0QAI/hq720.jpg",
                    "width": 360,
                    "height": 202
                },
                {
                    "url": "https://i.ytimg.com/vi/5b3n-u_0QAI/hq720.jpg",
                    "width": 720,
                    "height": 404
                }
            ]
        },
        {
            "type": "video",
            "video_id": "ErAqN6gXqZQ",
            "title": "NASA's SpaceX Crew-13 Mission (Official NASA Trailer)",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 62,
            "number_of_views": 103000,
            "number_of_views_text": "103K views",
            "like_count": 1263,
            "comment_count": null,
            "published_at": 1790794100,
            "published_at_approximate": false,
            "published_time": "2 weeks ago",
            "description": "NASA astronauts Jessica Watkins and Luke Delaney, CSA (Canadian Space Agency) astronaut Joshua Kutryk, and Roscosmos cosmonaut Sergey Teteryatnikov are scheduled to lift off to the International Space Station on Thursday, Oct. 1.\n\nOnce they arrive, they'll spend the next several months in orbit, helping us learn how to live in space while running scientific experiments to make life better back on Earth. Watch the live launch with us here on YouTube.\n\nMore info on our Crew-13 launch schedule: https://go.nasa.gov/3V9NKT0\nDownload this video: https://go.nasa.gov/4zaz3Of",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/ErAqN6gXqZQ/hq720.jpg",
                    "width": 360,
                    "height": 202
                },
                {
                    "url": "https://i.ytimg.com/vi/ErAqN6gXqZQ/hq720.jpg",
                    "width": 720,
                    "height": 404
                }
            ]
        }
    ],
    "channel": {
        "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions about our place in the universe. We're exploring space and discovering Earth. Join us on this exciting and important journey.\n",
        "subscriber_count": 15100000,
        "view_count": 1129592359,
        "video_count": 6191,
        "links": [
            {
                "name": "nasa.gov",
                "endpoint": "nasa.gov"
            },
            {
                "name": "X",
                "endpoint": "x.com/nasa"
            }
        ],
        "avatar": [
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s72-c-k-c0x00ffffff-no-rj",
                "width": 72,
                "height": 72
            },
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s120-c-k-c0x00ffffff-no-rj",
                "width": 120,
                "height": 120
            }
        ],
        "banner": [
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1060,
                "height": 175
            },
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1138,
                "height": 188
            }
        ],
        "verified": true,
        "username": "@NASA",
        "keywords": "nasa space iss shuttle 50th astronauts planets earth rockets hubble telescopes NASA TV galaxy apollo gemini mercury sta Moon Artemis \"solar system\"",
        "creation_date": 1212451200,
        "country": null
    }
}
获取频道视频 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42160/get+channel+videos?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ&max_published_days=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一条评论下的回复:从获取视频评论中传入其 replies_token
Endpoint ID: 42161
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42161/get+comment+replies
输入参数

获取评论回复 — 端点功能

对象 描述
video_id 必需 YouTube video id
replies_token 必需 replies_token of a comment from /video/comments

剩余免费测试请求:3 / 3。


输入参数

video_id
replies_token
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "total_number_of_comments": null,
    "number_of_comments": 10,
    "continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYy2AEKUWdldF9jb21tZW50X3dpdGhfcmVwbGllc19zdHJlYW0tLUNnZ0lnQVFWRjdmUk9CSUZDS0FnR0FFaURRb0xDTXlUNGZVRkVNaWU0UzFRQUZnQhpQEhpVZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZyICCAAqGFVDdUFYRmtnc3cxTDd4YUNmbmQ1SkpPdzILZFF3NHc5V2dYY1FAAUgyggECCAEoCkIvY29tbWVudC1yZXBsaWVzLWl0ZW0tVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWc%3D",
    "comments": [
        {
            "id": "example_id_1",
            "author_name": "@example_user_1",
            "author_channel_id": "example_id_1",
            "like_count": 4300,
            "like_count_text": "4.3K",
            "published_time": "6 years ago (edited)",
            "published_at": 1602998834,
            "text": "Example text.",
            "number_of_replies": 0,
            "thumbnails": [
                {
                    "url": "https://example.com/media/1.jpg"
                }
            ],
            "replies_token": null
        },
        {
            "id": "example_id_2",
            "author_name": "@example_user_2",
            "author_channel_id": "example_id_2",
            "like_count": 3000,
            "like_count_text": "3K",
            "published_time": "6 years ago",
            "published_at": 1602998834,
            "text": "Example text.",
            "number_of_replies": 0,
            "thumbnails": [
                {
                    "url": "https://example.com/media/2.jpg"
                }
            ],
            "replies_token": null
        }
    ]
}
获取评论回复 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42161/get+comment+replies?video_id=dQw4w9WgXcQ&replies_token=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
热门评论(每页 20 条),包含整数点赞数、回复数、近似发布时间(YouTube 仅显示“2 天前”)以及各自的 replies_token;分页使用 continuation_token】【。
Endpoint ID: 42162
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42162/get+video+comments
输入参数

获取视频评论 — 端点功能

对象 描述
video_id 可选 YouTube Video id
url 可选 Video URL, instead of video_id
continuation_token 可选 continuation_token from the previous page

剩余免费测试请求:3 / 3。


输入参数

video_id
url
continuation_token
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "total_number_of_comments": 2459884,
    "number_of_comments": 20,
    "continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYy_gIK1AJnZXRfcmFua2VkX3N0cmVhbXMtLUNxWUJDSUFFRlJlMzBUZ2Ftd0VLbGdFSTJGOFFnQVFZQnlLTEFmdHRDaVNfMmRWOVhOM1BUNVhwU2hRQkZWcGFaUUJzNlJDcUxnanVrenlvdXZMcXhMT2lUUE9nX2pLWXVKb0Jpa0JoRXgtYW1CVTZPS29NV1ZUSDVlY0s5Vm5TcVBNc3R1ZVVCZTJRVG9qQVltSHJDekFldjBkQUh4QVlyc3RiVEMtMDhLdWFlZzJhS3EyQTFFZzJNb1ZWZ3dxUC1qbURRWjVmQ1VxRE1IYXY0UHNibHR6a1FnM0ctYlFRRkJJRkNJY2dHQUFTQlFpSklCZ0FFZ1VJaUNBWUFCSUZDS2dnR0FBU0JRaUdJQmdBRWdVSXdDQVlBQklIQ0lVZ0VBVVlBUklGQ0xzZ0dBQVNCd2lFSUJBUUdBRlFBRmdCIhEiC2RRdzR3OVdnWGNRMAB4ASgUQhBjb21tZW50cy1zZWN0aW9u",
    "comments": [
        {
            "id": "example_id_1",
            "author_name": "@example_user_1",
            "author_channel_id": "example_id_1",
            "like_count": 291000,
            "like_count_text": "291K",
            "published_time": "6 years ago",
            "published_at": 1602998823,
            "text": "Example text.",
            "number_of_replies": 679,
            "thumbnails": [
                {
                    "url": "https://example.com/media/1.jpg"
                }
            ],
            "replies_token": "example_id_1"
        },
        {
            "id": "example_id_2",
            "author_name": "@example_user_2",
            "author_channel_id": "example_id_2",
            "like_count": 104000,
            "like_count_text": "104K",
            "published_time": "6 years ago (edited)",
            "published_at": 1602998823,
            "text": "Example text.",
            "number_of_replies": 610,
            "thumbnails": [
                {
                    "url": "https://example.com/media/2.jpg"
                }
            ],
            "replies_token": "example_id_2"
        }
    ]
}
获取视频评论 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42162/get+video+comments?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
获取视频评论的下一页(与向其传递 continuation_token 相同)
Endpoint ID: 42163
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42163/get+video+comments+for+next+page
输入参数

获取下一页的视频评论 — 端点功能

对象 描述
video_id 必需 YouTube Video id
continuation_token 必需 continuation_token from the previous page

剩余免费测试请求:3 / 3。


输入参数

video_id
continuation_token
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "total_number_of_comments": null,
    "number_of_comments": 20,
    "continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYymgQK8ANnZXRfcmFua2VkX3N0cmVhbXMtLUNvMENDSUFFRlJlMzBUZ2FnZ0lLX1FFSTJGOFFnQVFZQnlMeUFUUDZfcEFTb1NOOHlhbTRkNzlSWGtLalB5OTFCMktuSkpDMFlycFM5TkFDV0RQY2dsY2RZRWgzTlM2b04xUDZZTmlYWmpmdnRLTHNsYjlLRDdYZnRucTAyV3VWTFpia0NUX1JoWXRYR1ZBbktnUVpPX0VmbXNGbkRYSnplSGgwR2NKN0NWUWF5TVhJdmhVcDFHY3JTRm1nejdGVlNmTXN1Xzg1VkZ0RkVHdGhZS2ZrVmVaR1drSU1fbnBNeFFpdGIyQkNBZzRPZWp5dnJ0c3VReXNsOW00T1NfTWJWa0ZDTjBqYnFoR3FFQWk0aGxZSmhoU0IxR2Q0aW1xUWFHRlZ2M21CZC0tRUhfam9kRUZaNGgwYzlLUmZFSVFES0xjTG1pVWVZaHpwTzlobEJhbjJDN29DelJXSi02TXV1ci1HNEg0TkVDZ1NCUWlvSUJnQUVnVUlpQ0FZQUJJRkNJY2dHQUFTQlFpSklCZ0FFZ1VJaGlBWUFCSUhDSVVnRUFvWUFSSUZDTUFnR0FBU0J3aUVJQkFmR0FFU0JRaWZJQmdBRWdVSXd5QVlBQklGQ0xzZ0dBQlFBRmdCIhEiC2RRdzR3OVdnWGNRMAB4ASgoQhBjb21tZW50cy1zZWN0aW9u",
    "comments": [
        {
            "id": "example_id_1",
            "author_name": "@example_user_1",
            "author_channel_id": "example_id_1",
            "like_count": 12,
            "like_count_text": "12",
            "published_time": "6 days ago",
            "published_at": 1791696431,
            "text": "Example text.",
            "number_of_replies": 0,
            "thumbnails": [
                {
                    "url": "https://example.com/media/1.jpg"
                }
            ],
            "replies_token": null
        },
        {
            "id": "example_id_2",
            "author_name": "@example_user_2",
            "author_channel_id": "example_id_2",
            "like_count": 403000,
            "like_count_text": "403K",
            "published_time": "6 years ago",
            "published_at": 1602998831,
            "text": "Example text.",
            "number_of_replies": 604,
            "thumbnails": [
                {
                    "url": "https://example.com/media/2.jpg"
                }
            ],
            "replies_token": "example_id_2"
        }
    ]
}
获取下一页的视频评论 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42163/get+video+comments+for+next+page?video_id=dQw4w9WgXcQ&continuation_token=Eg0SC2RRdzR3OVdnWGNRGAYy_gIK1AJnZXRfcmFua2VkX3N0cmVhbXMtLUNxWUJDSUFFRlJlMzBUZ2Ftd0VLbGdFSTJGOFFnQVFZQnlLTEFmdHRDaVNfMmRWOVhOM1BUNVhwU2hRQkZWcGFaUUJzNlJDcUxnanVrenlvdXZMcXhMT2lUUE9nX2pLWXVKb0Jpa0JoRXgtYW1CVTZPS29NV1ZUSDVlY0s5Vm5TcVBNc3R1ZVVCZTJRVG9qQVltSHJDekFldjBkQUh4QVlyc3RiVEMtMDhLdWFlZzJhS3EyQTFFZzJNb1ZWZ3dxUC1qbURRWjVmQ1VxRE1IYXY0UHNibHR6a1FnM0ctYlFRRkJJRkNJY2dHQUFTQlFpSklCZ0FFZ1VJaUNBWUFCSUZDS2dnR0FBU0JRaUdJQmdBRWdVSXdDQVlBQklIQ0lVZ0VBVVlBUklGQ0xzZ0dBQVNCd2lFSUJBUUdBRlFBRmdCIhEiC2RRdzR3OVdnWGNRMAB4ASgUQhBjb21tZW50cy1zZWN0aW9u' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
YouTube 标签页面(#tag)的视频,包含 published_at(每次调用中最多 20 个未曾见过的视频的时间为准确值,超出部分标记为近似值)。没有页面的标签会返回空列表。
Endpoint ID: 42164
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42164/get+hashtag+videos
输入参数

获取话题标签视频 — 端点功能

对象 描述
tag 必需 Hashtag, with or without #
continuation_token 可选 continuation_token from the previous page

剩余免费测试请求:3 / 3。


输入参数

tag
continuation_token
API 示例响应
JSON
{
    "tag": "artemis",
    "count": 17,
    "results": [
        {
            "type": "video",
            "video_id": "VsN7E35LpJE",
            "title": "Lindsey Stirling - Artemis (Official Music Video)",
            "author": "Lindsey Stirling",
            "channel_name": "Lindsey Stirling",
            "channel_id": "UCyC_4jvPzLiSkJkLIkA7B8g",
            "video_length": 243,
            "number_of_views": 28274986,
            "number_of_views_text": "28,274,986 views",
            "like_count": 495217,
            "comment_count": null,
            "published_at": 1567180811,
            "published_at_approximate": false,
            "published_time": "7 years ago",
            "description": "Stream/Download ‘Lose You Now’ here: https://found.ee/LS_LoseYouNow\nMy new album #Artemis is out now! https://found.ee/LS_Artemis\nCome see me on the #ArtemisTour! Tickets are on sale now!\nHead here for tour dates, tickets, and VIP upgrades: http://www.lindseystirling.com/\n\nDirectors: Stephen Wayne Mallett & Lindsey Stirling \nProduction Company: Green Glow Films\nProducer: Hans Boysen\nHead of Production: Brooklynn Reeves\n\nDirector of Photography / Steadicam / Drone: Niels Lindelien\n1st AC: Sam Goddard\n2nd AC: Dewey Tann\n\nHair & Makeup: Alison Christian\nArtist Assistant: Lindsay Fishman\n\nDancer: Addison Byers\nDancer: Kailyn Rogers\nDancer: Jessica Richens\nDancer: Taylor Gagliano\n\nEditors: Lindsey Stirling & Stephen Wayne Mallett\nVFX Supervisor: Daniel Craven\nVFX Artist: Mitch Reaser\nColorist: Andrew Finch\n\nDirector Rep: Laure Scott\nBehind The Scenes: Kelly Balch\n\nProduction Assistant: Davis Mansmann\nProduction Assistant: Julian Grandberry\nProduction Assistant: Gavin Dye\n\nFilm Location Commissioner: Ally Vander Poel\nSpecial Thanks to  Kelly Balch & Tulare County\n\nSheet Music Here: https://lindseystirlingsheetmusic.com\n\nFollow me here:\nhttps://www.facebook.com/lindseystirlingmusic\nhttps://twitter.com/LindseyStirling\nhttp://www.instagram.com/LindseyStirling\n\nSign up for my super-cool newsletter here:\nhttp://lindseystirling.fanbridge.com",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/VsN7E35LpJE/hqdefault.jpg",
                    "width": 168,
                    "height": 94
                },
                {
                    "url": "https://i.ytimg.com/vi/VsN7E35LpJE/hqdefault.jpg",
                    "width": 196,
                    "height": 110
                }
            ]
        },
        {
            "type": "video",
            "video_id": "GsdsqOy_H2U",
            "title": "Artemis 2 : la NASA fait moins qu'Apollo 8 en 1968 !",
            "author": "Aldo Sterone",
            "channel_name": "Aldo Sterone",
            "channel_id": "UCsua55kDzTYX_jztd7PckWw",
            "video_length": 1594,
            "number_of_views": 121703,
            "number_of_views_text": "121,703 views",
            "like_count": 8504,
            "comment_count": null,
            "published_at": 1775489570,
            "published_at_approximate": false,
            "published_time": "6 months ago",
            "description": "Mission Artemis 2 contre Apollo, par Aldo Sterone\n#NASA #Lune #Artemis #Apollo \n\n- ON N'A JAMAIS MARCHE SUR LA LUNE: L'IMPOSTURE APOLLO\nhttps://www.amazon.fr/dp/1979585989\n- ON N'A JAMAIS MARCHÉ SUR LA LUNE: LES QUESTIONS INTERDITES\nhttps://www.amazon.fr/dp/B0G4GMSS7V\n\n\nJoignez-vous à mon canal pour me soutenir et sponsoriser mon effort créatif :\n\nhttps://www.youtube.com/channel/UCsua55kDzTYX_jztd7PckWw/join",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/GsdsqOy_H2U/hqdefault.jpg",
                    "width": 168,
                    "height": 94
                },
                {
                    "url": "https://i.ytimg.com/vi/GsdsqOy_H2U/hqdefault.jpg",
                    "width": 196,
                    "height": 110
                }
            ]
        }
    ],
    "continuation_token": null
}
获取话题标签视频 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42164/get+hashtag+videos?tag=artemis' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
YouTube 按类型搜索(全部、视频、频道、播放列表、短视频),可按上传日期(小时内、今天、本周、本月、本年)、时长(短、中、长)和排序方式(相关性或观看次数;YouTube 已不再按日期或评分排序)。视频:整数形式的观看次数和时长、点赞数、准确的发布日期(标记为近似值时除外)、说明。频道:整数形式的订阅者数量
Endpoint ID: 42165
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42165/search+videos+channels+playlists+and++shorts
输入参数

搜索视频频道播放列表和 Shorts — 端点功能

对象 描述
query 必需 Search text
type 可选 all, video, channel, playlist or short
upload_date 可选 Only results uploaded in the last hour, today, this week, month or year
duration 可选 short (< 4 min), medium (4-20 min) or long (> 20 min)
sort_by 可选 relevance (default) or views (most viewed first)
continuation_token 可选 To get Next page

剩余免费测试请求:3 / 3。


输入参数

query
type
upload_date
duration
sort_by
continuation_token
API 示例响应
JSON
{
    "query": "nasa artemis",
    "type": "all",
    "count": 42,
    "results": [
        {
            "type": "channel",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "title": "NASA",
            "handle": "@NASA",
            "subscribers": 15100000,
            "subscribers_text": "15.1M subscribers",
            "description_snippet": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research. To do that, we have ...",
            "thumbnails": [
                {
                    "url": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s88-c-k-c0x00ffffff-no-rj-mo",
                    "width": 88,
                    "height": 88
                },
                {
                    "url": "https://yt3.ggpht.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s176-c-k-c0x00ffffff-no-rj-mo",
                    "width": 176,
                    "height": 176
                }
            ]
        },
        {
            "type": "playlist",
            "playlist_id": "PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
            "title": "Artemis II Mission Coverage",
            "channel_name": "NASA",
            "video_count": 23,
            "video_count_text": "23 videos",
            "updated_time": null,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/DYY4nnfxKbU/hq720.jpg",
                    "width": 360,
                    "height": 202
                },
                {
                    "url": "https://i.ytimg.com/vi/DYY4nnfxKbU/hq720.jpg",
                    "width": 720,
                    "height": 404
                }
            ]
        }
    ],
    "continuation_token": "Ep0DEgxuYXNhIGFydGVtaXMajANTQlNDQVJoVlEweEJYMFJwVWpGR1prdE9kbXAxVlhCQ1NHMTViRkdDQVNKUVRESmhRbHAxUTJWRWQyeFJkazUwU0doT1NuUmhjbTA1VDJWM1VYZFdiblIyZ2dFTFlYYzVSVTVKUVhGclFUaUNBUXRMWlRaWVdEaEdTRTlJVFlJQkMxOVVPR051TWtveE15MDBnZ0VMWDJWbFdsRjNPVkJDWXpDQ0FRdHVabWhFZFU5SVRYQXdRWUlCQzFSbVgxVnFRazFKZWs1dmdnRUxOblZQY1hGUWRYQlRlVUdDQVF0V1p5MUZVVGROVDNVMlNZSUJDMEU0YjNkSWNYaFNNemRCZ2dFTFNEWTJVMVJGTVROUWVGV0NBUXRDWHpkRlZXMURlR04yUllJQkMzcGpkRlJMWkZGamJWWkJnZ0VMT1V4R1FrWlNTRFV4U20tQ0FRdHpUVzlZVG5FeWJqbGZXWUlCQzNvdGFqRjFlRUp0YVhNd3NnRUdDZ1FJRXhBQzZnRUVDQUlRR1ElM0QlM0QYgeDoGCILc2VhcmNoLWZlZWQ%3D"
}
搜索视频频道播放列表和 Shorts — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42165/search+videos+channels+playlists+and++shorts?query=nasa artemis&type=all&upload_date=month&duration=long&sort_by=views' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
YouTube 搜索框在某种语言和国家/地区下对部分查询的建议内容
Endpoint ID: 42166
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42166/get+search+suggestions
输入参数

获取搜索建议 — 端点功能

对象 描述
query 必需 The start of a search
language 可选 Language code (default en)
country_code 可选 Country code (default US)

剩余免费测试请求:3 / 3。


输入参数

query
language
country_code
API 示例响应
JSON
{
    "query": "nasa ar",
    "suggestions": [
        "nasa ariana grande",
        "nasa artemis lego"
    ]
}
获取搜索建议 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42166/get+search+suggestions?query=nasa ar&language=fr&country_code=FR' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
一个频道的 Shorts 中的一页(约 48 条),包含观看次数、点赞数、时长和发布时间(每次调用中最多 20 条未见过的内容为精确值,超出部分标记为近似值)
Endpoint ID: 42167
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42167/get+channel+shorts
输入参数

获取频道 Shorts — 端点功能

对象 描述
channel_id 必需 Channel id (UC...), handle (@nasa) or channel URL
continuation_token 可选 continuation_token from the previous page (null: no more pages)

剩余免费测试请求:3 / 3。


输入参数

channel_id
continuation_token
API 示例响应
JSON
{
    "continuation_token": null,
    "videos": [
        {
            "type": "short",
            "video_id": "-62C9R_41Sc",
            "title": "From the Moon to the 50-Yard Line",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 39,
            "number_of_views": 46000,
            "number_of_views_text": "46K views",
            "like_count": 867,
            "comment_count": null,
            "published_at": 1791242506,
            "published_at_approximate": false,
            "published_time": null,
            "description": "From the Moon to the 50-yard line.\n \nSix months ago, NASA astronaut Christina Koch flew Philadelphia Eagles Super Bowl confetti around the Moon on the Artemis II mission. Yesterday, in a full circle moment, she served as honorary captain at an Eagles game, bringing a little Moon Joy to the field.\n \n#ArtemisII #FlyEaglesFly #MoonJoy",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/-62C9R_41Sc/sardefault.jpg",
                    "width": 405,
                    "height": 720
                },
                {
                    "url": "https://i.ytimg.com/vi/-62C9R_41Sc/sardefault.jpg",
                    "width": 405,
                    "height": 608
                }
            ]
        },
        {
            "type": "short",
            "video_id": "myZ9kn9MIWQ",
            "title": "2026 Solar Eclipse @ 50,000 Feet",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 93,
            "number_of_views": 269000,
            "number_of_views_text": "269K views",
            "like_count": 14085,
            "comment_count": null,
            "published_at": 1786726014,
            "published_at_approximate": false,
            "published_time": null,
            "description": "These views, including footage from GoPro cameras, were captured by NASA's WB-57 aircraft during the 2026 total solar eclipse. Taking off from Iceland, our pilots studied the Sun's corona as they raced along the path of totality.\n\nCredit: NASA",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/myZ9kn9MIWQ/sardefault.jpg",
                    "width": 405,
                    "height": 720
                },
                {
                    "url": "https://i.ytimg.com/vi/myZ9kn9MIWQ/sardefault.jpg",
                    "width": 405,
                    "height": 608
                }
            ]
        }
    ],
    "channel": {
        "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "title": "NASA",
        "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions about our place in the universe. We're exploring space and discovering Earth. Join us on this exciting and important journey.\n",
        "subscriber_count": 15100000,
        "view_count": 1129592359,
        "video_count": 6191,
        "links": [
            {
                "name": "nasa.gov",
                "endpoint": "nasa.gov"
            },
            {
                "name": "X",
                "endpoint": "x.com/nasa"
            }
        ],
        "avatar": [
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s72-c-k-c0x00ffffff-no-rj",
                "width": 72,
                "height": 72
            },
            {
                "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s120-c-k-c0x00ffffff-no-rj",
                "width": 120,
                "height": 120
            }
        ],
        "banner": [
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1060,
                "height": 175
            },
            {
                "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
                "width": 1138,
                "height": 188
            }
        ],
        "verified": true,
        "username": "@NASA",
        "keywords": "nasa space iss shuttle 50th astronauts planets earth rockets hubble telescopes NASA TV galaxy apollo gemini mercury sta Moon Artemis \"solar system\"",
        "creation_date": 1212451200,
        "country": null
    }
}
获取频道 Shorts — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42167/get+channel+shorts?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
混合流(视频 + 音频 MP4,通常为 360p)、仅视频流和仅音频流的 URL,包含画质、编解码器和大小;muxed_available 表示是否存在混合 MP4。URL 会在 expires_in_seconds 后过期,并重定向一次;请跟随重定向。.
Endpoint ID: 42168
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42168/get+video+download+and++stream+urls
输入参数

获取视频下载和流媒体 URL — 端点功能

对象 描述
video_id 可选 YouTube Video id
url 可选 Video URL, instead of video_id

剩余免费测试请求:3 / 3。


输入参数

video_id
url
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "duration_seconds": 213,
    "is_live": false,
    "expires_in_seconds": 21540,
    "hls_manifest_url": "https://manifest.googlevideo.com/api/manifest/hls_variant/…",
    "muxed_available": true,
    "muxed": [
        {
            "itag": 18,
            "url": "https://rr1---sn-5uaeznly.googlevideo.com/videoplayback",
            "mime_type": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
            "quality": "360p",
            "bitrate": 444226,
            "width": 640,
            "height": 360,
            "fps": 25,
            "content_length": 0,
            "duration_ms": 213089,
            "audio_quality": "AUDIO_QUALITY_LOW",
            "audio_sample_rate": 44100
        }
    ],
    "video_only": [
        {
            "itag": 313,
            "url": "https://rr1---sn-5uaeznly.googlevideo.com/videoplayback",
            "mime_type": "video/webm; codecs=\"vp09.00.50.08\"",
            "quality": "2160p",
            "bitrate": 18076636,
            "width": 3840,
            "height": 2160,
            "fps": 25,
            "content_length": 358608461,
            "duration_ms": 213040,
            "audio_quality": null,
            "audio_sample_rate": 0
        },
        {
            "itag": 401,
            "url": "https://rr1---sn-5uaeznly.googlevideo.com/videoplayback",
            "mime_type": "video/mp4; codecs=\"av01.0.12M.08\"",
            "quality": "2160p",
            "bitrate": 17400774,
            "width": 3840,
            "height": 2160,
            "fps": 25,
            "content_length": 240334643,
            "duration_ms": 213040,
            "audio_quality": null,
            "audio_sample_rate": 0
        }
    ],
    "audio_only": [
        {
            "itag": 251,
            "url": "https://rr1---sn-5uaeznly.googlevideo.com/videoplayback",
            "mime_type": "audio/webm; codecs=\"opus\"",
            "quality": "tiny",
            "bitrate": 136544,
            "width": null,
            "height": null,
            "fps": null,
            "content_length": 3433755,
            "duration_ms": 213061,
            "audio_quality": "AUDIO_QUALITY_MEDIUM",
            "audio_sample_rate": 48000
        },
        {
            "itag": 140,
            "url": "https://rr1---sn-5uaeznly.googlevideo.com/videoplayback",
            "mime_type": "audio/mp4; codecs=\"mp4a.40.2\"",
            "quality": "tiny",
            "bitrate": 130677,
            "width": null,
            "height": null,
            "fps": null,
            "content_length": 3449447,
            "duration_ms": 213089,
            "audio_quality": "AUDIO_QUALITY_MEDIUM",
            "audio_sample_rate": 44100
        }
    ]
}
获取视频下载和流媒体 URL — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42168/get+video+download+and++stream+urls?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
视频的定时字幕片段、全文及可用的字幕语言
Endpoint ID: 42169
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42169/get+video+transcript+subtitles
输入参数

获取视频转录字幕 — 端点功能

对象 描述
video_id 可选 YouTube Video id
url 可选 Video URL, instead of video_id
lang 可选 Language code, e.g. en, en-US, fr (default: the first uploaded track)

剩余免费测试请求:3 / 3。


输入参数

video_id
url
lang
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "lang": "en",
    "is_auto_generated": false,
    "available_languages": [
        {
            "lang": "en",
            "name": "English",
            "is_auto_generated": false
        },
        {
            "lang": "en",
            "name": "English (auto-generated)",
            "is_auto_generated": true
        }
    ],
    "text": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules\nand so do I ♪ ♪ A full commitment's\nwhat I'm thinking of ♪ ♪ You wouldn't get this\nfrom any other guy ♪ ♪ I just wanna tell you\nhow I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ We've known each other\nfor so long ♪ ♪ Your heart's been aching\nbut you're too shy to say it ♪ ♪ Inside we both know\nwhat's been going ♪ ♪ We know the game\nand we're gonna play it ♪ ♪ And if you ask me\nhow I'm feeling ♪ ♪ Don't tell me\nyou're too blind to see ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ (Ooh, give you up) ♪ ♪ (Ooh, give you up) ♪ ♪ Never gonna give,\nnever gonna give ♪ ♪ (Give you up) ♪ ♪ Never gonna give,\nnever gonna give ♪ ♪ (Give you up) ♪ ♪ We've known each other\nfor so long ♪ ♪ Your heart's been aching\nbut you're too shy to say it ♪ ♪ Inside we both know\nwhat's been going ♪ ♪ We know the game\nand we're gonna play it ♪ ♪ I just wanna tell you\nhow I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪",
    "segments": [
        {
            "start": 1.36,
            "duration": 1.68,
            "text": "[♪♪♪]"
        },
        {
            "start": 18.64,
            "duration": 3.24,
            "text": "♪ We're no strangers to love ♪"
        }
    ]
}
获取视频转录字幕 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42169/get+video+transcript+subtitles?video_id=dQw4w9WgXcQ&lang=en' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
播放列表的标题、所有者、整数形式的视频数量和观看次数,以及其中的视频(每页 100 个);每次调用中,对于之前未见过的最多 20 个视频,published_at 是精确的,其余则为近似值(已标记)
Endpoint ID: 42170
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42170/get+playlist+details+and+videos
输入参数

获取播放列表详情和视频 — 端点功能

对象 描述
playlist_id 可选 Playlist id (PL...)
url 可选 Playlist URL (…/playlist?list=PL…), instead of playlist_id
continuation_token 可选 Next page of videos

剩余免费测试请求:3 / 3。


输入参数

playlist_id
url
continuation_token
API 示例响应
JSON
{
    "playlist_id": "PL2aBZuCeDwlS_2sGfYSvcoJZLRG069i-H",
    "title": "Artemis",
    "description": null,
    "channel_name": "NASA",
    "video_count": 196,
    "video_count_text": "196 videos",
    "views": 976476,
    "views_text": "976,476 views",
    "count": 100,
    "videos": [
        {
            "type": "video",
            "video_id": "IfRqrrBbT-Y",
            "title": "Artemis II Moon Mission Complete!",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 213,
            "number_of_views": 974000,
            "number_of_views_text": "974K views",
            "like_count": 23665,
            "comment_count": null,
            "published_at": 1776024202,
            "published_at_approximate": false,
            "published_time": "6 months ago",
            "description": "Our Artemis II Moon mission is complete!\nSpace Launch System rocket launched crew into space\nOrion spacecraft  provided a safe “home away from home” for astronauts\nFlew around the Moon, observed its far side, and conducted science\nNew human spaceflight distance record \nCrew safely returned to Earth\nInspired the WORLD\n\nWe're just getting started: https://www.nasa.gov/mission/artemis-iii/\n\nDownload this video: https://images.nasa.gov/details/ARTEMIS%20II%20Mission%20Recap_ANB_V3",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/IfRqrrBbT-Y/hqdefault.jpg",
                    "width": 168,
                    "height": 94
                },
                {
                    "url": "https://i.ytimg.com/vi/IfRqrrBbT-Y/hqdefault.jpg",
                    "width": 196,
                    "height": 110
                }
            ]
        },
        {
            "type": "video",
            "video_id": "DYY4nnfxKbU",
            "title": "NASA's Artemis II Crew Return to Houston",
            "author": "NASA",
            "channel_name": "NASA",
            "channel_id": "UCLA_DiR1FfKNvjuUpBHmylQ",
            "video_length": 4860,
            "number_of_views": 1700000,
            "number_of_views_text": "1.7M views",
            "like_count": 48556,
            "comment_count": null,
            "published_at": 1775942765,
            "published_at_approximate": false,
            "published_time": "Streamed 6 months ago",
            "description": "After their historic journey around the Moon, the Artemis II astronauts are coming home. Watch as they arrive in Houston, Texas, home to NASA's Johnson Space Center.\n\nNASA astronauts Reid Wiseman, Victor Glover, Christina Koch, and CSA (Canadian Space Agency) astronaut Jeremy Hansen splashed down in the Pacific Ocean on April 10, 2026, concluding the Artemis II mission. The crew accomplished many milestones on their 10-day mission, surpassing the Apollo 13 record for farthest crewed spaceflight and observing the lunar surface like never before, capturing iconic views.\n\nUnder Artemis, NASA will send astronauts on increasingly difficult missions to explore more of the Moon for scientific discovery, economic benefits, and to build on our foundation for the first crewed missions to Mars.\n\nSee imagery captured from the mission: https://www.nasa.gov/artemis-ii-multimedia/\n\nCredit: NASA",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg",
                    "width": 168,
                    "height": 94
                },
                {
                    "url": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg",
                    "width": 196,
                    "height": 110
                }
            ]
        }
    ],
    "continuation_token": "4qmFsgKBARIkVkxQTDJhQlp1Q2VEd2xTXzJzR2ZZU3Zjb0paTFJHMDY5aS1IGjRDQUY2SGxCVU9rTkhVV2xGUlU1RVRtcGFSVTVyVmtaU1JFcEZUMVZPUTFGNlFRJTNEJTNEmgIiUEwyYUJadUNlRHdsU18yc0dmWVN2Y29KWkxSRzA2OWktSA%3D%3D"
}
获取播放列表详情和视频 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42170/get+playlist+details+and+videos?playlist_id=PL2aBZuCeDwlS_2sGfYSvcoJZLRG069i-H' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
标题、观看次数、点赞数、评论数(YouTube 四舍五入后的整数)、时长(秒)、完整描述、关键词、类别、发布时间、章节和缩略图;subtitles=true 添加字幕文本,include_formats=true 添加原始格式
Endpoint ID: 42171
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42171/get+video+details
输入参数

获取视频详情 — 端点功能

对象 描述
video_id 可选 YouTube Video id
url 可选 Video, shorts or youtu.be URL, instead of video_id
subtitles 可选 Add the transcript (lang picks the language)
lang 可选 Subtitle language, e.g. en or fr
include_formats 可选 Add YouTube's raw format list (large)

剩余免费测试请求:3 / 3。


输入参数

video_id
url
subtitles
lang
include_formats
API 示例响应
JSON
{
    "video_id": "0B4t2mRwuhU",
    "title": "Best PC Build 2026: PC Parts Explained | How to Build A PC 2026",
    "author": "PC Builder",
    "number_of_views": 296929,
    "like_count": 6065,
    "comment_count": 319,
    "comment_count_text": "319",
    "video_length": 1505,
    "description": "Best PC Build 2026 - PC Parts Explained. Want to build a PC in 2026? Start here where we explain all the PC Parts and recommend CPU GPU Combos 2026. 🔻Click \"More\" for Links🔻\n\n*Related Videos & Play Lists*\n▶️ Best Gaming Monitors 2026 https://youtu.be/U70Mf0URWMw\n▶️ PC Build 2026 Lists https://bit.ly/3k0JCSJ\n▶️ How to Build A PC 2026 Playlist https://bit.ly/3M5kC6o\n▶️ Best CPU & GPU Combo 2026 https://youtu.be/wrNMVMlgBe8\n▶️ GPU & CPU Market Monthly Update https://bit.ly/3PgmASr\n\n🔥 Newegg RAM Combo Deals 🔥\nAll DDR5 https://bit.ly/3KNUGAj\nAll DDR4 https://bit.ly/48Z26Jc\n\n*Best PC Build 2026*\nBest $900 Gaming PC Build 2026\n*Full Build At Newegg:* https://newegg.io/nc2e51dd9f\nCPU Options\nRyzen 5500 (PCIE Gen 3) https://link.amazon/B0578Mj1n\n5500F https://link.amazon/B0gYPULJy\n5600 https://link.amazon/B0e6vpW2q\nCooler Included\nMobo https://link.amazon/B0ijO6fqZ\nRAM https://bit.ly/4cCp7V6 or https://link.amazon/B0f8Td7ra\nGPU Options\n🔵 ARC B580\n🔵 ARC B570\nSSD https://link.amazon/B0eBTRVbm\nCase https://amzn.to/4v5eX64 🟠 https://newegg.io/ncb9ddcaf4\nPSU https://amzn.to/4wW1VII\n\n$1300 Gaming PC Build 2026\n🔥🔥 *Full Build at Newegg:* https://newegg.io/7bd8dc9 (240MM AIO Free w/ CPU)\nCPU Options\n7600X https://amzn.to/470XmU0\n9600X https://amzn.to/4yxMwiQ 🟠 https://newegg.io/nc95a45dba\nCooler https://link.amazon/B018E9uXy\nMobo mATX https://link.amazon/B0gtdvvNp (ATX) https://link.amazon/B01a6DGPM\nRAM https://bit.ly/4cdiI2J 🟠 https://amzn.to/4hhhc2n\nGPU Options\n🔴 RX 9070\n🔴 RX 9070\nSSD https://link.amazon/B0aptcyaI\nCase mATX https://amzn.to/4v5eX64 ATX https://amzn.to/4AjZ0MG\nPSU https://link.amazon/B0fSFF42k (A- Tier)\n\n$1600 1440p / 4K Gaming PC Build 2026\n🔥🔥 *Full Build at Newegg:* https://bit.ly/4zaNHG6 (Uses 7700X3D & AIO Combo)\nCPU https://amzn.to/4wOAgdl\nCooler https://link.amazon/B05zZLvOl\nMobo https://amzn.to/4xKNgRh\nRAM 16GB https://bit.ly/4cdiI2J 🟠 https://amzn.to/4hhhc2n\n   32GB https://bit.ly/3M6S3tY 🟠 https://amzn.to/3UzHsMa\nGPU Options\n🔴 RX 9070\n🔴 RX 9070 XT\n🟢 RTX 5070 Ti\nSSD https://amzn.to/4A5Y8Lc\nCase https://link.amazon/B0gGRVWJW\nPSU https://link.amazon/B0bczoSVN\n\nBest Graphics Card for Gaming 2026\n*NVIDIA Graphics Cards*\n🟢 RTX 5090 https://amzn.to/3EMDk3u 🟠 https://bit.ly/4i1X0yU\n🟢 RTX 5080 https://amzn.to/4bf6Cnp 🟠 https://bit.ly/41INACK\n🟢 RTX 5070 Ti https://amzn.to/4i8zdND 🟠 https://bit.ly/3QQ9hdG\n🟢 RTX 5070 https://amzn.to/41GRwnC 🟠 https://bit.ly/3F6v6mW\n🟢 RTX 5060 Ti 16GB https://amzn.to/4kaJ3Q7 🟠 https://bit.ly/3YPbCtT\n🟢 RTX 5060 https://amzn.to/44XphTP 🟠 https://bit.ly/3H7E4kO\n🟢 RTX 5050 https://amzn.to/41KPout 🟠 https://bit.ly/4oSrE1I\n\n*AMD Radeon Graphics Cards*\n🔴 RX 9070 XT https://amzn.to/3XrcS5Q 🟠 https://bit.ly/3FtMz8Z\n🔴 RX 9070 https://amzn.to/4kqy1H4 🟠 https://bit.ly/4hbxczc\n🔴 RX 9070 GRE https://amzn.to/3QwvfpK 🟠 https://bit.ly/4vM0ufz\n🔴 RX 9060 XT 16GB https://amzn.to/437pFxB 🟠 https://bit.ly/3SfAtDG\n🔴 RX 9060 XT 8GB https://amzn.to/46VPtit 🟠 https://bit.ly/45ugZBi\n\n*Intel ARC GPU*\n🔵 ARC B580 https://bit.ly/4lMuDHi 🟠 https://amzn.to/3Qmv24R\n🔵 ARC B570 https://bit.ly/4h5zmjH 🟠 https://amzn.to/4hYrEbZ\n\nThis PC Parts Explained  2026 video covers the basics to get you started on your Best PC Build 2026 journey. We cover pc parts the best gaming pc build 2026 and best PC build 2026. We explain every PC part from best CPU to best GPU to get you started on your 2026 PC Build. How to pick PC Parts can be very confusing. Many want to build a 1440p gaming pc, or the best budget gaming PC Build but don't know where to start. PC Parts Explained 2026 explains best motherboards, best CPU, best graphics card, DDR4 vs DDR5 RAM, best SSD for gaming, and other PC Parts. We also discuss how much it costs to build a gaming PC in 2026 for 1080p, 1440p, and 4K.\n\nProduct Links Disclosure:\nAs an Amazon Affiliate, I earn on qualifying purchases. The channel receives a small commission (at no cost to you) for purchases made using the affiliate links.\n\n0:00 PC Parts Explained 2026\n0:37 8 Key Components\n0:55 Graphics Card Explained\n1:28 GPU VRAM in 2026\n2:33 Current GPUs in 2026\n3:41 GPU Model Differences\n4:23 NVIDIA vs AMD vs Intel GPU\n4:51 CPU Explained - Best CPU 2026\n5:56 Current Ryzen & Intel CPUs\n7:19 Best CPU and GPU Combo 2026\n7:57 Motherboards Explained\n8:11 CPU Motherboard Combos\n9:16 Motherboard Features Explained\n10:24 PCIE Slots\n10:58 Motherboard Audio\n11:44 2026 RAM Explained\n12:40 DDR4 vs DDR5 RAM\n13:25 RAM XMP & EXPO\n13:55 How Much RAM in 2026?\n14:28 Storage: HDD vs SDD & NVME\n14:54 Gen 3 vs 4 vs 5 NVME SSD\n15:49 Best SSD 2026 Tips\n16:19 2026 CPU Coolers - Air vs Water\n17:20 Best PC Case 2026\n18:27 PC Case Features\n19:17 PSU Explained - 80+ Rating & Watts\n20:25 PC Build Cost - 1440p & 4K\n21:09 Best Budget Gaming PC Build 2026\n22:02 Best $1000 PC Build 2026\n22:25 Midrange 1440p Gaming PC Build 2026\n23:25 Ultimate Gaming PC Build 2026\n24:14 PC Build Options in 2026\n24:48 Best Gaming Monitor 2026",
    "is_live_content": false,
    "published_time": "2026-03-14T07:00:02-07:00",
    "published_at": 1773496802,
    "channel_id": "UC0uAeNHLLuAovOTHI-aOZiQ",
    "category": "Science & Technology",
    "type": "NORMAL",
    "keywords": null,
    "thumbnails": [
        {
            "url": "https://i.ytimg.com/vi/0B4t2mRwuhU/hqdefault.jpg",
            "width": 480,
            "height": 360
        },
        {
            "url": "https://i.ytimg.com/vi/0B4t2mRwuhU/sddefault.jpg",
            "width": 640,
            "height": 480
        }
    ],
    "chapters": [
        {
            "title": "PC Parts Explained 2026",
            "start": 0
        },
        {
            "title": "8 Key Components",
            "start": 37
        }
    ],
    "subtitles": {
        "lang": null,
        "is_available": false,
        "subtitles": []
    }
}
获取视频详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42171/get+video+details?video_id=dQw4w9WgXcQ&lang=en' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
YouTube 在视频旁推荐的视频,包含观看次数、点赞数、时长和发布时间;支持分页
Endpoint ID: 42172
GET https://zylalabs.com/api/15623/youtube+content+scraper+api/42172/get+related+videos
输入参数

获取相关视频 — 端点功能

对象 描述
video_id 可选 YouTube Video id
url 可选 Video URL, instead of video_id
continuation_token 可选 To get Next page

剩余免费测试请求:3 / 3。


输入参数

video_id
url
continuation_token
API 示例响应
JSON
{
    "video_id": "dQw4w9WgXcQ",
    "count": 18,
    "results": [
        {
            "type": "video",
            "video_id": "n4nU3dWgPxc",
            "title": "🔥 Morocco Halts Tomato Exports to Mauritania as Price Hits 135 Dirhams! Demands to Sanction the K...",
            "author": "سوكادور sokador ",
            "channel_name": "سوكادور sokador ",
            "channel_id": "UCJrEFL0q-9NjyY_-dbcsGCQ",
            "video_length": 1699,
            "number_of_views": 45242,
            "number_of_views_text": null,
            "like_count": 4889,
            "comment_count": null,
            "published_at": 1792178585,
            "published_at_approximate": false,
            "published_time": "10h ago",
            "description": "🔥 المغرب يوقف  الطماطم لموريتانيا والكيلو وصل 135 درهماً ! مطالب بمعاقبة ملك إسبانيا قرار اللجنة 4\n\nالمغرب يوقف تصدير الطماطم إلى موريتانيا، وسط تقارير عن ارتفاع سعر الكيلوغرام إلى 135 درهماً، ما يثير تساؤلات حول أسباب الأزمة وانعكاساتها على السوق الموريتانية والقدرة الشرائية للمواطنين .\n\nوفي ملف آخر، تتصاعد المطالب باتخاذ موقف من زيارة العاهل الإسباني فيليبي السادس إلى سبتة ومليلية، وما أثارته من نقاش حول السيادة المغربية وردود الفعل السياسية .\n\nكما نسلط الضوء على قرار الجمعية العامة للأمم المتحدة بشأن الصحراء المغربية، ودلالاته السياسية وعلاقته بمسار القرار الأممي رقم 2797 ومبادرة الحكم الذاتي التي يقترحها المغرب .\n\nتابعوا التفاصيل والتحليل في هذه التغطية الإخبارية على جريدة وقتاش تيفي، لمواكبة أبرز المستجدات المغربية والإقليمية .\n\nاشتركوا في القناة وفعلوا جرس التنبيهات ليصلكم كل جديد .\n\n#المغرب #موريتانيا #الطماطم #الصحراء_المغربية #فيليبي_السادس #الأمم_المتحدة \n\n\nالمغرب, موريتانيا, تصدير الطماطم, وقف تصدير الطماطم, الطماطم في موريتانيا, سعر الطماطم في موريتانيا, 135 درهم للطماطم, أزمة الطماطم, أسعار الخضر, غلاء الأسعار, العلاقات المغربية الموريتانية, المغرب وإسبانيا, الملك فيليبي السادس, زيارة سبتة ومليلية, سبتة ومليلية المحتلة, السيادة المغربية, معاقبة ملك إسبانيا, الصحراء المغربية, قرار الجمعية العامة للأمم المتحدة, القرار 2797, الحكم الذاتي المغربي, ملف الصحراء, أخبار المغرب اليوم, أخبار موريتانيا, آخر أخبار المغرب, أخبار سياسية, وقتاش تيفي, wa9tachtv, Morocco news, Mauritania news\n\nأزمة الطماطم والتجارة\nالمغرب يوقف تصدير الطماطم، سعر الطماطم في موريتانيا، الطماطم بـ135 درهماً، أزمة الخضر في موريتانيا، الصادرات المغربية، التجارة بين المغرب وموريتانيا، غلاء المعيشة، القدرة الشرائية الموريتانية .\n\n#المغرب #موريتانيا #الطماطم #أخبار_المغرب #الصحراء_المغربية #الأمم_المتحدة #القرار_2797 #الحكم_الذاتي #فيليبي_السادس #سبتة_ومليلية #العلاقات_المغربية_الإسبانية #غلاء_الأسعار #أخبار_اليوم #وقتاش_تيفي #Wa9tashTV",
            "description_snippet": null,
            "is_live": false,
            "thumbnails": [
                {
                    "url": "https://i.ytimg.com/vi/n4nU3dWgPxc/hqdefault.jpg",
                    "width": 168,
                    "height": 94
                },
                {
                    "url": "https://i.ytimg.com/vi/n4nU3dWgPxc/hqdefault.jpg",
                    "width": 336,
                    "height": 188
                }
            ]
        },
        {
            "type": "video",
            "video_id": "PNksIlmxGBc",
            "title": "قضية الشيخة ـ من الجمال وراقصة في الكباريهات  حتى صبحات مقـ تولة ـ شكون لصـ فاها الشيخة ؟",
            "author": "قصص وحكايات ولد الشعب ",
            "channel_name": "قصص وحكايات ولد الشعب ",
            "channel_id": "UCENhygpW0Qdw_25KMzZPclQ",
            "video_length": 4639,
            "number_of_views": 6954,
            "number_of_views_text": null,
            "like_count": 604,
            "comment_count": null,
            "published_at": 1792186921,
            "published_at_approximate": false,
            "published_time": "7h ago"
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
获取相关视频 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15623/youtube+content+scraper+api/42172/get+related+videos?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 YouTube内容抓取器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

公开的 YouTube 数据:频道、视频、短视频、直播、社区帖子、播放列表、直播流 URL(包括混流 MP4)、文字稿、评论、相关视频和筛选搜索

YouTube内容抓取器 API FAQs

如果提供了 `published_at_approximate` 字段,请检查该字段。值为 `false` 表示时间戳准确;`true` 表示时间戳是根据 YouTube 的相对日期显示估算得出的。某些端点还会返回易于阅读的 `published_time`】【。

当响应包含 `continuation_token` 时,将其传递给对应的端点以请求下一页。令牌因端点而异;`null` 令牌表示没有更多页面。

它可能包含封装的 MP4、仅视频、仅音频和 HLS 清单 URL,以及画质、编解码器、尺寸和大小元数据。检查 `muxed_available` 以获取包含音频和视频的 MP4。URL 会过期,请求可能会重定向,因此请跟随重定向

使用 transcript 端点的语言选择,并通过 `available_languages` 查询支持的字幕。响应包含带时间戳的片段、完整的文字稿,以及字幕是否为自动生成。设置 `subtitles=true` 时,Video Details 也可以包含文字稿】【。

从视频评论响应中获取评论的 `replies_token` 并将其传递给获取评论回复接口。回复以分页评论列表的形式返回;如果有 `continuation_token`,则使用它继续获取

搜索支持结果类型 `all`、`video`、`channel`、`playlist` 和 `short`;上传日期筛选条件 `hour`、`today`、`week`、`month` 和 `year`;时长筛选条件 `short`、`medium` 和 `long`;并支持按 `relevance` 或 `views` 排序

获取话题标签视频接口在该标签没有页面时会返回一个空的结果列表例如响应中可能包含请求的`tag`、值为零的`count`,且没有视频条目

不 社区帖子接口提供帖子文本 图片 附加的视频或投票 点赞数和大致发布时间 但不提供社区帖子评论数或评论内容

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API