YouTube API & PHP - Get all videos from a channel (google-api-php-client)

Опубликовано: 29 Сентябрь 2024
на канале: Susan B.
1,106
12

Learn how to get all the videos from a YouTube channel using the YouTube data API, PHP, and google-api-php-client package. Covers details on paging through the results using tokens.

=== YouTube API & PHP Series playlist ===
   • YouTube API & PHP  

=== NOTES ===
https://codewithsusan.com/notes/youtu...

=== PRODUCTS I USE ===
Microphone: https://amzn.to/3ZRPdvb
Microphone windscreen: https://amzn.to/3ZRPdvb
(I may receive a small commission from sales associated with the above links. Any income from these sales goes directly to supporting new videos for this channel)

=== CHAPTERS ===
00:00 Introduction
00:41 Starting code
01:18 Getting the uploads playlist ID
02:20 Set up the query
03:33 Getting more than 5 videos at a time
04:48 Page tokens
05:39 Creating Next Page and Previous Page links
08:01 Getting all the videos in a single page request
10:00 Conclusion