Search code examples
google-apiyoutube-apigoogle-oauthyoutube-data-api

Publish videos to youtube api unverified app


I have developed an app for a company that generates personalized videos and needs to publish them to Youtube. Everything works fine except I can't publish videos to youtube do to the following rules loop:

  1. If your app is not validated (by google for authentication) it can't upload videos to youtube.
  2. If you app is not public it can't be validated.

How can I exit the loop and publish the videos?

Note: the app needs to publish the videos to an account that is a @gmail account.

Thanks


Solution

  • You may have miss understood something if you check the documentation for Video.insert at the top you will see the following

    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.

    So you can upload videos to YouTube without your app being verified. They will just be uploaded as private.

    After consulting with my contact at google. They cleared something up for us.

    There is apparently a difference between OAuth verification and the YouTube compliance audit. I assumed they were the same thing.

    1. OAuth verification (requested through Google Cloud Console) This verifies your Oauth2 consent screen.
    2. Compliance Audit (requested through YouTube API form) this will give you the ability to post public videos.

    So the team is correct you don't need to Oauth2 verify your app as it is used for internal project. You do however need to go though the YouTube compliance audit which you need to do even if its an internal app.