What is the limit on Google Drive API usage?

Google Drive-Api

Google Drive-Api Problem Overview


Because this product is new, I am looking forward to develop an app on it so is there any limit on the API usage such as:

  • upload and download quota
  • requests per app
  • etc

Google Drive-Api Solutions


Solution 1 - Google Drive-Api

To view your allowed quota please create a project in the Google APIs Console. In the "Service" tab, the default quota allowed for each service is indicated.

Currently for the Drive API it reads "Courtesy limit: 1,000,000,000 queries/day". It's a per app quota.

After you've enabled the Drive API you can also set a per user rate limit (by default 1000 req per 100 sec) to prevent one user from depleting your app's quota. That's available in the "Quotas" tab.

View of the cloud console, showing 1B requests per app per day, and 1000 requests per 100 seconds per user.

There is also a link to request more quota in the "Quotas" tab in case you need more than the default 10M req/day such requests will go through a (light) manual review process.

Also files have per-files playback limit which depends on many factors (Is the file shared publicly or just to your domain/users? Is it a video? An audio file? etc...). These rules are not disclosed at this point unfortunately but for instance a publicly shared video can't be viewed by millions of anonymous sessions per day (use Youtube for that). Nor can an image be used on a high traffic website. Google Drive cannot be used as a Web scale CDN, it is scaled for personal content sharing (you share files with friends/work group/company).

Solution 2 - Google Drive-Api

I'm getting a message saying "Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator."

so there IS a limit, just undocumented :e this is a file only i downloaded about 50 times in the last hour (testing some stuff)

Solution 3 - Google Drive-Api

There's no mention of rate limiting on the best practices page, or in the performance tips but—most conspicuously of all—the documentation on handling errors does not contain any errors for going over rate limits.

Solution 4 - Google Drive-Api

I seen the free request quota as for Google Drive Api's is. 1,000,000,000 requests/day.

and Default Per-user limit is:(you can increase it) 10 requests/second/user

you can visit this and login with valid account for more information https://console.developers.google.com/project/bionic-path-686/apiui/apiview/drive/quotas

Solution 5 - Google Drive-Api

It's not only about API-Queries .. there is also a Download-Limit, i always ran into .. But Google doesn't publish the allowed amount

Solution 6 - Google Drive-Api

There are some types of limits which exists in addition to "Quotas". Error ex.:

> code=403
> reason=subscriptionRateLimitExceeded
> message=Rate limit exceeded for creating file subscriptions.

Similar rate limits are not well documented and can make some pain to app developers.

Solution 7 - Google Drive-Api

Read the documentation and you should find what you're looking for.

"Any type of file can be stored in Drive, up to the user's storage limit or maximum file size of 10GB"

https://developers.google.com/drive/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRadiView Question on Stackoverflow
Solution 1 - Google Drive-ApiNicolas GarnierView Answer on Stackoverflow
Solution 2 - Google Drive-ApiMitziMeowView Answer on Stackoverflow
Solution 3 - Google Drive-ApiSam HaslerView Answer on Stackoverflow
Solution 4 - Google Drive-ApiMahadev BichewarView Answer on Stackoverflow
Solution 5 - Google Drive-Apisnickers2kView Answer on Stackoverflow
Solution 6 - Google Drive-ApiAndrei N.SobchuckView Answer on Stackoverflow
Solution 7 - Google Drive-ApiTomas McGuinnessView Answer on Stackoverflow