Google Calendar API: calendar usage limits exceeded

We have an application that migrates between Google Apps domains. To migrate calendars we use the Import API ( https://developers.google.com/google-apps/calendar/v3/reference/events/import ). Over the past six months, we have performed many calendar migrations. But about a week ago, we encountered a new API error for import:

"error"=> {"errors"=>[ {"domain"=>"usageLimits", "reason"=>"quotaExceeded", "message"=>"Calendar usage limits exceeded."}], "code"=>403, "message"=>"Calendar usage limits exceeded." 

Last week we got a lot of restrictions on using the calendar. Errors for users from different domains. According to the Google API Console, we have not reached the daily quota limit. For our application we use 2legged authorization.

Please help us understand what has exceeded the calendar usage limit. I mean? How can we prevent this error? Where can we find information on calendar usage restrictions?

+8
google-calendar google-api
source share
7 answers

With the same problem.

I use version 3 code, TwoLeggedOAuthCredentials, and the program is an authorized registered client (IOW: calendars are created on behalf of several accounts.)

Last successful bulk import: 2013-01-21, 4929 Google Queries and 2013-01-22, 1103 Google Queries (apply to multiple users)

About 4% of our quota ( https://code.google.com/apis/console/b/0/#project:1077083635926:quotas ) the program starts to receive the following error: https: //www.googleapis. com / calendar / v3 / calendars? alt = json returns "Calendar usage limits exceeded."

If the program restarts after a while (15 minutes +), it will run a couple more requests before receiving the same error. Information on calendars with which it was a mistake earlier will be successful if it is restarted after a period of "cooling". The code itself falls asleep for the number of times when it receives this error multiplied by 20 seconds and tries ten times (it waits 20 seconds after the first error, forty seconds after the second error), but it increased the time to run the program significantly.

I increased the user limit from 5 requests / second / user to 10.0 requests / second / user yesterday. So far, this has not had noticeable changes in behavior. It seems that following the code also does not affect me, which leads to the fact that it is not associated with requests per second.

If this is an undocumented quota for each user (and not their well-documented request / second / user quota), it is new.

+4
source share

I found this official support document and here is some brief information below, hope it helps: https://support.google.com/a/answer/2905486?hl=en

Calendar usage limits exceeded. This is the result of an API call. (Do not mix this with the message "Daily quota exceeded", which indicates an insufficient API quota.)

If the user sees one of these messages, probably due to one of the following reasons:

  • Creating too many events

If a user has created more than 10,000 events on his calendar in a short period of time, this user may lose access to editing the calendar.

  • Creating too many calendars

If a user creates more than 25 new calendars in a short period of time, this user's calendar can go into read-only mode.

  • Sending too many invitations or emails to external guests

To prevent spamming, Google Calendar limits the number of invitations that a user can send to external guests. This limit varies depending on the action and usually ranges from 100-300 guests.

Google Apps users can send invitations to any number of guests from their primary domain or from additional domains associated with their primary domain.

  • Sharing calendars with too many users

If a user uses one or more calendars with many other users for a short period of time, Google Calendar may switch to read-only mode for that user. It is almost impossible to achieve this limitation by updating sharing options manually, but this can happen with some API-based tools or third-party applications.

+4
source share

After analyzing the logs, I discovered

Free Google Apps account For the user: Initially: 100 domains for Extenal Guests domains Cumulative: 1 External guest in 40 minutes

Example: If you have a new token, you can send any *. 50 events with 100 guests - 2 guests per event *. 25 events with 100 guests - 4 guests per event

Limits on

Day : 36 guests

Week : 252 guests

Month : ~ 1080 guests

Where the acquired GSuite Calendar API gives an initial limit of 1000 Guest Request

https://github.com/manjeshpv/gsuite-google-calendar-api-limits

You will receive 1000 (guest emails outside your domain) when you log in + an invitation to 1 guest email every 40 minutes. When you exceed this limit, you will get this error

Using Google Calendar **** Google Calendar ( https://calendar.google.com )

Failed to save event. You have reached the limit for the number of events that you can edit. Wait a few hours for your account to be reviewed. We appreciate your patience. Note. This may be the result of using a third-party application that you may have installed that interacts with Google Calendar, for example, a synchronization application.

Using an API Approach

Error: Calendar usage limits exceeded. code: 403, errors: [{domain: 'usageLimits', reason: 'quotaExceeded', message: 'Calendar usage restrictions exceeded.' }]}

+2
source share

In addition to application quotas, there are some restrictions for each user that are application independent. If someone is a heavy calendar user, or if you are doing a lot of activity for a small set of users, the application may be limited, even if your application is under a common API quota.

+1
source share

I have the same problem, and it turned out that there is a quota for the number of external guests (guests who live in a different domain) that you can invite. This quota is documented here:

http://support.google.com/a/bin/answer.py?hl=en&answer=2905486

I don’t know any solution at present, but if you find it, I would also find it useful. Good luck.

0
source share

I had this problem inserting a lot of events with invited people outside my Google Apps domain. I received a response from Google Apps Support:

"There is a limit to the fact that the Calendar is respected, how many events you can invite from one calendar. The limit is reached very quickly if you invite a user who is not in Google Apps."

Hope this helps.

0
source share

The limit for outside participants seems very strict and builds up aggressively.

For testing in G Suite, it’s best to sync visitors from your primary domain.

0
source share

All Articles