How To Get YouTube Channel Videos Using YouTube API Call

14:42


If you want to get particular YouTube channel videos information like, videoId, thumbnail URL, title, description, etc; for using those videos in your different type of applications.

Then, you have to call YouTube API (called as YouTube Data API) given by Google, the basic URL for that YouTube API is : 

https://www.googleapis.com/youtube/v3/

and, with parameters to get videos of particular channel on YouTube is : 

https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId={YOUR_CHANNEL_ID}&maxResults=50&key={YOUR_API_KEY}

Steps for getting this URL for your YouTube channel videos :-

  • First, open this URL in your browser, https://developers.google.com/apis-explorer/#p/ and scroll down until you see YouTube Data API, just like below



get_youtube_channel_videos_using_youtube_api_call



  • after that, you have to click that YouTube Data API and next page will be like this, 



get_youtube_channel_videos_using_youtube_api_call_1



  • In this picture you will see, various services of YouTube API's, for getting videos of any YouTube channel, you have to select youtube.search.list , then another page will open, which looks like that, 



get_youtube_channel_videos_using_youtube_api_call_2

  • In this page, you will see various text fields, these text fields are the parameters to be passed in HTTP request of YouTube API call, you can study about them from this website of google. i am telling you the required parameters value to call YouTube API and see the response.
  • Fill text fields values, 

     part = snippet 

     channelId = {YOUR CHANNEL'S ID WHOSE VIDEOS YOU WANT TO GET}
     
    maxResults = {ACCORDING TO YOU}

    order = date (the ordering of videos in response)

or, fill parameters as per your requirement.
  • Then, click EXECUTE button at below , for getting response and URL for making HTTP requests from your applications.
  • URL is : 
https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId={YOUR_CHANNEL_ID}&maxResults=50&key={YOUR_API_KEY}
  • Response will be in json format, at bottom of page.
So, at last you can use this type of json formatted data in your applications.

Anything, you found wrong in this article, pls comment that...


You Might Also Like

0 comments

If you have any questions or suggestions, you are free to ask, i will appreciate that and, i will try my best...

Google Ads