I've built an API endpoint on a Wix store website so a third party can download the list of Wix store 's orders. I know the Store/Orders collection limits query to returns 100 items at the time.
So in order to retrieve the last 5000 orders, the API needs to be called 50.
My question is what the quota on API call for an endpoint defined in _functions call?
I remember having read something about 300 requests per minutes but I could find that information anymore. But what is defined as a request? any page view? any database query? Do web module call counts as requests?
If the limit is 300 can I do 299 request every minute?
What error should the API consumer be expecting if the 300 requests limit has been overpass?
If minute 1, 350 requests have been made, can we query 50 items at minute 2? Or is there a penalty/cooldown time?
Here's what I was able to find out:
A safe limit is about 1000 requests every minute, with a cooldown of 2 minutes in case of traffic going over the limit.
Basically it is safe to use with 250 requests per minute (functions, web methods) and 250 data operations (queries, inserts), etc. We don't advise going over 250 operations per minute, yet the system will probably support 1000 per minute burst. If the limit is exceeded it will result in a 502 http error and there will be a 1-2 minute cooldown.