+ Reference
+ Rate limits
+
+
To keep the API fast for every organisation, calls are limited per clock minute. A call over a limit gets 429 Too Many Requests with a Retry-After header in seconds, and a message saying when the limit resets.
+
+
+ | Who | Limit | scope in a 429 |
+
+ | Each API key, connected app token, or person's email and token | 120 requests a minute | api_key |
+ | All of one Organisation's API keys and connected apps together | 300 requests a minute | organisation |
+
+
+
+ | Response header | Meaning |
+
+ | X-RateLimit-Limit | Requests allowed per minute for this key or token |
+ | X-RateLimit-Remaining | Requests left this minute |
+ | X-RateLimit-Reset | When the minute resets, as a Unix timestamp |
+ | Retry-After | On a 429 only: seconds to wait before trying again |
+
+
+
+ ✓
+ To stay within the limits, space requests out (one every half second keeps a key under its limit), wait Retry-After seconds after a 429, and fetch lists a page at a time with per_page up to 200 and last_synced_datetime rather than one record at a time: 5,000 Survey Responses take 25 calls to GET /stories?per_page=200, but 5,000 calls to GET /stories/{id}.
+
+
+