Apps Script Quota Clarification

373 views
Skip to first unread message

Joshua Snyder

unread,
Jun 22, 2021, 12:03:00 PM6/22/21
to Google Apps Script Community
I posted this as a comment on a previous thread, but it got lost in the wind and probably should have been it's own post so others can see it.

I have always been confused about quotas for apps script. Does the 20,000 url fetch call limit per day (and other quotas listed here under Current Quotas) apply to the whole script or to the user of the script?

In an Add-On, can a single user make up to 20,000 UrlFetch requests per day or can all users of the script only make 20,000 UrlFetch requests in total? And does the difference between @gmail and GSuite quotas apply to the end user or to the owner of the script?

Would be great to get more information on this!

Thanks,

Joshua

Alan Wells

unread,
Jun 22, 2021, 12:38:38 PM6/22/21
to Google Apps Script Community
I've also had the same question.  The quota should go against the user of the addon.  For example, if an addon sends an email, then the quota for sending an email goes against the account that installed the addon.  I don't see why it would be any different for URL fetch calls.  But, I've never had an addon that would test those URL fetch limits.  The addon basically runs as if the account that installed it was running it as their own code.  The only situation that I know of where the addon user affects anything in your account is with Properties Service Script Properties.  The Script Properties actually saves key/value pairs to your Apps Script project file.
So, I'm guessing that if you had 100,000 users of an addon that were all making 20,000 URL fetch calls a day, that they'd all be able to do that, and it would have no affect on your account.  There is no Google API to enable in the Google Cloud Platform project in order to make URL fetch calls, so there is no API quota.  
But, I don't have the official, definitive answer.  I actually do want to be able to use this capability at some point.

Joshua Snyder

unread,
Jun 22, 2021, 1:05:41 PM6/22/21
to Google Apps Script Community
Interesting. Our Add-On will surpass 20,000 url fetch requests shortly. Fingers crossed those limits are per user or we'll have to do some serious refactoring.

Thanks for sharing your experience.

Alan Wells

unread,
Jun 22, 2021, 2:01:20 PM6/22/21
to Google Apps Script Community
If you published a Web App from the same Apps Script file that the addon is based on, and the Web App was published to run as you, then that would count against your account, but I'm assuming that you didn't do that.
Reply all
Reply to author
Forward
0 new messages