Build a YouTube API Video Player app that fetches videos from the YouTube Data API. The app also retrieves video thumbnails and allows the user to tap on a video to watch it right inside the app! This is Lesson 4 we implement the Data Service to send off an API request to the YouTube Data API. A new lesson is released each week.
You can find previous lessons on this playlist:
https://www.youtube.com/playlist?list=PLMRqhzcHGw1bXAOgzO8HokHyq9vmSeq1L
Xcode Project Source Code:
https://cwc.to/youtube-api-code
Timestamps:
00:00 Intro
00:22 The YouTube Data API Endpoint
03:08 How to Add API Key Securely in Xcode
09:16 Storing the API Key in an External File
14:11 Sending the API Request
29:47 Outro
Resources Referenced:
https://developers.google.com/youtube/v3/docs/playlistItems/list
https://console.cloud.google.com/
Want to learn to build apps with a structured learning path that's proven by thousands?
Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. https://cwc.to/youtubeoffer