I want to get 4 videos retrieved randomly from a channel id with YouTube API V3. So I want that when I refresh the page the videos retrieved change. The script I'm creating is in PHP language, a custom plugin inside a Wordpress site.
Now I use this api call, but this retrieve always same videos:
$api_call = "https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId=".$channelId."&maxResults=4&key=".$YouTube_API_key."";
There is a way to get videos randomly by YouTube API?
If someone think I have to rand myself with php functions like rand, but I have to get all videos, so if I have 200 videos and maxResults can only be max 50 value, i can't do it by that way.