I found this official support document, and here's some brief info 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. (Don't mix this up with the message "Daily quota exceeded," which points to insufficient API quota.)

If a user sees one of these messages it’s probably due to one of the following reasons:

  • Creating too many events

If a user has created more than 10,000 events in his or her calendar within a short period of time, that user might lose calendar edit access.

  • Creating too many calendars

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

  • Sending too many invitations or emails to external guests

In order to prevent spamming, Google Calendar limits the number of invitations a user can send to external guests. This limit varies depending on the action, and is usually between 100-300 guests.

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

  • Sharing calendars with too many users

If a user shares one or more calendars with many other users within a short period of time, Google Calendar might switch into read-only mode for that user. It’s almost impossible to reach this limit by updating sharing settings manually, but it can happen with some API-based tools or third-party apps.

Answer from Jinzhao Huo on Stack Overflow
🌐
Google Support
support.google.com › a › answer › 2905486
Avoid Calendar use limits - Google Workspace Admin Help
Wait until the limit replenishes. Split the operation between multiple users. ... Professional email, online storage, shared calendars, video meetings and more.
🌐
Google
developers.google.com › google workspace › google calendar › handle api errors
Handle API errors | Google Calendar | Google for Developers
The user has reached Google Calendar API's maximum request rate per calendar or per authenticated user. { "error": { "errors": [ { "domain": "usageLimits", "reason": "rateLimitExceeded", "message": "Rate Limit Exceeded" } ], "code": 403, "message": ...
🌐
Google
discuss.google.dev › google cloud › integration services
Google Calendar "Calendar limits exceeded" error, but "Queries per minute" are way under the limit - Integration Services - Google Developer forums
January 18, 2024 - Hello! We’re dealing with a weird situation where some Google Cal API requests respond with the 403 “Calendar limits exceeded”. The setup is like this: We have two accounts (say [email protected], and [email protected]) that are signed in into our management platform (OAuth ...
🌐
Infiflex
infiflex.com › google-calendar-usage-limits
Navigating Google Calendar Usage Limits | Infiflex
In order to prevent spamming, Google has set some usage limits for the calendar. The limits are set above the normal activity level of typical calendar users. If the limits are exceeded, then the calendar automatically goes to read-only mode.
Top answer
1 of 7
10

I found this official support document, and here's some brief info 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. (Don't mix this up with the message "Daily quota exceeded," which points to insufficient API quota.)

If a user sees one of these messages it’s probably due to one of the following reasons:

  • Creating too many events

If a user has created more than 10,000 events in his or her calendar within a short period of time, that user might lose calendar edit access.

  • Creating too many calendars

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

  • Sending too many invitations or emails to external guests

In order to prevent spamming, Google Calendar limits the number of invitations a user can send to external guests. This limit varies depending on the action, and is usually between 100-300 guests.

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

  • Sharing calendars with too many users

If a user shares one or more calendars with many other users within a short period of time, Google Calendar might switch into read-only mode for that user. It’s almost impossible to reach this limit by updating sharing settings manually, but it can happen with some API-based tools or third-party apps.

2 of 7
9

Having the same issue.

I am using Version 3 code, TwoLeggedOAuthCredentials and the program is an authorized registered client (IOW: the calendars are created on behalf of multiple accounts.)

Last successful large imports: 2013-01-21, 4929 Google requests & 2013-01-22, 1103 Google requests (spread across multiple users)

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

If the program is re-run after a time (15 minutes +) it will run a couple more requests before receiving the same error. The calendar information it errored on previously will succeed if re-run after a "cool-off" period. The code itself sleeps for the number of times it receives that error multiplied by 20 seconds and tries ten times (waits 20 seconds after the first error, forty seconds after the second error) but it has increased the time to run the program greatly.

I increased the per user limit from 5 requests/second/user to 10.0 requests/second/user yesterday. So far this has had no noticeable change in behavior. Stepping through the code slowly also doesn't seem to have impact, leading me to believe it is unrelated to the requests per second.

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

