数据 YouTube API

YouTube API 为开发者提供了强大的工具来与 YouTube 内容互动 它允许您无缝地检索和管理视频 渠道和评论
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

YouTube API 是一个强大且多功能的工具,旨在为开发人员、内容创作者、营销人员和分析师提供可靠的 YouTube 数据访问。无论您是在构建应用程序、进行内容分析,还是自动化参与度跟踪,这个 API 提供了一整套端点,可以与 YouTube 内容无缝协作。

通过这个 API,您可以超越基本的视频播放,深入了解视频表现、观众参与度和内容发现。这是任何希望利用 YouTube 广阔生态系统中视频、频道和社区互动的人的重要资源。

API 文档

端点


检索关于特定YouTube视频的基本信息,包括其标题、描述、发布时间、观看次数以及其他关键元数据



                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19484/%e8%a7%86%e9%a2%91%e4%bf%a1%e6%81%af
                                                                            
                                                                        

视频信息 - 端点功能

对象 描述
video_id [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"data":{"name":"The War Within Announce Cinematic | World of Warcraft","description":"Our heroes Anduin and Thrall find themselves drawn together by a radiant vision emanating from within the heart of the world. Find out what comes next in the opening chapter of The Worldsoul Saga story arc with the newest expansion World of Warcraft: The War Within: coming in 2024.\n\nPre-purchase the Epic Edition of World of Warcraft: The War Within and unlock rewards today: https://shop.battle.net/product/world...\n\nLearn more and pre-purchase today at https://worldofwarcraft.com/\n\n► Latest WoW news: http://worldofwarcraft.com/news \n► Subscribe to WoW: http://blizz.ly/WoWYTSub\n► Visit WoW on Battle.net: https://us.shop.battle.net/en-us/fami...\n--\n► Follow Warcraft on Twitter:   / warcraft   \n► Follow Warcraft on Instagram:   / warcraft   \n► Like Warcraft on Facebook:   / warcraft  ","channelUrl":"https://youtube.com//@Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg","channelName":"World of Warcraft","viewCount":"5,976,878 views","likesCount":"118K","publishDate":"3 Nov 2023","thumbnails":null,"formats":[{"url":null,"width":3840,"height":2160,"fps":24,"quality":"hd2160","qualityLabel":"2160p","contentLength":"171641961","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":3840,"height":2160,"fps":24,"quality":"hd2160","qualityLabel":"2160p","contentLength":"79307455","mimeType":"video/mp4; codecs=\"av01.0.12M.08\"","durationMs":"296666"},{"url":null,"width":2560,"height":1440,"fps":24,"quality":"hd1440","qualityLabel":"1440p","contentLength":"56675845","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":2560,"height":1440,"fps":24,"quality":"hd1440","qualityLabel":"1440p","contentLength":"40316728","mimeType":"video/mp4; codecs=\"av01.0.12M.08\"","durationMs":"296666"},{"url":null,"width":1920,"height":1080,"fps":24,"quality":"hd1080","qualityLabel":"1080p","contentLength":"30309276","mimeType":"video/mp4; codecs=\"avc1.640028\"","durationMs":"296666"},{"url":null,"width":1920,"height":1080,"fps":24,"quality":"hd1080","qualityLabel":"1080p","contentLength":"21685745","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":1920,"height":1080,"fps":24,"quality":"hd1080","qualityLabel":"1080p","contentLength":"14608050","mimeType":"video/mp4; codecs=\"av01.0.08M.08\"","durationMs":"296666"},{"url":null,"width":1280,"height":720,"fps":24,"quality":"hd720","qualityLabel":"720p","contentLength":"8046218","mimeType":"video/mp4; codecs=\"avc1.4d401f\"","durationMs":"296666"},{"url":null,"width":1280,"height":720,"fps":24,"quality":"hd720","qualityLabel":"720p","contentLength":"12550151","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":1280,"height":720,"fps":24,"quality":"hd720","qualityLabel":"720p","contentLength":"8009605","mimeType":"video/mp4; codecs=\"av01.0.05M.08\"","durationMs":"296666"},{"url":null,"width":854,"height":480,"fps":24,"quality":"large","qualityLabel":"480p","contentLength":"5073211","mimeType":"video/mp4; codecs=\"avc1.4d401e\"","durationMs":"296666"},{"url":null,"width":854,"height":480,"fps":24,"quality":"large","qualityLabel":"480p","contentLength":"6683740","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":854,"height":480,"fps":24,"quality":"large","qualityLabel":"480p","contentLength":"4257196","mimeType":"video/mp4; codecs=\"av01.0.04M.08\"","durationMs":"296666"},{"url":null,"width":640,"height":360,"fps":24,"quality":"medium","qualityLabel":"360p","contentLength":"3122896","mimeType":"video/mp4; codecs=\"avc1.4d401e\"","durationMs":"296666"},{"url":null,"width":640,"height":360,"fps":24,"quality":"medium","qualityLabel":"360p","contentLength":"4357193","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":640,"height":360,"fps":24,"quality":"medium","qualityLabel":"360p","contentLength":"2549422","mimeType":"video/mp4; codecs=\"av01.0.01M.08\"","durationMs":"296666"},{"url":null,"width":426,"height":240,"fps":24,"quality":"small","qualityLabel":"240p","contentLength":"1733310","mimeType":"video/mp4; codecs=\"avc1.4d4015\"","durationMs":"296666"},{"url":null,"width":426,"height":240,"fps":24,"quality":"small","qualityLabel":"240p","contentLength":"2041407","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":426,"height":240,"fps":24,"quality":"small","qualityLabel":"240p","contentLength":"1426920","mimeType":"video/mp4; codecs=\"av01.0.00M.08\"","durationMs":"296666"},{"url":null,"width":256,"height":144,"fps":24,"quality":"tiny","qualityLabel":"144p","contentLength":"845508","mimeType":"video/mp4; codecs=\"avc1.4d400c\"","durationMs":"296666"},{"url":null,"width":256,"height":144,"fps":24,"quality":"tiny","qualityLabel":"144p","contentLength":"2066327","mimeType":"video/webm; codecs=\"vp9\"","durationMs":"296666"},{"url":null,"width":256,"height":144,"fps":24,"quality":"tiny","qualityLabel":"144p","contentLength":"1397467","mimeType":"video/mp4; codecs=\"av01.0.00M.08\"","durationMs":"296666"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"4802995","mimeType":"audio/mp4; codecs=\"mp4a.40.2\"","durationMs":"296727"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"4802995","mimeType":"audio/mp4; codecs=\"mp4a.40.2\"","durationMs":"296727"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"1715689","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"1722038","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"2283939","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"2293717","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"4527395","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"},{"url":null,"width":null,"height":null,"fps":null,"quality":"tiny","qualityLabel":null,"contentLength":"4541497","mimeType":"audio/webm; codecs=\"opus\"","durationMs":"296681"}],"captions":null,"caption_lang":null}}
                                                                                                                                                                                                                    
                                                                                                    

