Rate limits
How many requests a key and an account may send, the headers that say where you stand, and what to do at the limit.
The limits
| Limit | Live | Test |
|---|---|---|
| Requests per key, a minute | 300 | 120 |
| Requests per account, a minute, all its keys together | 600 | 240 |
| Requests that change something, per account, a minute | 30 | 60 |
| Requests that change something, per account, an hour | 600 | 1,200 |
| Changes that reach the marketplaces, all accounts on SyncSeats together, a minute | 120 | Not counted |
Ticket groups in one POST /v1/listings | 50 | 50 |
- A key has an allowance of its own, and all keys of an account share the allowance of the account.
- A request that changes something, which is every
POST,PATCHandDELETE, also counts against the two limits for changes. Changes to the inventory count there too, together with changes to listings. - With a live key,
PATCH /v1/listings/{id},DELETE /v1/listings/{id},POST /v1/listings/{id}/publishandPOST /v1/listings/{id}/unpublishreach the marketplaces while the request runs, so they also count against one limit that all accounts on SyncSeats share: 120 a minute.POST /v1/listingsdoes not count there, because new listings go out through a queue, and neither do changes to the inventory, which reach no marketplace. - Each limit is counted in a window of its own: a minute, or an hour for the hourly one. When the window ends, the count starts again.
- One
POST /v1/listingswith 50 ticket groups is one request.
Why live changes are tighter
A change with a live key goes out to the marketplaces, over connections all sellers on SyncSeats share. So a live key may read a lot and change less. The sandbox asks no marketplace, which is why it takes more changes and fewer requests in all.
For the same reason the changes to listings that are already out there have a limit across all sellers. Your integration can meet it without doing anything wrong, when many sellers change listings at the same time. Then wait as long as Retry-After says and send the change again, with the same Idempotency-Key.
The headers
Every answer to a request with a valid key says where the key stands:
| Header | What it says |
|---|---|
X-RateLimit-Limit | How many requests this key may send a minute. |
X-RateLimit-Remaining | How many of them are left in the minute that is running. |
X-RateLimit-Reset | When that minute ends, in Unix seconds. |
Retry-After | Only on 429 rate_limited: how many seconds to wait. |
The three headers describe the key’s own allowance a minute. The allowance of the account, the limits for changes and the limit all sellers share have no headers; when one of them is used up, the message of the refusal says which.
At the limit
A request over a limit gets 429 rate_limited:
{
"error": {
"code": "rate_limited",
"message": "Too many requests with this key. Try again in 42 seconds.",
"details": { "retry_after_seconds": 42 }
},
"request_id": "req_8f3a1c5e7b9d2f4a6c8e0b1d"
}Wait as long as Retry-After says; details.retry_after_seconds holds the same number. Requests over the limit are counted too, so sending more of them does not help.
A few habits keep an integration well under the limits:
- Create the listings of one event in one request instead of one request for each ticket group.
- Read what changed, not everything:
GET /v1/listingstakesupdated_since. - Let webhooks tell you about sales instead of asking for them every few moments.
- Spread the work of a batch job over time instead of sending it in one burst.
Refused sign-ins
Requests without a valid key are counted for the address they come from. After 60 of them in 5 minutes, further ones get 429 rate_limited instead of 401 unauthorized until the window ends. A client with a wrong key should stop, not try again.