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

Поділитися
Вставка
  • Опубліковано 12 лип 2021
  • Learn how to upload a new video with the UA-cam API and Python. This tutorial uses UA-cam 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
  • Навчання та стиль

КОМЕНТАРІ • 172

  • @hugh_dancy
    @hugh_dancy 2 роки тому

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

  • @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

  • @API-Learning
    @API-Learning Місяць тому

    Fantastic . For this I tried 2 month. And finally just now uploaded my video in UA-cam. 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:

  • @pitowvideos
    @pitowvideos Рік тому

    The best video, thank you very much!!👏👏

  • @georgesmith3022
    @georgesmith3022 2 роки тому

    Tony thank you very much for this post. it was very analytical and thorough and I was able to follow it

  • @chewingcharcter2078
    @chewingcharcter2078 2 роки тому +1

    Very good explanations! I did this with no trouble at all. thank you so much, big like from here

  • @victorcalfiman3241
    @victorcalfiman3241 Рік тому +1

    Excelente video y bien explicado es justo lo que estaba buscando, saludos.

  • @andrewtcoder
    @andrewtcoder Рік тому

    Thank you! It was very helpful!

  • @artificialillustrations
    @artificialillustrations 7 місяців тому

    Thank you man, this helped me a lot

  • @jonathanacuna
    @jonathanacuna 2 роки тому

    The GitHub at the end blew my mind. Thank you so much for walking us through step by step

  • @TheTeacher
    @TheTeacher 10 місяців тому

    Thank you a lot. Learned a lot from you.

  • @InternetGeezer
    @InternetGeezer Рік тому

    💗++ for this and Videoflo! Thank you!!

  • @Review-Stuff
    @Review-Stuff Місяць тому

    Awesome!! Thanks

  • @jdcampolargo
    @jdcampolargo 2 роки тому +7

    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 роки тому +1

      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

  • @Films4English
    @Films4English Рік тому

    Awesome tutorial

  • @geraldthemetrosexualfruitc3030
    @geraldthemetrosexualfruitc3030 2 роки тому

    is it weird - i just started looking for a such a guide & boom everything i needed to know in one place

  • @LittleFlyingRockets
    @LittleFlyingRockets 2 роки тому

    Best tutorial on this! Thanks

  • @jacobmarquez9805
    @jacobmarquez9805 Рік тому

    I love that you have OldBay spice in the background lol

  • @ammarpoint9278
    @ammarpoint9278 2 роки тому +1

    Thanks Tony. Is it possible to upload a video with a schedule as I can see only options with private or public?
    Thanks !!

  • @lifeuniverse
    @lifeuniverse Рік тому +2

    Thank you Tony, you are a savior. Did you have any issue with the videos being flagged after upload?

  • @kumardeepam
    @kumardeepam 2 роки тому

    Thank you for the great tutorial! How do we speciu the channel to which the video should be uploaded to?

  • @reapertrading
    @reapertrading Рік тому

    Fire tech and love the old bay

  • @AlanPreiti
    @AlanPreiti Рік тому

    Hello, thks for the video! You have gain a new subscriber

  • @demart
    @demart Місяць тому

    Thank you!

  • @IMPremNishad
    @IMPremNishad 2 роки тому

    I love your setup 🔥🔥🔥❤️

  • @trikkee
    @trikkee 6 місяців тому

    Thank you bro !

  • @melissabeautymissuniversep9669
    @melissabeautymissuniversep9669 2 роки тому

    this is really good! thanks

  • @storyxc6740
    @storyxc6740 2 роки тому

    thx a lot, it's really helpful.

  • @daniilzemtsovski5689
    @daniilzemtsovski5689 Рік тому

    super. thank you for tutorial

  • @TheMarketingShowChannel
    @TheMarketingShowChannel Рік тому

    Thank you Tony!

  • @actualspectral
    @actualspectral 7 місяців тому +1

    thank you it was very helpful but can you put it on repeat to upload the same video over and over

  • @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

  • @InsightByte
    @InsightByte 2 роки тому

    Smashed it Tony

  • @Emrys1.0
    @Emrys1.0 5 місяців тому

    This is very nice thanks for this video

    • @TonyTeachesTech
      @TonyTeachesTech  5 місяців тому

      Most welcome 😊

    • @Emrys1.0
      @Emrys1.0 5 місяців тому

      @@TonyTeachesTech i have a question
      Is the video shared only privately?

  • @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?

  • @tshaylatte9502
    @tshaylatte9502 3 місяці тому

    thanks man!

  • @cjhoffmn
    @cjhoffmn 2 роки тому

    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  2 роки тому

      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 2 роки тому

      @@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  2 роки тому +1

      @@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?

  • @wechatl
    @wechatl 11 місяців тому

    very thanks broo

  • @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

  • @YSR_Believer
    @YSR_Believer 11 місяців тому

    Thank you

  • @recklessvelociraptor2579
    @recklessvelociraptor2579 9 місяців тому

    Do you have any videos where you teach touch typing?

  • @Me-eh6xz
    @Me-eh6xz 2 роки тому

    Great content! Can you please teach us how to upload videos to dailymotion using their API?

  • @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

  • @salesgurupro
    @salesgurupro 2 роки тому +1

    Is there any way we can avoid the authorization every time we upload a new video?

  • @adrielfilipedesign6894
    @adrielfilipedesign6894 3 місяці тому

    Thankssss

  • @tammannappamannikeri5120
    @tammannappamannikeri5120 Рік тому

    ty

  • @FindSponsor
    @FindSponsor 9 місяців тому +1

    i don't have any website to verify my domain . after uploading video get locked . how to solve this problem

  • @jejdndjdjfjdhebdndnfmf782
    @jejdndjdjfjdhebdndnfmf782 Рік тому

    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

  • @itsumarejaz
    @itsumarejaz 10 місяців тому

    Can you please make a video for Facebook Video Upload API as well. Will be much appreciated. Thanks

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

  • @Thilina_madushan
    @Thilina_madushan 2 роки тому

    Tell me if you can do what I say.
    Upload a video from our pc to UA-cam. Can't upload a video from a google drive without it?

  • @indieideas8079
    @indieideas8079 2 роки тому

    Awesome. Can you also make a video for php?

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      Probably not. Google might have example PHP code though

  • @weedytt9031
    @weedytt9031 5 місяців тому

    i exceeded the quotas very fast. is there a simple way to increase them?

  • @altohausen
    @altohausen 11 місяців тому

    noob question... would it work to upload videos from google photos to youtube?

  • @MadCaril
    @MadCaril Рік тому

    Struggling to create a json file using my terminal on spyder. it keeps saying its not a recognized command. help :(

  • @teddyhogan
    @teddyhogan Рік тому

    Are you going to open up the github repo again? Does this video work without your GitHub? Thanks!

    • @TonyTeachesTech
      @TonyTeachesTech  Рік тому +1

      You can use the code in my GitHub repo with your API key

  • @iGageit
    @iGageit 8 місяців тому

    would this work with YT Shorts?

  • @hugh_dancy
    @hugh_dancy 2 роки тому

    is there a way to modify it to bulk upload movies that are in one folder ?

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому

      You can call the upload function in a loop to do that

  • @yomanlight5204
    @yomanlight5204 Рік тому

    Hi i have this error : Please specify a valid file using the --file= paramet
    Someone can help me please ?

  • @okami__linux_gaming
    @okami__linux_gaming 2 місяці тому

    hi, is that youtube api free of costs??

  • @knightc0r3
    @knightc0r3 День тому

    9:10 soo... what happens if we don't have our own website?

  • @dabody123456
    @dabody123456 2 роки тому

    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 UA-cam > thnx alot for share it

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому +1

      You can find the template for the json file here developers.google.com/youtube/v3/guides/uploading_a_video

    • @dabody123456
      @dabody123456 2 роки тому

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

  • @moneybags6840
    @moneybags6840 Рік тому

    What about uploading multiple videos to a specific playlist?….

  • @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 10 місяців тому

      wdym? i have video in 1080p, can see everything.

    • @danielestebanparragallego6387
      @danielestebanparragallego6387 10 місяців тому

      @@zwayz3546 you are watching from a big screen. Try it from your cellphone...

  • @technologyinsights94
    @technologyinsights94 Рік тому

    Can we upload using API Key?

  • @jan.bellon
    @jan.bellon 2 роки тому

    Why does the api make an error 403 and say i exceeded my quota in my first try? WHY ? !!!!!

  • @casual_gamer1413
    @casual_gamer1413 2 роки тому

    API is free?
    and also tell me that when need to upload bulk videos on schedule basis then?

  • @marketingunderground
    @marketingunderground Рік тому +1

    my video is uploaded but my title is missing , i have the error "command not found" any ideas ?

  • @460ZoO
    @460ZoO 9 місяців тому

    Does anyone have "Processing abandoned" on UA-cam after the upload?

  • @CutPerfectMemes
    @CutPerfectMemes 2 роки тому +15

    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 2 роки тому

      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 роки тому +1

      Same! All videos uploaded with the API are being restricted.

  • @realcartoongirl
    @realcartoongirl 11 місяців тому

    what's the limit per day

  • @fredherring876
    @fredherring876 Рік тому

    does anyone know how I can run this as a script

  • @praveensarathy4549
    @praveensarathy4549 11 місяців тому

    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

  • @upl1nk.v01d2
    @upl1nk.v01d2 2 роки тому

    I succesfully managed to configure settings at Google Dev Console and upload my video to my yt channel, but at another tries I encountered an error with fetch response "Unauthorised".
    I don't know how to launch again that auth localhost web :(

    • @ayoubelhannaoui6620
      @ayoubelhannaoui6620 2 роки тому

      have you found a solution ?

    • @upl1nk.v01d2
      @upl1nk.v01d2 2 роки тому

      @@ayoubelhannaoui6620 no

    • @ayoubelhannaoui6620
      @ayoubelhannaoui6620 2 роки тому

      @@upl1nk.v01d2 i found the solution to thus problem.

    • @upl1nk.v01d2
      @upl1nk.v01d2 Рік тому

      @@ayoubelhannaoui6620 I finally uploaded my test video with API!
      I carefully was going step by step again by this tutorial.
      Idk why I have auth this time after about 2 months.
      Anyways, big thanks for author for sharing his knowledge!!

  • @AnkitMaurya-bb6jr
    @AnkitMaurya-bb6jr 3 місяці тому

    please explain with use with javascript

  • @RobertJene
    @RobertJene 6 місяців тому

    12:24 - create a python script to upload to UA-cam

  • @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

  • @alexdin1565
    @alexdin1565 Рік тому

    Hi, can we upload a video from an external URL??

    • @TonyTeachesTech
      @TonyTeachesTech  Рік тому +1

      Probably, but that would take some additional coding

    • @alexdin1565
      @alexdin1565 Рік тому

      @@TonyTeachesTech please can you show me how i can do it

    • @TonyTeachesTech
      @TonyTeachesTech  Рік тому +1

      @@alexdin1565 I don't know how to do that without doing research

  • @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

  • @jowlergames115
    @jowlergames115 Рік тому

    I am not sure you should share your secret key buddy 10:54

  • @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

  • @TechnicalHeavenSM
    @TechnicalHeavenSM 2 роки тому

    Can we somehow see upload progress bar??

  • @amelieviennot5570
    @amelieviennot5570 2 роки тому

    you can bulk upload videos but cant bulk insert thumbnails why is that ?

  • @akameamv4720
    @akameamv4720 9 місяців тому

    what about shorts ??

  • @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 роки тому +1

      @@Vegetal999 I would guess "why" is because he's not familiar with Google Colaboratory.

  • @LOANETWORK
    @LOANETWORK 6 місяців тому

    what is the point of this tutorial if it doesnt include the verifcation process?

  • @MarkRodenburg
    @MarkRodenburg Рік тому

    the github is not for uload UA-cam anymre

  • @MeraIPLOfficial
    @MeraIPLOfficial 9 місяців тому

    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 UA-cam please

  • @TanmaySpotalpha
    @TanmaySpotalpha 7 місяців тому

    Not useful. I needed fully through code, not passing by command line, in that case manual upload is good.

  • @BigDog_Memes
    @BigDog_Memes 11 місяців тому

    this is out of date, oauth2client is bad and not supported anymore

  • @akatsuki367AKATSUKI
    @akatsuki367AKATSUKI Рік тому

    can anyone explain me something i am getting dquote> at last after all the steps what shouls i do next @ua-cam.com/channels/WPJwoVXJhv0-ucr3pUs1dA.html

  • @KING-zz6qt
    @KING-zz6qt Рік тому +1

    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 10 місяців тому

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

  • @sebastianbrya1317
    @sebastianbrya1317 2 роки тому

    At line:2 char:3
    + --file="(my video)" --title="tit...
    + ~
    Missing expression after unary operator '--'.
    At line:2 char:3
    + --file="(my video)" --title="tit ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Unexpected token 'file="(my video)"' in expression
    or statement.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
    ception
    + FullyQualifiedErrorId : MissingExpressionAfterOperator
    This error pops up when I try to upload the video with terminal. Can you help me, please?
    ((my video) is the video location)
    Also this is what it says when I type in the default request:
    At line:2 char:26
    + --title="Summer vacation in California"
    + ~
    Missing expression after unary operator '--'.
    At line:2 char:26
    + --title="Summer vacation in California"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Unexpected token 'title="Summer vacation in California"' in expression or state
    ment.
    At line:3 char:26
    + --description="Had fun surfing in Santa Cruz"
    + ~
    Missing expression after unary operator '--'.
    At line:3 char:26
    + --description="Had fun surfing in Santa Cruz"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Unexpected token 'description="Had fun surfing in Santa Cruz"' in expression or
    statement.
    At line:4 char:26
    + --keywords="surfing,Santa Cruz"
    + ~
    Missing expression after unary operator '--'.
    At line:4 char:26
    + --keywords="surfing,Santa Cruz"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Unexpected token 'keywords="surfing,Santa Cruz"' in expression or statement.
    At line:5 char:26
    + --category="22"
    + ~
    Missing expression after unary operator '--'.
    At line:5 char:26
    + --category="22"
    + ~~~~~~~~~~~~~
    Unexpected token 'category="22"' in expression or statement.
    At line:6 char:26
    + --privacyStatus="private"
    + ~
    Missing expression after unary operator '--'.
    At line:6 char:26
    + --privacyStatus="private"
    + ~~~~~~~~~~~~~~~~~~~~~~~
    Unexpected token 'privacyStatus="private"' in expression or statement.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
    ception
    + FullyQualifiedErrorId : MissingExpressionAfterOperator

  • @user-lg1bk7zv2z
    @user-lg1bk7zv2z Рік тому

    googleapiclient.errors.UnknownApiNameOrVersion: name: youtube version: v3
    getting this error in build method

  • @alexander5597
    @alexander5597 Рік тому

    Thank you!