视频信息 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19484/%e8%a7%86%e9%a2%91%e4%bf%a1%e6%81%af?video_id=o03STclgxSc' --header 'Authorization: Bearer YOUR_API_KEY' 


    

获取特定YouTube视频下发布的评论,让您查看观众的反馈和参与情况



                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19485/%e8%a7%86%e9%a2%91%e8%af%84%e8%ae%ba
                                                                            
                                                                        

视频评论 - 端点功能

对象 描述
video_id [必需]
search_type [必需] Possible Values: Top, Latest, Etc
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"comments":[{"commentId":"UgzEl-WV5s3fT8g3KGN4AaABAg","author":"@GenieChef","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_mzQgZLL_yO2WoEzmx2NTY7EvGk7I1lTu1Iv0fSoM6lRwo=s88-c-k-c0x00ffffff-no-rj","authorId":"UCsjK7XCAHmV_w4m9GuW_p6w","text":"Anduin is probably the first CGI human ever that didn't trigger any uncanny valley effect in me. Absolutely insane.","publishedTime":"1 year ago","likesCount":"20K"},{"commentId":"Ugz69EvQdHhJuwGd3tl4AaABAg","author":"@jumprx","authorThumbnails":"https://yt3.ggpht.com/8vSe-D6DJdqXkPafHE6FpPe7yVYGRz_3ri-KFoJy2vPRRqOH3eEij8A3YP6KQUzRYbZd3QFv=s88-c-k-c0x00ffffff-no-rj","authorId":"UCFo2f6e6NAC8XBP1V4mxL_g","text":"This is the best looking CGI ever, rivaling some of the best seen in film.  Anduin straight up looks real","publishedTime":"1 year ago","likesCount":"8.2K"},{"commentId":"UgyEOKL-Zsh2G96ij_V4AaABAg","author":"@heksenshus","authorThumbnails":"https://yt3.ggpht.com/3aOweISUmpcpMmytDM37VkAmtzmIQXstCZEsKXLkRSnO6I22pv2vbDB9VnH8QtyFkPZpXHIJ=s88-c-k-c0x00ffffff-no-rj","authorId":"UCZIp1RJT3NCL82a_1Rza6TA","text":"And right after Magni comes out of the ground and yells \"AZEROTH WOONS MY FRIENDS!\"","publishedTime":"1 year ago","likesCount":"4.7K"},{"commentId":"UgxhG5Durrxvb-5ZYR94AaABAg","author":"@rickjang3357","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_mDWaqt06oQef7-p4F0nDOOUVdmwpn8E9AiSi3ScZc=s88-c-k-c0x00ffffff-no-rj","authorId":"UCAgQb43iiOJrIYid7NXi2BA","text":"Even Anduin have PTSD for Shadowlands, imagine the player who have to sit through the whole patches","publishedTime":"1 year ago","likesCount":"3.8K"},{"commentId":"Ugx5TlS1wZ-nVcKNbpp4AaABAg","author":"@wildeyestudios5","authorThumbnails":"https://yt3.ggpht.com/GFI-K_uB3vujaGRlMydpEZQgaS2srg6T_y8_Z5gqf4zrLJkQqKv660yVjZJiFM0Xj_2rzpXjAg=s88-c-k-c0x00ffffff-no-rj","authorId":"UC1k9u4G_OM_85ccbYmxaLNg","text":"Who else doesn't play anymore but still enjoys the cinematics? Big applause for the animators team","publishedTime":"1 year ago","likesCount":"14K"},{"commentId":"Ugz57Qy9cFMgEUSMgMx4AaABAg","author":"@courtjezter4","authorThumbnails":"https://yt3.ggpht.com/nQxLE7BLE4hQ_mVQg4dPxPambrhfJ0Tlk0MiovhfOe6vv81r3XqQdENh0YqysrQZ0ljnGHyrAv4=s88-c-k-c0x00ffffff-no-rj","authorId":"UCcWjrPQqx-TIQyR_eeze-Ig","text":"Man, if only we could get 1 hour shorts with this type of cinematic, I'd go to the theatre to see them or buy them or whatever.  Amazing!!!","publishedTime":"1 year ago","likesCount":"3.6K"},{"commentId":"UgxFY4p4d-EaiFW9XV14AaABAg","author":"@blakemcytt","authorThumbnails":"https://yt3.ggpht.com/wMKQ89j0qdRjJw9l09uDjBDrkcqj8JSz4aCA727y1Zj9-a2CSresAcqjtI2c-YDHMhVsfj1Q=s88-c-k-c0x00ffffff-no-rj","authorId":"UCKNjrUadSHvb66MDWDHYAjw","text":"They outdid themselves with the quality of the filming this time!","publishedTime":"1 year ago","likesCount":"9.8K"},{"commentId":"UgxnqO16_Vc4ne1MuUt4AaABAg","author":"@ToKander","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_kV_fusJxSjowJ1pkPxmioTU_ktqZaEOcSOf6Uez9twBg=s88-c-k-c0x00ffffff-no-rj","authorId":"UCJIKbmwjt50FLLSSveOzgJQ","text":"Anduin pulling the Lich King pose just kills me","publishedTime":"1 year ago","likesCount":"1.2K"},{"commentId":"UgxyVpHuMkOGEkzcmVZ4AaABAg","author":"@prodPavka","authorThumbnails":"https://yt3.ggpht.com/lDmsxgqMSjyQZF4Q3SVVpm62r3IYNi-w1CMdy_tOo7-8YUWxj1c4ivJ8XV3LInA82nijiadseus=s88-c-k-c0x00ffffff-no-rj","authorId":"UCZTDJ-m2_0qn7Bl7n9PcJvQ","text":"This has to be the most realistic cinematic ever done. Blizzard cinematic department is from another planet.","publishedTime":"1 year ago","likesCount":"6.9K"},{"commentId":"UgwdhVSC6aLBsQWqKil4AaABAg","author":"@usingarchbtw","authorThumbnails":"https://yt3.ggpht.com/KhjMagUL8EXVkG_GXL4QwreIC2GPWIzCp7JghA2AsQGlhfvGsnAH4uvvlVD5PEyVUf4RD3Tr1dk=s88-c-k-c0x00ffffff-no-rj","authorId":"UC8EnUGLH68HI4mWH7y97QMQ","text":"The cinematic team is unbelievably talented, you guys never disappoint.","publishedTime":"1 year ago","likesCount":"4.8K"},{"commentId":"UgyMSZTHiyOZ9n36bld4AaABAg","author":"@robertbenefiel2625","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_lTUMLwA_wnXtVXc1MOVwq6-QhaYAII5f-Lp2UYM_A=s88-c-k-c0x00ffffff-no-rj","authorId":"UCEquUJFIf3PMUvisgfyUlNQ","text":"The look on Anduins face, the eyes, the quiver in the lips, even the jump when Thrall places his hand on Anduins shoulder, it was all done so well and probably the best simulation of emotion I've ever seen in CGI.","publishedTime":"1 year ago","likesCount":"2K"},{"commentId":"UgySUDwvjFTGfI9S02t4AaABAg","author":"@megastatix","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_lDh-oVLk3YZArwjKP0QAXq7PvN92JhpmhxbyDReW5AUA=s88-c-k-c0x00ffffff-no-rj","authorId":"UCezckSt5HmxKD2Jd4eq5QoQ","text":"The midnight cinematic makes this look like absolute cinema","publishedTime":"3 weeks ago","likesCount":"85"},{"commentId":"UgxZ-SHgJwBzH07uUCR4AaABAg","author":"@CyberJedi1","authorThumbnails":"https://yt3.ggpht.com/-Be5Ulp-iVpMKVy7_Jtz9WRPd4RgSquQ9hmjFd-rqc9gN9kJeDmjawgqKF7LbxlveC0GwWCT=s88-c-k-c0x00ffffff-no-rj","authorId":"UC0cbwgJatFeqHyp70hqma6Q","text":"This crossed the difficult uncanny valley barrier, it looks completely photorealistic and believable, amazing job by the cinematics team","publishedTime":"1 year ago","likesCount":"3.5K"},{"commentId":"Ugwak43KlthRRC1dqZB4AaABAg","author":"@Bruder_Benny","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_k92XuK9kFFP2VQyH1OsXlh1cA4mXckuG2IYiELvW3VRw=s88-c-k-c0x00ffffff-no-rj","authorId":"UCOXAtbYZR-gMpl_kNxN5w9w","text":"The look of Anduin is so freaking awesome. you can feel his pain in his eyes","publishedTime":"1 year ago","likesCount":"2.7K"},{"commentId":"UgyyEQqwlKyIvMOU5Zl4AaABAg","author":"@grandemage","authorThumbnails":"https://yt3.ggpht.com/3ymBZl14wBjJjuPJVjOvUoWAoO7xFEODMovoC0BrqAG95jY_9AyOUYt8oeoWdj0ai8Dgyr32NQ=s88-c-k-c0x00ffffff-no-rj","authorId":"UCWgRHHUZImEZRzneguLpyEA","text":"This is honestly some of the best CGI used yet. There are billion dollar movies that would be jealous of the fidelity used in this. Honestly great job to the trailer team!","publishedTime":"1 year ago (edited)","likesCount":"715"},{"commentId":"UgxO_MVUkIvpb3_PzGJ4AaABAg","author":"@KoH4711","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_n9F5SdK39sdnM_Pz_1L-EjoEbXGbIds3l4zBGrnDk=s88-c-k-c0x00ffffff-no-rj","authorId":"UC409qna9EgyiU3rqURJqLZg","text":"Did the animators that worked on this cinematic leave Blizzard or something? Midnight's cinematic is nothing compared to this work of art.","publishedTime":"2 weeks ago","likesCount":"37"},{"commentId":"UgwOYnZ304pvVGqbJ7h4AaABAg","author":"@HeisenbergFam","authorThumbnails":"https://yt3.ggpht.com/I4bwBSPCj5ygvOzCde82LpB84Od4nl1pAdcLRDNJJVgCPsyQn0bwCarq7A4RyR6t7Bf7I-_7wA=s88-c-k-c0x00ffffff-no-rj","authorId":"UClFDTPiMwDQpppSO-gnkFAQ","text":"Crazy to think World of Warcraft came out in 2004 and we still get cinematics 19 years later","publishedTime":"1 year ago","likesCount":"3.1K"},{"commentId":"UgxnE1dkz0WxYCABgCV4AaABAg","author":"@mr.cookiecutter","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_kd82kVOB5KB89_UBh7Vmv4BXvAozzbMQYTWX-dp1QmXDA=s88-c-k-c0x00ffffff-no-rj","authorId":"UClXnhq3jeIAfaDyhCCaZ3IA","text":"Andiun was Traumatized by Shadowlands, he just became the most relatable character in all of WoW for every player.","publishedTime":"1 year ago","likesCount":"2.2K"},{"commentId":"UgwNosG2vcZElU9EKhV4AaABAg","author":"@realastrophotography","authorThumbnails":"https://yt3.ggpht.com/QnqtXKU2OK1f84NycKjEAN2v-2ysKvjf79fuqbbCxBgNGa5H5JhiAJhGQIYGIHYbvblbt1DY6Q=s88-c-k-c0x00ffffff-no-rj","authorId":"UCvPGIcQu-zWHuy1b_5L-3Ig","text":"Blizzard’s cinematic team is legendary. They’ve always pushed the limits of what’s possible even from the very first vanilla cinematic.","publishedTime":"1 year ago (edited)","likesCount":"2.8K"},{"commentId":"UgwUi1Nw3z7zpB_owZt4AaABAg","author":"@aeronothis5420","authorThumbnails":"https://yt3.ggpht.com/ytc/AIdro_mUbBXpRjy2HvpS318-p-X7fMtUQfRucaknj-zt_-G2xQ=s88-c-k-c0x00ffffff-no-rj","authorId":"UCBZCMBcQGe6Av6Zh6qNlniQ","text":"Sorry everyone, came back here to remember what it was like to see a real Blizzard Cinematic after the Midnight one...","publishedTime":"3 weeks ago","likesCount":"68"}]}
                                                                                                                                                                                                                    
                                                                                                    

