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
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.