Quantcast
Channel: Blog - JLexart - Joomla! Extensions - JLexart - Joomla! Extensions
Viewing all articles
Browse latest Browse all 47

[SOLVED] YouTube API v3 - Missing items in channel

$
0
0
[SOLVED] YouTube API v3 - Missing items in channel

Recently, some clients have feedback about missing video in their channel when use Youtube module. I tested again and confirmed this issue. The cause is: "Standard feeds are updated periodically, with the update frequency varying from feed to feed. Many feeds are updated every 30 to 40 minutes but other feeds – such as those that capture daily, weekly or monthly results – may only be updated hourly or even daily. - Youtube".

But, we can't wait until list video is show fully. So I have tried some way to solve this issue and I think the way below is a best:


By default, Youtube will auto-create playlist for each activity of your channel. Upload playlist that you need. So, how to get ID of this playlist ?

Example your channel ID is: UCbPuFpzPkRVaksX3H_F7J4A and your Youtube API key is: AIzaSyBpY-8w07dI-Ky_dY0K96aDwZt2O4dPjA0

Run the URL: https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id=UCbPuFpzPkRVaksX3H_F7J4A&key=AIzaSyBpY-8w07dI-Ky_dY0K96aDwZt2O4dPjA0

Here is Youtube (JSON) response:

Path to find Playlist ID: items -> contentDetails -> relatedPlaylists -> uploads.
In this example is: UUbPuFpzPkRVaksX3H_F7J4A

Now, you can use this playlist to retrieve all from your channel.


Viewing all articles
Browse latest Browse all 47

Trending Articles