视频评论 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19485/%e8%a7%86%e9%a2%91%e8%af%84%e8%ae%ba?video_id=o03STclgxSc&search_type=Top' --header 'Authorization: Bearer YOUR_API_KEY' 


    

获取有关YouTube频道的基本信息,包括其名称、描述、订阅者数量和总上传量



                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19486/%e9%a2%91%e9%81%93%e4%bf%a1%e6%81%af
                                                                            
                                                                        

频道信息 - 端点功能

对象 描述
channel_id [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"data":{"name":"Apple","avatar":"https://yt3.googleusercontent.com/s5hlNKKDDQWjFGzYNnh8UeOW2j2w6id-cZGx7GdAA3d5Fu7zEi7ZMXEyslysuQUKigXNxtAB=s160-c-k-c0x00ffffff-no-rj","banner":"https://yt3.googleusercontent.com/wkmFfLCB3J0S4wqmcb8lHJi_s4kCCIZhEGBP04BTndqKS2pHXBIPmQ698V4F-O2K4rHDGv3xPA=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj","channelId":"UCE_M8A5yxnLfW0KghEeajjw","country":"United States","description":"Welcome to the official Apple YouTube channel. Here you’ll find news about product launches, tutorials, and other great content. \n\nApple revolutionized personal technology with the introduction of the Macintosh in 1984. Today Apple continues to be a global leader in innovation with products like iPhone, iPad, Mac, Apple Watch and Apple Vision Pro. Our six software platforms (iOS, iPadOS, macOS, watchOS, tvOS, and visionOS) provide seamless experiences across Apple devices. Breakthrough services include the App Store, Apple Music, Apple Pay, and iCloud. And Apple keeps pursuing innovation with products like HomePod, Apple Fitness+, and Apple Card. Apple’s more than 160,000 employees are dedicated to making the best products on earth, and to leaving the world better than we found it. \n\nAdditional products include AirPods, AirTags, Apple Arcade, Apple Books, Apple News, Apple Podcasts, and Apple TV.","subscriberCount":"20.4M subscribers","viewCount":"1,105,251,269 views","joinedDate":"Joined 21 Jun 2005","canonicalUrl":"http://www.youtube.com/@Apple","links":[{"title":"Apple.com","url":"apple.com","favicon":null},{"title":"Instagram","url":"instagram.com/apple","favicon":null}]}}
                                                                                                                                                                                                                    
                                                                                                    

