You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Improve docs around rate limiting, mention higher rate limit for key-value store record endpoints (#927)
The documentation around rate limits was a bit confusing, so I expanded
it a bit, to make the distinction between global and per-resource rate
limits clearer.
I've also added a mention of the increased rate limits on key-value
store records.
Copy file name to clipboardExpand all lines: sources/platform/api_v2/api_v2_reference.apib
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -324,9 +324,27 @@ Here is the table of the most common errors that can occur for many API endpoint
324
324
##Rate limiting
325
325
326
326
All API endpoints limit the rate of requests in order to prevent overloading of Apify servers by misbehaving clients.
327
-
The default rate limit is 30 requests per second and is applied to every API endpoint except the following list
328
-
of endpoints that are rate limited to 200 requests per second:
329
327
328
+
There are two kinds of rate limits - a global rate limit and a per-resource rate limit.
329
+
330
+
###Global rate limit
331
+
332
+
The global rate limit is set to _250 000 requests per minute_.
333
+
For [authenticated]((#authentication) requests, it is counted per user,
334
+
and for unauthenticated requests, it is counted per IP address.
335
+
336
+
###Per-resource rate limit
337
+
The default per-resource rate limit is _30 requests per second per resource_, which in this context means a single Actor, a single Actor run, a single dataset, single key-value store etc.
338
+
The default rate limit is applied to every API endpoint except a few select ones, which have higher rate limits.
339
+
Each API endpoint returns its rate limit in `X-RateLimit-Limit` header.
340
+
341
+
These endpoints have a rate limit of _100 requests per second per resource_:
0 commit comments