🌐
Google Support
support.google.com › calendar › thread › 129687746 › how-to-avoid-calendar-usage-limits-exceeded-using-google-calendar-api
How to avoid Calendar usage limits exceeded using Google Calendar API? - Google Calendar Community
Skip to main content · Google Calendar Help · Sign in · Google Help · Help Center · Community · Google Calendar · Terms of Service · Submit feedback · Send feedback on
🌐
Google
developers.google.com › google workspace › google calendar › manage quotas
Manage quotas | Google Calendar | Google for Developers
If either quota is exceeded, you are rate limited and receive a 403 usageLimits status code or a 429 usageLimits status code to your queries.
🌐
Google Groups
groups.google.com › g › google-calendar-api › c › hEqTiOXE72M
Calendar usage limits exceeded - unrelated to 10,000 requests/day and (seemingly) unrelated to user requests/second/user limits
After tweaking my implementation/usage of google calendar API for the last 9 to 12 months, I finally decided to go with that implementation plus, 1. delete-events-on-a-single-day-until-no-more-events-exist-on-that-day ... That resolved the 'duplicate events' issue that i have been dealing with, every now and then, when dates have more events. Evidently, I was hitting a usage limit, I forgot what it is, but 5 requests per some # of seconds.
🌐
Robin Help Center
support.robinpowered.com › hc › en-us › articles › 115003147826--Why-am-I-getting-calendar-rate-limit-errors-from-Google
"Why am I getting calendar rate limit errors from Google?" – Robin Help Center
... Once a rate limit is hit for your Google account's calendar, the only way to book new events is waiting until it goes away. This rate limit is managed by Google, and not something Robin can estimate specific countdowns for.
Find elsewhere
🌐
Google Groups
groups.google.com › g › google-apis-explorer-users › c › C4Qgv-pjKvU
Strange error 403: "Calendar usage limits exceeded" when adding event with attendee
It happens when too many users are trying out the API at the same time. The demo credentials have a limit to their usage. This is usually short-term as this quota resets fairly often. If this happens very often, please follow up here so we can to look at usage rates and see about tweaking the ...
🌐
Stack Overflow
stackoverflow.com › questions › 66267212 › getting-calendar-usage-limits-exceeded-on-creating-google-calendar-events
Getting "Calendar usage limits exceeded" on creating google calendar events - Stack Overflow
It might take several days until this limit type is fully replenished. ... To prevent spamming, Google Calendar limits the number of emails a user can send to external guests with the ‘Email Guests’ feature. Using the ‘email guests’ feature with Google Workspace users in your primary or secondary domain does not consume this limit type.
🌐
Stack Overflow
stackoverflow.com › questions › 52942363 › google-calendar-api-error-calendar-usage-limits-exceeded
Google Calendar API: error «Calendar usage limits exceeded» - Stack Overflow
Calendar usage limits exceeded. This is the result of an API call. (Don't mix this up with the message "Daily quota exceeded," which points to insufficient API quota.) It also means that the user reached one of the Google Calendar limits in ...
🌐
Google Support
support.google.com › calendar › thread › 202090272 › how-to-fix-google-calendar-use-limits
How to fix google calendar use limits? - Google Calendar Community
Skip to main content · Google Calendar Help · Sign in · Google Help · Help Center · Community · Google Calendar · Terms of Service · Submit feedback · Send feedback on
🌐
Google Groups
groups.google.com › g › easy-appointments › c › 1Igv1FOOEwM
Google Calendar "Calendar usage limits exceeded"
{ "error": { "errors": [ { "domain": "usageLimits", "reason": "quotaExceeded", "message": "Calendar usage limits exceeded." } ], "code": 403, "message": "Calendar usage limits exceeded." } }
🌐
Stack Overflow
stackoverflow.com › questions › 79101445 › google-calendar-api-per-user-quota-limit-reached-even-when-using-quotauser
Google Calendar API per-user quota limit reached even when using quotaUser - Stack Overflow
Based on what you have shared with your post it seems that you were just simply hit by Exponential Back offs and it will just work again once it "cooled down", About your other Quota and Limits questions it is best handled and answered by a Google Support. Just to help you get started on the right path to correcting this I would suggest visiting this article: Google API quota ... Calendar usage limits exceeded sounds more like a limit within google calendar and not strictly to the API.
🌐
Helpshift
webis.helpshift.com › hc › en › 3-pocket-informant › faq › 109-google-calendar-usage-limits
Google Calendar Usage Limits — Pocket Informant Help Center
Occasionally, while rare, you may see an error message that you cannot perform an operation due to Calendar limits, such as: Unable to save event. This means you have reached the limit for the number of events you can edit. There was a problem saving your changes.
Top answer
1 of 2
2

The original question asks "Is there any way that is specially available for testing calendar API?". This is really the core issue. There is a lack of transparency as to what causes this error to occur. I have read https://support.google.com/a/answer/2905486?hl=en, but none of those apply to my application. If I knew what is really causing this error, I might be able to avoid it.

I previously had a Google Calendar simulator for a lot of my testing but it became too arduous and was bypassing testing, so recently converted to using test accounts made of free gmail accounts to target insertions of test data and then read it out. I don't have to try very hard or do a lot of inserts to cause this error. I have implemented exponential backoff starting at 6 seconds; it allowed an insert at 25 minutes after initial failure. That was for a failure which occurred inserting a single event about two minutes later than the previous insert to the same account. The failing insert was the 9th insert of the same data into the same calendar over a period of almost 20 minutes, the 10th in 30 minutes. These are not large numbers in a test environment.

This is a serious impediment to testing. The only way I can see to work around this is to acquire a pool of gmail accounts and pull a new one from the pool when I wear one out. Not only is that more work and maintenance for me, it's bad for google too because of a bunch of accounts that don't map to real users.

If someone has a better idea I'm all ears. What I'd prefer is a way of opting in to testing on specific google accounts, meaning the user expressly asks for google to not be concerned with abuse (assuming that's the rationale for this error).

2 of 2
0

I think you're making too many API calls at the same time. Give it a time interval or use Batching of Requests. Also use Exponential Backoff to handle 4xx error retries.

Additional note:

The following may be causing your problem according to Calendar usage limits:

Resolution

If users hit the Google Calendar limits, they should be able to edit their calendars normally again within several hours. Users will still be able to view events in Calendar during that period.

More Information If a user sees one of these messages it’s probably due to one of the following reasons:

1. Creating too many events

If a user has created more than 10,000 events in his or her calendar within a short period of time, that user might lose calendar edit access.

2. Creating too many calendars

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

3. Sending too many invitations or emails to external guests

In order to prevent spamming, Google Calendar limits the number of invitations a user can send to external guests. This limit varies depending on the action, and is usually between 100-300 guests.

G Suite users can send invitations to any number of guests from their primary domain, or from secondary domains associated with their primary domain.

4. Sharing calendars with too many users

If a user shares one or more calendars with many other users within a short period of time, Google Calendar might switch into read-only mode for that user. It’s almost impossible to reach this limit by updating sharing settings manually, but it can happen with some API-based tools or third-party apps.