Skip to content

Blog

How to get a YouTube API key for Shorts uploads

If you searched for how to get a YouTube API key for Shorts uploads, there is one thing to know first. An API key cannot upload videos. Uploading needs an OAuth client, because the upload happens on behalf of your channel and you have to approve it. This post covers what you actually need.

The short version

  1. Create a project in the Google Cloud console.
  2. Enable YouTube Data API v3. Enable the YouTube Analytics API too if you want stats.
  3. Set up the OAuth consent screen as an External app with your own email as the contact.
  4. Add the scopes youtube.upload, youtube.readonly and yt-analytics.readonly.
  5. Create an OAuth client ID of type Web application and add your redirect URI.
  6. Copy the client ID and secret.

The full walkthrough, with the exact values our setup wizard fills in, is in the YouTube posting guide.

The setting that breaks uploads: Testing mode

New OAuth apps start in Testing mode. Refresh tokens issued to apps in Testing mode expire after 7 days. Your uploads then stop with an authorization error and you have to connect again. Publish the app to Production to avoid that. For personal use you will see an unverified app warning when you connect, which is expected.

Quota

Each Google Cloud project has a daily API quota, and uploads use much more of it than reads. That limits how many Shorts you can upload per day. You can see usage on the Quotas page in the Google Cloud console, and Google has a form to request more.

Audits and private uploads

Google has applied extra rules to uploads from API projects that have not passed an audit, and these can leave videos private. The rules change, so read Google's current YouTube API Services policy before you build a plan around uploads.

What counts as a Short

Shorts are vertical or square, short videos. Check YouTube's current maximum length, because it has changed before. Spikecut renders 9:16 clips at lengths that suit Shorts.

Where Spikecut fits

Spikecut uses your own Google project, so the quota and account are yours. The setup wizard checks the connection with a harmless Channels call and tells you in plain English what is wrong if it fails. See the setup guides for every other platform.