频道信息 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19486/%e9%a2%91%e9%81%93%e4%bf%a1%e6%81%af?channel_id=UCE_M8A5yxnLfW0KghEeajjw' --header 'Authorization: Bearer YOUR_API_KEY' 


    

使用关键词、主题或类别搜索YouTube视频,以帮助发现相关内容


                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19489/%e6%90%9c%e7%b4%a2%e8%a7%86%e9%a2%91
                                                                            
                                                                        

搜索视频 - 端点功能

对象 描述
query [必需]
period 可选 Possible values: All, hour, today, week, month, year, etc
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"videos":[{"videoId":"-fntXq4YHH4","title":"World of Warcraft's Forgotten Boss","author":{"name":"Turbotarzan - WoW","channelId":"UCa2YEQ9dCjx5A7JPmYOPeXQ"},"duration":"5:08","viewCount":"4,130 views","publishedTime":"17 hours ago"},{"videoId":"JIxTBLua6Zo","title":"I Spent 7 More Days Farming Mounts In World Of Warcraft!","author":{"name":"Antijax","channelId":"UCIu3lCv00LTlL83dO9MpRmw"},"duration":"49:18","viewCount":"11,057 views","publishedTime":"18 hours ago"},{"videoId":"4NTYwQzvoHg","title":"WARCRAFT (2025) Full Movie Cinematic 4K 60FPS ULTRA HD Action Fantasy","author":{"name":"Movie House • 1.6M views • 3 hours ago `","channelId":"UCAuNHn4I4uACvroDCGYVNeA"},"duration":"1:27:21","viewCount":"291,954 views","publishedTime":"1 month ago"},{"videoId":"SpjNeoz2vKE","title":"WORLD OF WARCRAFT Complete Movie: All Cinematics in ORDER Up To Midnight (21 years)","author":{"name":"Athelarius","channelId":"UCTfnCuXM8m0BtTqRgSLxR5Q"},"duration":"8:24:37","viewCount":"40,663 views","publishedTime":"2 weeks ago"},{"videoId":"22Nf00VN0WM","title":"Midnight Gameplay Reveal | World of Warcraft","author":{"name":"World of Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg"},"duration":"2:32","viewCount":"4,104,980 views","publishedTime":"3 weeks ago"},{"videoId":"-PAZk_l09uM","title":"WORLD OF WARCRAFT Full Movie 2024: Dragon | Superhero FXL Action Movies 2024 in English (Game Movie)","author":{"name":"Superhero FXL Games","channelId":"UC0A86RKLCqTEUna3hPlEpzg"},"duration":"2:00:18","viewCount":"18,590,843 views","publishedTime":"1 year ago"},{"videoId":"SiIjThwKLaE","title":"Midnight | Intercession Cinematic | World of Warcraft","author":{"name":"World of Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg"},"duration":"4:30","viewCount":"1,956,677 views","publishedTime":"3 weeks ago"},{"videoId":"FXayBo8TpJ8","title":"Pouriya Adroit x Big Shaggy - WARCRAFT (Official Music Video)","author":{"name":"Pouriya Adroit","channelId":"UCd1X71Klh_i5Qg_2MRCA7Mg"},"duration":"2:37","viewCount":"79,014 views","publishedTime":"2 weeks ago"},{"videoId":"7Ejd0CMgqIQ","title":"Warcraft | Durotan vs. Gul'dan Fight in 4K HDR","author":{"name":"Universal Pictures","channelId":"UCq0OueAsdxH6b8nyAspwViw"},"duration":"6:18","viewCount":"2,395,660 views","publishedTime":"5 years ago"},{"videoId":"c0niE8EBjko","title":"Warcraft (2016) -  Lothar vs Blackhand Mak'gora [4K]","author":{"name":"Kimer “RawCut” Lorens","channelId":"UCyiKdqreDmEBJEN0cDG5OxA"},"duration":"4:33","viewCount":"20,786,711 views","publishedTime":"8 years ago"},{"videoId":"Kc2YrVfDoeM","title":"WarCraft (2016) - Final Battle - Part 1 (No interruptions) [4K]","author":{"name":"Kimer “RawCut” Lorens","channelId":"UCyiKdqreDmEBJEN0cDG5OxA"},"duration":"3:52","viewCount":"15,785,773 views","publishedTime":"8 years ago"},{"videoId":"auDwPSu0sLI","title":"World of Warcraft: 20 Years of Music | Orchestral Concert","author":{"name":"World of Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg"},"duration":"2:19:05","viewCount":"641,560 views","publishedTime":"9 months ago"},{"videoId":"Ss1XWmIJjIA","title":"Midnight | Cinématique d’introduction | World of Warcraft","author":{"name":"World of Warcraft FR","channelId":"UCIYdx-MXGD8CjyLfDCfS-cQ"},"duration":"4:30","viewCount":"83,299 views","publishedTime":"3 weeks ago"},{"videoId":"BCr7y4SLhck","title":"World of Warcraft: Wrath of the Lich King Cinematic Trailer","author":{"name":"World of Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg"},"duration":"3:22","viewCount":"26,050,200 views","publishedTime":"15 years ago"},{"videoId":"2Rxoz13Bthc","title":"Warcraft - Official Trailer (HD)","author":{"name":"Legendary","channelId":"UCAVadSTSh382kte-fQHqMNw"},"duration":"2:14","viewCount":"32,083,789 views","publishedTime":"9 years ago"},{"videoId":"jSJr3dXZfcg","title":"World of Warcraft: Battle for Azeroth Cinematic Trailer","author":{"name":"World of Warcraft","channelId":"UCbLj9QP9FAaHs_647QckGtg"},"duration":"4:30","viewCount":"31,940,139 views","publishedTime":"7 years ago"},{"videoId":"2Q4gFrmCLYY","title":"WORLD OF WARCRAFT Complete Movie: All Cinematics in ORDER up to War Within (WoWLore20th Anniversary)","author":{"name":"Athelarius","channelId":"UCTfnCuXM8m0BtTqRgSLxR5Q"},"duration":"4:02:00","viewCount":"668,024 views","publishedTime":"10 months ago"}]}
                                                                                                                                                                                                                    
                                                                                                    

