Get latest videos of multiple YouTube channels via YouTube API?

爷,独闯天下 提交于 2019-12-24 18:51:34

问题


I'm currently building a web-app which will display the last videos of a youtube channel. My problem is, that the YouTube-API only allows 100 requests per day, which are way less than I need.

So my Idea was to request the videos every 20 minutes or so from every user and then cache them somewhere to display later on.

Is there a way to select multiple videos per channel for multiple channels in a single request?

Greetings Alex


回答1:


There is a solution to your problem, but it's quite involved since is about a completely different application model:

Instead of regularly pulling -- at a constant rate, but unsatisfactory due to limitations imposed by default quotas -- a channel's uploads list via the API's search endpoint (or the playlistItems endpoint queried for the channel's uploads list), make use of the so-called API push notifications.

This solution implies entirely different upfront requirements, but, if you really need real time updates, then that will suit you more effectively.



来源:https://stackoverflow.com/questions/56218974/get-latest-videos-of-multiple-youtube-channels-via-youtube-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!