Getting Started with YouTube Data API | Exploring YouTube Data API (Part-1)

Explore the awesome YouTube Data API using Python!
In this video, you will learn how to setup your project to use YouTube Data API using Python.

1. Create a project on Google Developer Console.
2. Enable YouTube Data API v3 for your project.
3. Create api key credential for your project.
4. Install google-api-python-client using:
pip install google-api-python-client

API guide:
Google Dev. Console:

Explore my tutorials:

More awesome topics covered here:
WhatsApp Bot using Twilio and Python:
Discovering Hidden APIs:
RegEx in Python:
Introduction to Numpy:
Introduction to Matplotlib:
Introduction to Pandas:
Intermediate Python:
Functional Programming in Python:
Python Package Publishing:
Multithreading in Python:
Multiprocessing in Python:
Parallel Programming in Python:
Concurrent Programming in Python:
Dataclasses in Python:
Exploring YouTube Data API:
Jupyter Notebook (Tips, Tricks and Hacks):
Decorators in Python:
Inside Python:
Exploring datetime:
Computer Vision for noobs:
Python for web:
Awesome Linux Terminal:
Tips, tricks, hacks and APIs:
Optical Character Recognition:
Facebook Messenger Bot Tutorial:


#python #youtube #api


Xem thêm bài viết khác:

Article Categories:
Giải Trí


  • Code here:
    Full Playlist:

    Indian Pythonista June 23, 2020 4:44 pm Reply
  • do you have for android?

    hanada nefa June 23, 2020 4:44 pm Reply
  • Hi.Thanks for all the tutorial videos so far, they've really
    helped beginners like me to come a long way. I am presently
    working on a project. I want to be able to play Live videos
    (alone) from my channel on my app. I've successfully added
    the youtube player to my app, i have an API key and a client ID.
    I was able to enter my parameters in the Youtube Data explorer
    and got a 200 success (green bar). The problem is that i don't
    know how to get this generated codes into my Android studio to
    as to enable my app make the data calls. i'll be very happy, if
    you can help me with this explanation. thanks.

    Samuel Akporedafe June 23, 2020 4:44 pm Reply
  • Thanks for the tutorial and for your efforts!

    Soumya Ranjan Das June 23, 2020 4:44 pm Reply
  • nice

    l Niebieskv l June 23, 2020 4:44 pm Reply
  • Bro if we like to fetch the comments for NLP Analysis as good or bad then how we can do it with this APIs in Django?

    Anwar Ali June 23, 2020 4:44 pm Reply
  • Great video, but you said that you are writing all this code in the google-api-python client. You have it open in a chrome tab. How can I also do this?
    I did not find an explanation looking on the web. So I hope someone can help me out 🙂
    Thanks for any help 🙂

    Luca Hainz June 23, 2020 4:44 pm Reply
  • I can't understand a word you are saying.

    Ethan Bennett June 23, 2020 4:44 pm Reply
  • Thank you for sharing!

    Yesenia Hernandez June 23, 2020 4:44 pm Reply
  • can you make a playlist of this tutorial series? it's hard to find out the whole video series.

    ranjan paul June 23, 2020 4:44 pm Reply
  • Thanks for your great video. But could you please help me through this problem: I did exactly what you did and when I run youtube=build ('youtube', 'v3', developerKey=api_key) I get this error: HttpError 403 when requesting returned "Forbidden"

    Am I missing anything? Are you sure we don't need to set OAuth client ID or sth? I'm from Iran and have to use VPN. Plz don't tell me the error I'm getting is because I'm using VPN. If it is, what could I do about it?

    Zahra Movahhedinia June 23, 2020 4:44 pm Reply
  • I made an app to find the length of YouTube playlists.
    You can see the repo here.

    Btw. You were my instructor during the Nagarro bootcamp. Taught me to make webapps. 😀

    Sharat June 23, 2020 4:44 pm Reply
  • This is the start of a comment thread.

    Paul Illing June 23, 2020 4:44 pm Reply
  • Super clear! But I got a trackback. "NameError: name 'api_key' is not defined". I copied the code in jupyter and got this. But everything goes smoothly when i run the program in command. Why?

    Sophie Liu June 23, 2020 4:44 pm Reply
  • Never sudo pip ! Otherwise to the point 👍

    Anupam Chakrawarti June 23, 2020 4:44 pm Reply
  • 1) how can i get channel list order by subscribed count?

    2) how can i get channel list group by country?

    신형준 June 23, 2020 4:44 pm Reply
  • thank u so fukci much mate <3

    K0zoh June 23, 2020 4:44 pm Reply
  • How to get most viewed video by week ?

    Kamlesh Likhare June 23, 2020 4:44 pm Reply
  • hi, I'm getting the below error. Did I miss any steps in between? Please Direct me. thank you
    from apiclient.discovery import build

    youtube = build('youtube', 'v3', developerkey=api_key)


    NameError Traceback (most recent call last)

    <ipython-input-2-d03f03801b5c> in <module>

    —-> 1 youtube = build('youtube', 'v3', developerkey=api_key)

    NameError: name 'build' is not defined

    Vikram Kalvakuntla June 23, 2020 4:44 pm Reply
  • Which distro?

    SoniSins June 23, 2020 4:44 pm Reply
  • I've encountered this error: "AttributeError: 'str' object has no attribute 'request'" Do you know why and how can I fix this?

    Dejio Dejimoto June 23, 2020 4:44 pm Reply
  • Is it safe to share your Google API key publicly ?

    Abhishek Mishra [IIT Kgp] June 23, 2020 4:44 pm Reply
  • test

    Tyler Vanzo June 23, 2020 4:44 pm Reply
  • #test

    Tyler Vanzo June 23, 2020 4:44 pm Reply
  • *test

    Tyler Vanzo June 23, 2020 4:44 pm Reply
  • Dude, you rock. So straightforward, looking forward to more.

    Micah Myers June 23, 2020 4:44 pm Reply
  • Disclaimer: I come from an analytics and data science background
    I have been playing around with YT API for a while but I can't wrap my head around them. It seems to me, but please tell me that I am wrong, that there is no way to access the detailed data that are necessary to do some proper data science.
    What I would like to have is a flat file, csv, excel, text, whatever that contains:
    1 ROW per each VIEW
    in the ow, there must be ALL the data available for the view (video, duration, date, time, playback location, source, demographic, geography, browser, OS, etc. etc. etc.)
    I don't mind filtering the data, I would be perfectly happy to download a few terabytes of data every month or so.
    This information must exist because it is exposed in aggregated form in the YT analytics, but it seems that it is not accessible in any way.
    It is really frustrating, for a data scientist, to have to cope with aggregated data that do not offer any real insight. I can tell if a video or a group of videos are doing well but not why! I
    Is there anyone else around who shares the same frustration? Is there a way of doing what I need?

    Millennium 7 * HistoryTech June 23, 2020 4:44 pm Reply
  • I just to display 1) No of subscriber and 2) Total no of videos on my channel. These two info on my personal website. Can I use this API ?

    Tanzeel Mirza June 23, 2020 4:44 pm Reply
  • indian Pythnoist I have a question. Will this method of creating client blog = build('blogger', 'v3', developerKey=Key). works for everyone like drive and all ? or we need to do O Auth Authorization?

    soumilshah1995 June 23, 2020 4:44 pm Reply
  • what  is the notebook you are using to implement the key etc? And how do you connect it together? I need help connection youtube api (already have the key) and connect it to my django project. Need help

    Andy hussain June 23, 2020 4:44 pm Reply
  • where is the url of the videos?

    Atharva Sapre June 23, 2020 4:44 pm Reply
  • Which OS are you using?

    Mayank Devnani June 23, 2020 4:44 pm Reply
  • Nice video but you speak like you are in a rush!!! Try to speak more slowly, for those who are not English native language… thanks.

    Mariana Belo Quertier June 23, 2020 4:44 pm Reply
  • Please help me to get up with jupyter and make video on it with all package you used

    Self Learner June 23, 2020 4:44 pm Reply
  • Hello, how did you get to this screen at 1:27 where you were actually adding the code later in the video?

    Andrew Coyne June 23, 2020 4:44 pm Reply
  • Hi, it is a great video but I have a problem. I can't run the build() function. It occured TimeoutError: [WinError 10060]. I am in China where i should use VPN to aceess Youtube. Is it the problem? How can I solve the problem? THANKS

    Mage Mei June 23, 2020 4:44 pm Reply
  • Oh, it's very hard for me, cos' I'm Russian and my English… bad (hello (sry for my bad english)), haha (so funny (nope))
    Hello. I need to log stream chat from YouTube to txt file.
    How to make it easier? Maybe there is already a ready answer to my question? Or where I can ask about this?
    And can I get donate informations (nickname, the sum and text of donation) to txt? With which project (donation alerts, streamlabs and other) will it be easier to realize?

    Spirit June 23, 2020 4:44 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *