YouTube (UIKit) app: display more than 5 videos?

Good morning, coders! I completed the YouTube app tutorial, and I am wondering how to display more than 5 videos. My playlist is long, but only the first 5 videos show up in the app. Can anyone help?

Change the API_URL so that you specify a &maxResults=50. For example:

"https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=\(Constants.PLAYLIST_ID)&key=\(Constants.API_KEY)"

Thank you SO much! I’ve been thinking about this for hours!

@karrinburns

Did it work for you?

Yes! I was just able to update my app and resubmit it to the App Store. Thank you!

Awesome. Glad to have been able to point you in the right direction.