bimmui
bimmui

Reputation: 121

"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." When Using Drive API to host videos

I'm getting an error using Google's Drive API. Since the videos I want to host on my website are larger than 200 MB, I've been using the Drive API to create a direct download link to use as my video source. I was able to do this by using the ID of the video and an API key from my Google Dev Console and creating a link that looks like this: https://www.googleapis.com/drive/v3/files/videoID?alt=media&key=APIkey

However, as of late, I've been receiving this error when the video link is clicked:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
 }
}

Is there a way to increase the limit of unauthenticated use without needing to have the user sign up?

Upvotes: 0

Views: 422

Answers (1)

Jose Vasquez
Jose Vasquez

Reputation: 1728

Use embedded item instead

As mentioned here, you can embed your videos into your web page rather than get the file through the Google Drive API.

Bear in mind:

  • Google Drive API is intended to develop applications that integrate with Google Drive.
  • Google Drive API has a usage limit for billing and non-billing accounts.

Having that said I strongly recommend you to use <iframe>, since you are using this file in a <video> tag.

Upvotes: 1

Related Questions