A UK based organization recently organized an online conference with 300+ participants and each of the attendees were asked to upload a video to a common YouTube channel post the event. The organizers created a YouTube uploader to make it easy for attendees to submit videos but soon ran into the quota issue with YouTube.

Let me explain.

The YouTube API website says that 1600 quota units are required to upload a single video to the YouTube website through the videos.insert method of the YouTube API. Thus, for instance, if you are expecting users to upload 100 videos to your YouTube channel in a single day, your Google Cloud project should have a quota of at least 1600 * 100 = 160,000 units.

The quota limits reset every 24 hours. New Google Cloud projects have lower quota and you’ll have to request YouTube to increase your quota if you are expecting higher number of videos.

Increase your YouTube API Quota

Here’s step by step guide that will help you get your YouTube video uploader, or any other Google Apps Project, approved for higher quota.

Configure Google Cloud Project

1. Go to console.cloud.google.com/projectcreate to create a new Google Cloud Project.

Create Google Cloud Project

2. From the menu, go to APIs and Services and chose OAuth Consent Screen. Set the type as External and click the Create button.

Oauth Consent Screen

3. Give your application a name, then click the Add Scope button and specify the list of OAuth Scopes that your Google Cloud project will require. For the uploader, we require the following Google APIs:

https://www.googleapis.com/auth/youtube.readonly
https://www.googleapis.com/auth/youtube.upload
https://www.googleapis.com/auth/script.external_request
https://www.googleapis.com/auth/script.send_mail
https://www.googleapis.com/auth/userinfo.email

#youtube #google apps script

How to Request Additional Quota for your YouTube API Project
1.50 GEEK