YouTube Analytics API with Python (May 2022 new Google API Library)

preview_player
Показать описание
YouTube API tutorials get outdated pretty quickly, in my own experience, because of the amazing speed of update from Google. I decided to create a walkthrough on Youtube Analytics API and YouTube Data API for my future self instead of digital notes, and sharing it with everyone.

00:00 YouTube Data API & YouTube Analytics API (background)
02:46 Pre-requisites (install google api cli)
05:19 YouTube API Keys & Credentials
06:38 YouTube DAT API vs YouTube Analytics API vs YouTube Reporting API
14:49 Writing our Python script w/ google api client & google_auth_oauthlib
26:55 Creating CLI table from YouTube analytics API
31:05 Using YouTube Data API (python script)
47:57 Summary: YouTube Analytics API vs YouTube Data API

To learn more about creating tables in the command line:
watch the full Build With Python series (7 videos) on my channel.

Code examples in the video are freely available on my GitHub repo:

If you enjoy API-related and API development content, let me know in the comments section. Subscribe to the channel and share the video with a friend!
Рекомендации по теме
Комментарии
Автор

17:44 I think this authentication flow was called OOB and was deprecated in October 2022. I could run this example using ''credentials = flow.run_local_server()'' instead of ''credentials = flow.run_console()''

soniaseguz
Автор

How to get geographical details about people who watched my videos
ie.details about viewers country from where they watch it?

pydevlop
Автор

Hi
Is there a way to get views by many dimensions like (day, adType, video, channel, ageGroup, gender, country, province, city and so on)

Tele-Quebec
Автор

This is really a great video and I would like to thank you for sharing your knowledge. I have a doubt. If I have multiple brand accounts under a single mail ID, how to extract the data for all channels in one go? Can you please make a video on this?

shankarm.s
Автор

In Video Details data how to fetch all the ' Video ID ' from Response Object at the same time with others details ? ' Video ID ' can act as the Primary key here, when ever vdo will be uploaded I want all the Vdo Ids for all Vdo to automatically be added as an another coloumn with all other columns in Data frame .

Mrroy
Автор

Great video. However, It's super annoying having to authorise the application everytime I request the data. Especially as I am trying to automate the process. Is there anyway to work around this?

christianberntsen
Автор

Hi, how can i write the code to ask for the user authorization and save that token to ask the API about that user's Channel info later?

juancastagne
Автор

Please say,
4:21 How to get authorization code

tharushapiyumal
Автор

Everything I see online uses Analytics, and nothing on Reporting. I want to see estimated revenue as well as other stats

PremiumHowTo
Автор

Is there a way to use the API Key to run the query?
I would like to run this from an AWS Lambda Function so a key would work best

stephgooch
Автор

Dude You multiples rows with that: (response['items'])
it is critical with 30k comments.
I handle that, You could also on your github.

Anyway thanks for shape of code

TheCimonek
Автор

Is there a way to get authorization code into our terminal console directly and not copy paste?

rohitkhandelwal
Автор

it does not work with channel=some_other_user_id, I got 403 error

AlexeySilichenko
welcome to shbcf.ru