YouTube Data API¶
YouTube is a social media platform that is often overlooked in academic research. This package seeks to make this data source more accessible, while introducing new applications and methods to analyze this platform.
This client is built for GET requests from public data on YouTube. It does not work for updating data on YouTube Channels you own, or getting data from managed accounts from the Reporting API.
You can find the software on Github.
You can download the package from PyPI:
pip install youtube-data-api
In order to access the API, you’ll need to get a service key from the Google Cloud Console.
from youtube_api import YouTubeDataAPI api_key = 'AKAIXXXXXXXX' yt = YouTubeDataAPI(api_key) yt.search('alexandria ocasio-cortez')
There’s a more detailed section on the Quickstart page.