How to Upload Videos with the YouTube API (using Python)

  Рет қаралды 59,069

Tony Teaches Tech

Tony Teaches Tech

3 жыл бұрын

Learn how to upload a new video with the KZfaq API and Python. This tutorial uses KZfaq Data API v3.
Check out videoflo on GitHub (and follow me there too) 👉 github.com/tonyflo/videoflo
Want more API credits or to make your videos public? Fill out this form here to get your code reviewed support.google.com/youtube/co...
Find more at tonyteaches.tech
Check out my vlog channel ‪@TonyFlorida‬
#youtubeapi #python

Пікірлер: 175
@hugh_dancy
@hugh_dancy 3 жыл бұрын
this is so crazy, i can't believe i found this video right when i needed it. thank you so much for the extensive and thorough explanation !!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Perfect!
@BLVKPWR
@BLVKPWR Жыл бұрын
Outstanding. Clear. Concise. Thank you for sharing.
@danielbabei5050
@danielbabei5050 2 жыл бұрын
This one did the trick! Thank you for the help.
@surfingmoose
@surfingmoose Жыл бұрын
thanks for showing how to setup and use the api. very appreciated
@chewingcharcter2078
@chewingcharcter2078 2 жыл бұрын
Very good explanations! I did this with no trouble at all. thank you so much, big like from here
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Excellent!
@georgesmith3022
@georgesmith3022 2 жыл бұрын
Tony thank you very much for this post. it was very analytical and thorough and I was able to follow it
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Happy to hear it George :)
@API-Learning
@API-Learning 2 ай бұрын
Fantastic . For this I tried 2 month. And finally just now uploaded my video in KZfaq. and I got mail from youtube Our team has reviewed your content, and we think you may need to make changes to make sure it doesn't violate our spam, deceptive practices and scams policy. In the meantime, we've made the following content private:
@geraldthemetrosexualfruitc3030
@geraldthemetrosexualfruitc3030 3 жыл бұрын
is it weird - i just started looking for a such a guide & boom everything i needed to know in one place
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Perfect! Hope this helps
@TheTeacher
@TheTeacher Жыл бұрын
Thank you a lot. Learned a lot from you.
@pitowvideos
@pitowvideos Жыл бұрын
The best video, thank you very much!!👏👏
@victorcalfiman3241
@victorcalfiman3241 Жыл бұрын
Excelente video y bien explicado es justo lo que estaba buscando, saludos.
@Films4English
@Films4English Жыл бұрын
Awesome tutorial
@InternetGeezer
@InternetGeezer 2 жыл бұрын
💗++ for this and Videoflo! Thank you!!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You are so welcome!
@artificialillustrations
@artificialillustrations 8 ай бұрын
Thank you man, this helped me a lot
@andrewtcoder
@andrewtcoder Жыл бұрын
Thank you! It was very helpful!
@jacobmarquez9805
@jacobmarquez9805 Жыл бұрын
I love that you have OldBay spice in the background lol
@jonathanacuna
@jonathanacuna 2 жыл бұрын
The GitHub at the end blew my mind. Thank you so much for walking us through step by step
@cmcdonough2
@cmcdonough2 Ай бұрын
Great tutorial.
@LittleFlyingRockets
@LittleFlyingRockets 2 жыл бұрын
Best tutorial on this! Thanks
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Glad it was helpful!
@actualspectral
@actualspectral 8 ай бұрын
thank you it was very helpful but can you put it on repeat to upload the same video over and over
@DarkBow_
@DarkBow_ 24 күн бұрын
Thanks mate!
@jdcampolargo
@jdcampolargo 2 жыл бұрын
Thank you very much, Tony. Your passion shows through the clarity and deep understanding of the matter. Thanks again. Could you please make a video explaining your workflow? For instance, more about the parsing comment you mentioned at the end of the video as well as how we could use your scripts. I would appreciate how you could write a script that as soon as a file is in the folder, the program would take it and upload it. Also, have you thought about using AI for tittle, description, and thumbnail? Thank you, Tony!
@ZIRRAMA
@ZIRRAMA 2 жыл бұрын
Bro this api is not working anymore. After you upload video it automatically gets blocked and can't be reverted.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks for the kind words Juan! I've put together a tutorial for Videoflo here videoflo.app/ and you can get support on my Discord or Github if necessary
@IMPremNishad
@IMPremNishad 2 жыл бұрын
I love your setup 🔥🔥🔥❤️
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Appreciate that thanks!
@AlanPreiti
@AlanPreiti Жыл бұрын
Hello, thks for the video! You have gain a new subscriber
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thanks for the sub!
@reapertrading
@reapertrading Жыл бұрын
Fire tech and love the old bay
@pacomelammens5148
@pacomelammens5148 Ай бұрын
thank you from france
@melissabeautymissuniversep9669
@melissabeautymissuniversep9669 2 жыл бұрын
this is really good! thanks
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
No problem 😊
@TheMarketingShowChannel
@TheMarketingShowChannel Жыл бұрын
Thank you Tony!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Welcome!
@demart
@demart 2 ай бұрын
Thank you!
@kumardeepam
@kumardeepam 2 жыл бұрын
Thank you for the great tutorial! How do we speciu the channel to which the video should be uploaded to?
@trikkee
@trikkee 8 ай бұрын
Thank you bro !
@daniilzemtsovski5689
@daniilzemtsovski5689 Жыл бұрын
super. thank you for tutorial
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You are welcome 😊
@storyxc6740
@storyxc6740 2 жыл бұрын
thx a lot, it's really helpful.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@InsightByte
@InsightByte 2 жыл бұрын
Smashed it Tony
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks!
@lifeuniverse
@lifeuniverse Жыл бұрын
Thank you Tony, you are a savior. Did you have any issue with the videos being flagged after upload?
@ammarpoint9278
@ammarpoint9278 2 жыл бұрын
Thanks Tony. Is it possible to upload a video with a schedule as I can see only options with private or public? Thanks !!
@tshaylatte9502
@tshaylatte9502 5 ай бұрын
thanks man!
@TonyTeachesTech
@TonyTeachesTech 4 ай бұрын
You're welcome! Subscribe for more :)
@wechatl
@wechatl Жыл бұрын
very thanks broo
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Welcome
@Emrys1.0
@Emrys1.0 6 ай бұрын
This is very nice thanks for this video
@TonyTeachesTech
@TonyTeachesTech 6 ай бұрын
Most welcome 😊
@Emrys1.0
@Emrys1.0 6 ай бұрын
@@TonyTeachesTech i have a question Is the video shared only privately?
@FindSponsor
@FindSponsor 11 ай бұрын
i don't have any website to verify my domain . after uploading video get locked . how to solve this problem
@YSR_Believer
@YSR_Believer Жыл бұрын
Thank you
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You're welcome
@scale...3d
@scale...3d Жыл бұрын
Thanks for making this video. But how to do the same thing using the api key rather than the outh 2?
@cjhoffmn
@cjhoffmn 3 жыл бұрын
Nice Video Tony. Easy to follow - I have mine up and running. I ran into a problem when testing though - Can you share some thoughts about the Quota during testing? In particular - it appears you can only do 12 queries while its still be "tested" but I'm not sure if I can or should change the auth to "in production." Can you walk through that a little bit?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're right about the quota. You'll have to submit your application through the review process to get a quota increase. I went through this process and it takes a week or so support.google.com/youtube/contact/yt_api_form?hl=en
@cjhoffmn
@cjhoffmn 3 жыл бұрын
@@TonyTeachesTech Yup! I ended up doing this - and although I think it was a slightly strange process - they approved me and I'm approved to upload. Thanks!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@cjhoffmn Happy to hear that
@europeanunion5765
@europeanunion5765 2 жыл бұрын
Before I start.. You can only do 12 api uploads in total or what were you guys talking about?
@hongkongintheworld
@hongkongintheworld Жыл бұрын
Thank you so much!! I would like to know if it is possible to post image and text on community post with similar approach like this?
@Amazing_Yao
@Amazing_Yao Жыл бұрын
Someone asked the same question under your video haha
@Me-eh6xz
@Me-eh6xz 2 жыл бұрын
Great content! Can you please teach us how to upload videos to dailymotion using their API?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I'm not familiar with that
@mehdismaeili3743
@mehdismaeili3743 Жыл бұрын
Excellent, thanks. I have two questions: 1)how we get size of youtube video before download it? 1)how we send stream of video to bot telegram for download on telegram? thanks if give me answer. bye
@adrielfilipedesign
@adrielfilipedesign 5 ай бұрын
Thankssss
@TonyTeachesTech
@TonyTeachesTech 4 ай бұрын
You're welcome! Subscribe for more :)
@tammannappamannikeri5120
@tammannappamannikeri5120 Жыл бұрын
ty
@reliableaxis
@reliableaxis 2 жыл бұрын
Thanks for this video mate. I must just be too much of a damn newb because I almost always bump into issues instantly. Its like no ones environment is the same. For instance, I can't even run the command pyrhon3 -V without errors, but py --version does work. the "which" and "source" commands do not work either. Trying really hard to learn but its so damn difficult.
@okpanda_
@okpanda_ Жыл бұрын
if you are on windows, use python and not python3. for example, python3 -V. you do not need to use the which and source commands mentioned in the video either
@indieideas8079
@indieideas8079 3 жыл бұрын
Awesome. Can you also make a video for php?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Probably not. Google might have example PHP code though
@CutPerfectMemes
@CutPerfectMemes 3 жыл бұрын
Thanks for the affort but this is so uselss because the videos you upload with the API are always blocked and private. Google says: "All videos uploaded via the videos.insert endpoint from unverified API projects created after 28 July 2020 will be restricted to private viewing mode. To lift this restriction, each API project must undergo an audit to verify compliance with the Terms of Service. Please see the API Revision History for more details."
@ricky10116
@ricky10116 3 жыл бұрын
Thanks for making this video in advance! Is there any workaround to solve this to make it be access in public ? or just need to fill in the form T_T If I write code for a personal test purpose, can I apply it or not. Lack this step to make my project be all automatic ORZ developers.google.com/youtube/v3/revision_history#release_notes_07_28_2020
@xenophod
@xenophod 2 жыл бұрын
Same! All videos uploaded with the API are being restricted.
@salesgurupro
@salesgurupro 2 жыл бұрын
Is there any way we can avoid the authorization every time we upload a new video?
@recklessvelociraptor2579
@recklessvelociraptor2579 10 ай бұрын
Do you have any videos where you teach touch typing?
@hidayatmania7403
@hidayatmania7403 Жыл бұрын
Hi Tony that was a really good tutorial. I wan't to know if there is any way we can bypass the consent screen as I want to run my code on cloud instance daily as a cron job. So, I need a way to bypass the consent screen. This can be a good video for your channel too.
@facilitator999
@facilitator999 Жыл бұрын
did you find a solution, i also want to automate upload.
@nandinitata2951
@nandinitata2951 Жыл бұрын
@@facilitator999 have you?
@facilitator999
@facilitator999 Жыл бұрын
@@nandinitata2951 it's not possible to do it.
@jejdndjdjfjdhebdndnfmf782
@jejdndjdjfjdhebdndnfmf782 2 жыл бұрын
help i get this error. UserWarning: Cannot access upload_video.py-oauth2.json: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) it says the file doesnt exist but it does
@weedytt9031
@weedytt9031 6 ай бұрын
i exceeded the quotas very fast. is there a simple way to increase them?
@sanya7349
@sanya7349 3 күн бұрын
Hello, I have a question. I am trying to set this up on a Linux server, does the command "python3 -m venv ~/env/api" at the beginning of the video apply to Linux or is it MacOS specific?
@MadCaril
@MadCaril Жыл бұрын
Struggling to create a json file using my terminal on spyder. it keeps saying its not a recognized command. help :(
@itsumarejaz
@itsumarejaz 11 ай бұрын
Can you please make a video for Facebook Video Upload API as well. Will be much appreciated. Thanks
@yomanlight5204
@yomanlight5204 Жыл бұрын
Hi i have this error : Please specify a valid file using the --file= paramet Someone can help me please ?
@altohausen
@altohausen Жыл бұрын
noob question... would it work to upload videos from google photos to youtube?
@marketingunderground
@marketingunderground Жыл бұрын
my video is uploaded but my title is missing , i have the error "command not found" any ideas ?
@testformelda
@testformelda Жыл бұрын
I have the same issue.
@realcartoongirl
@realcartoongirl Жыл бұрын
what's the limit per day
@Thilina_madushan
@Thilina_madushan 2 жыл бұрын
Tell me if you can do what I say. Upload a video from our pc to KZfaq. Can't upload a video from a google drive without it?
@hugh_dancy
@hugh_dancy 3 жыл бұрын
is there a way to modify it to bulk upload movies that are in one folder ?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You can call the upload function in a loop to do that
@dabody123456
@dabody123456 3 жыл бұрын
i enjoy from the tutorial video is more than Awesome I had fun and learned I would have had a problem im using Windows How is the client_secrets.json at 12:27 Or rephrase the question How to create a josn file and or if i download it form KZfaq > thnx alot for share it
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You can find the template for the json file here developers.google.com/youtube/v3/guides/uploading_a_video
@dabody123456
@dabody123456 3 жыл бұрын
@@TonyTeachesTech thnx a lot for answer {f} i do remembrance now after I have a silly question !! fellow i m working in winds 7 i found error : can't find _main_ module in upload_video.py thnx a lot for helping
@jan.bellon
@jan.bellon 2 жыл бұрын
Why does the api make an error 403 and say i exceeded my quota in my first try? WHY ? !!!!!
@knightc0r3
@knightc0r3 Ай бұрын
9:10 soo... what happens if we don't have our own website?
@danielestebanparragallego6387
@danielestebanparragallego6387 Жыл бұрын
You should decrease resolution of your monitor for Your next videos, I'm watching on my cellphone and I don't get visualize the content in a good way
@zwayz3546
@zwayz3546 Жыл бұрын
wdym? i have video in 1080p, can see everything.
@danielestebanparragallego6387
@danielestebanparragallego6387 Жыл бұрын
@@zwayz3546 you are watching from a big screen. Try it from your cellphone...
@teddyhogan
@teddyhogan Жыл бұрын
Are you going to open up the github repo again? Does this video work without your GitHub? Thanks!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You can use the code in my GitHub repo with your API key
@iGageit
@iGageit 9 ай бұрын
would this work with YT Shorts?
@technologyinsights94
@technologyinsights94 Жыл бұрын
Can we upload using API Key?
@fredherring876
@fredherring876 Жыл бұрын
does anyone know how I can run this as a script
@460ZoO
@460ZoO 11 ай бұрын
Does anyone have "Processing abandoned" on KZfaq after the upload?
@4n7s
@4n7s 2 жыл бұрын
I tried to do the same but my videos privacy status is "Private (Locked)" and I can't change it in the control panel, apparently this is because my API is unverified. How come you can change this setting?
@Majd8346
@Majd8346 2 жыл бұрын
Same problem if you find any solutions tell me please
@TeeChemist
@TeeChemist 2 жыл бұрын
You guys got any?
@marketingunderground
@marketingunderground Жыл бұрын
@@TeeChemist do you have the title replaced by "Test Title" ?
@ayankakadiya
@ayankakadiya Жыл бұрын
I have a verified api. I don't have any such issues
@ryleq9295
@ryleq9295 11 ай бұрын
@@ayankakadiya where did you verify it
@moneybags6840
@moneybags6840 Жыл бұрын
What about uploading multiple videos to a specific playlist?….
@okami_linux_gaming
@okami_linux_gaming 3 ай бұрын
hi, is that youtube api free of costs??
@casual_gamer1413
@casual_gamer1413 2 жыл бұрын
API is free? and also tell me that when need to upload bulk videos on schedule basis then?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Yes the API is free
@JeffAporta
@JeffAporta 2 жыл бұрын
the content of this video works only for private videos, i tried to upload public videos and it won't let
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You'll need to have your app reviewed by Google (or at least a quota increase) to upload public vids
@praveensarathy4549
@praveensarathy4549 Жыл бұрын
An error occurred: b'{ "error": { "code": 403, "message": "Request had insufficient authentication scopes.", "errors": [ { "message": "Insufficient Permission", "domain": "global", "reason": "insufficientPermissions" } ], "status": "PERMISSION_DENIED" } } ' how to resolve this
@AnkitMaurya-bb6jr
@AnkitMaurya-bb6jr 4 ай бұрын
please explain with use with javascript
@lordquin5
@lordquin5 Жыл бұрын
If anyone comes across this bug: If your API page doesn't load: Use a different browser. I used Opera and it didn't work and then I switched to Chrome
@RobertJene
@RobertJene 7 ай бұрын
12:24 - create a python script to upload to KZfaq
@alexdin1565
@alexdin1565 2 жыл бұрын
Hi, can we upload a video from an external URL??
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Probably, but that would take some additional coding
@alexdin1565
@alexdin1565 2 жыл бұрын
@@TonyTeachesTech please can you show me how i can do it
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
@@alexdin1565 I don't know how to do that without doing research
@TechnicalHeavenSM
@TechnicalHeavenSM 2 жыл бұрын
Can we somehow see upload progress bar??
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I'm not sure how to do that
@TechnicalHeavenSM
@TechnicalHeavenSM 2 жыл бұрын
@@TonyTeachesTech ok☹️☹️
@meridorl
@meridorl 2 жыл бұрын
At uploading i am getting HTTP error 400 , is anybody know what it is ?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
That means "Bad Request". I would make sure that you are providing the correct info
@Vegetal999
@Vegetal999 2 жыл бұрын
Is it possible to run it on Google colab?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I'm not familiar with Google Colaboratory, but after a quick search it seems like it might be possible!
@Vegetal999
@Vegetal999 2 жыл бұрын
@@TonyTeachesTech can you make a video?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
@@Vegetal999 Sorry probably not
@Vegetal999
@Vegetal999 2 жыл бұрын
@@TonyTeachesTech why?
@xenophod
@xenophod 2 жыл бұрын
@@Vegetal999 I would guess "why" is because he's not familiar with Google Colaboratory.
@amelieviennot5570
@amelieviennot5570 2 жыл бұрын
you can bulk upload videos but cant bulk insert thumbnails why is that ?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Not sure
@akameamv4720
@akameamv4720 10 ай бұрын
what about shorts ??
@jowlergames115
@jowlergames115 Жыл бұрын
I am not sure you should share your secret key buddy 10:54
@LOANETWORK
@LOANETWORK 7 ай бұрын
what is the point of this tutorial if it doesnt include the verifcation process?
@MarkRodenburg
@MarkRodenburg Жыл бұрын
the github is not for uload KZfaq anymre
@MeraIPLOfficial
@MeraIPLOfficial 11 ай бұрын
That's not API That's using OAuth and Asking for Authentication every time i start the script and that doesn't fulfil the purpose of Automation
@Philippinesball582
@Philippinesball582 Жыл бұрын
I'm upload is KZfaq please
@TanmaySpotalpha
@TanmaySpotalpha 9 ай бұрын
Not useful. I needed fully through code, not passing by command line, in that case manual upload is good.
@akatsuki367AKATSUKI
@akatsuki367AKATSUKI Жыл бұрын
can anyone explain me something i am getting dquote> at last after all the steps what shouls i do next @kzfaq.info/love/WPJwoVXJhv0-ucr3pUs1dA
@BigDog_Memes
@BigDog_Memes Жыл бұрын
this is out of date, oauth2client is bad and not supported anymore
@KING-zz6qt
@KING-zz6qt Жыл бұрын
Hello, first of all this was a truly great tutorial with very clear instructions, so thank you very much. But I don't really understand what to do when I try to verify my api application, because the verification process requires me to specify the domain name and homepage of the project. I really don't know what to do, since I don't have that. Thanks again and any help is much appreciated. ❤
@nameeinfugen5724
@nameeinfugen5724 11 ай бұрын
Have u found a solution to this? I am running into the same problem.
@RSfoxyRS
@RSfoxyRS 2 жыл бұрын
PLEASE HELP ME, where do i add the paramatersd!!! python upload_video.py --file="/tmp/test_video_file.flv" --title="Summer vacation in California" --description="Had fun surfing in Santa Cruz" --keywords="surfing,Santa Cruz" --category="22" --privacyStatus="private"
@meusegundocanal6169
@meusegundocanal6169 Жыл бұрын
Hey! Could you tell me why my videos are getting blocked??
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 28 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 7 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 35 МЛН
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 175 М.
Upload Videos to YouTube with the Data API in Python
34:25
Nono Martínez Alonso
Рет қаралды 12 М.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 332 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 685 М.
Making Automatic YouTube videos with Python
7:32
Shifty the Dev
Рет қаралды 182 М.
How to Buy a Car To Flip for a Profit ($$$ Side Hustle)
47:41
ChrisFix
Рет қаралды 9 МЛН
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 412 М.
Python Website Full Tutorial - Flask, Authentication, Databases & More
2:16:40
ДОМАШНЕЕ ЭСКИМО//ПРОВЕРКА РЕЦЕПТА ТИК ТОК
0:22
ОЛЯ ПЕРЧИК
Рет қаралды 1,4 МЛН
28 июля 2024 г.
0:20
TULPAR_KG🇰🇬
Рет қаралды 7 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
0:45
28 июля 2024 г.
0:20
TULPAR_KG🇰🇬
Рет қаралды 7 МЛН