搜索视频 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19489/%e6%90%9c%e7%b4%a2%e8%a7%86%e9%a2%91?query=warcraft&period=all' --header 'Authorization: Bearer YOUR_API_KEY' 


    

检索有关YouTube频道上特定社区帖子的信息,包括文本内容、媒体和参与指标



                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19490/%e5%b8%96%e5%ad%90%e4%bf%a1%e6%81%af
                                                                            
                                                                        

帖子信息 - 端点功能

对象 描述
post_id [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"posts":[{"text":"It’s time for a WoW pun-off! Who has what it takes to Wrynn?","postId":"UgkxvmpE6eSGTF63k4GfE5xAmPj2x-rGGL3J","thumbnails":null,"likeCount":"767"}],"data":{"name":null,"avatar":null,"channelId":"UCbLj9QP9FAaHs_647QckGtg","canonicalUrl":null}}
                                                                                                                                                                                                                    
                                                                                                    

帖子信息 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19490/%e5%b8%96%e5%ad%90%e4%bf%a1%e6%81%af?post_id=UgkxvmpE6eSGTF63k4GfE5xAmPj2x-rGGL3J' --header 'Authorization: Bearer YOUR_API_KEY' 


    

提取YouTube频道发布的最新社区帖子,包括文本更新、图像和其他媒体



                                                                            
GET https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19491/%e7%a4%be%e5%8c%ba%e5%b8%96%e5%ad%90
                                                                            
                                                                        

社区帖子 - 端点功能

对象 描述
channel_id [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"posts":[],"data":{"name":null,"avatar":null,"banner":null,"channelId":"UCbLj9QP9FAaHs_647QckGtg"}}
                                                                                                                                                                                                                    
                                                                                                    

社区帖子 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10156/%e6%95%b0%e6%8d%ae+youtube+api/19491/%e7%a4%be%e5%8c%ba%e5%b8%96%e5%ad%90?channel_id=UCbLj9QP9FAaHs_647QckGtg' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 数据 YouTube API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

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

🚀 企业版

起价
$ 10,000/年


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

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

数据 YouTube API FAQs

每个端点返回与YouTube内容相关的特定数据例如GET视频信息端点提供视频元数据如标题描述和观看次数而GET视频评论返回用户评论包括作者详细信息和点赞

关键字段因端点而异。获取视频信息的字段包括标题、描述和观看次数。获取频道信息包括频道名称、描述和订阅者数量。每个端点都有与其数据类型相关的独特字段

参数因端点而异 对于获取视频评论 可以指定视频ID以获取特定视频的评论 获取搜索视频允许关键词参数根据主题或类别过滤结果

响应数据采用JSON格式结构。每个端点返回一个包含相关数据字段的对象。例如,GET视频评论返回一个在“comments”字段中的评论数组,而GET频道信息则在“data”对象中返回频道详细信息

每个端点提供不同的信息 GET视频信息提供视频详情 GET频道信息提供频道统计 GET搜索频道根据关键词帮助发现频道 每个端点为开发者的不同用例服务

用户可以利用返回的数据用于各种应用。例如,视频元数据可以用于分析,而评论可以用于了解参与策略。理解结构有助于高效解析和利用数据

典型的用例包括内容分析、受众参与跟踪和应用程序开发。开发人员可以使用视频和频道数据来创建仪表板、自动更新内容或增强其应用程序中的用户体验

数据准确性通过直接访问YouTube的数据库得以维持,确保实时更新。API反映了YouTube上最当前的信息,为开发者和分析师提供可靠的数据

一般常见问题

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 秒直到限制重置。

是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。

您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。

7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。

当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。

付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