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
Copy file name to clipboardExpand all lines: openapi.yaml
+27-12Lines changed: 27 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -341,39 +341,54 @@ info:
341
341
342
342
## Rate Limiting
343
343
344
-
With the Linode API, you can make up to 1,600 general API requests every two minutes per user as
345
-
determined by IP address or by OAuth token. Additionally, there are endpoint specific limits defined below.
344
+
Rate limits on API requests help maintain the health and stability of the Linode API. Accordingly, every endpoint of the Linode API applies a rate limit on a per user basis as determined by OAuth token for authenticated requests or IP address for public endpoints.
345
+
346
+
Each rate limit consists of a total number of requests and a time window. For example, if an endpoint has a rate limit of 800 requests per minute, then up to 800 requests over a one minute window are permitted. Subsequent requests to an endpoint after hitting a rate limit return a 429 error. You can successfully remake requests to that endpoint after the rate limit window resets.
347
+
348
+
### Linode APIv4 Rate Limits
349
+
350
+
With the Linode API, you can generally make up to 1,600 general API requests every two minutes. Additionally, all endpoints have a rate limit of 800 requests per minute unless otherwise specified below.
346
351
347
352
**Note:** There may be rate limiting applied at other levels outside of the API, for example, at the load balancer.
348
353
349
-
Creating Linodes has a dedicated limit of 10 requests per 30 seconds per user.
350
-
That endpoint is:
354
+
Creating Linodes has a dedicated rate limit of 10 requests per 30 seconds. That endpoint is:
Opening Support Tickets has a dedicated limit of 2 requests per minute per user.
368
-
That endpoint is:
369
+
Opening Support Tickets has a dedicated rate limit of 2 requests per minute. That endpoint is:
369
370
370
371
* [Open Support Ticket](/docs/api/support/#support-ticket-open)
371
372
372
-
Accepting Service Transfers has a dedicated limit of 2 requests per minute per user.
373
-
That endpoint is:
373
+
Accepting Service Transfers has a dedicated rate limit of 2 requests per minute. That endpoint is:
374
374
375
375
* [Service Transfer Accept](/docs/api/account/#service-transfer-accept)
376
376
377
+
### Rate Limit HTTP Response Headers
378
+
379
+
The Linode API includes the following HTTP response headers which are designed to help you avoid hitting rate limits that might disrupt your applications:
380
+
381
+
* **X-RateLimit-Limit**: The maximum number of permitted requests during the rate limit window for this endpoint.
382
+
* **X-RateLimit-Remaining**: The remaining number of permitted requests in the current rate limit window.
383
+
* **X-RateLimit-Reset**: The time when the current rate limit window rests in UTC epoch seconds.
384
+
* **Retry-After**: The remaining time in seconds until the current rate limit window resets.
385
+
386
+
There are many ways to access header information for your requests, depending on how you are accessing the Linode API. For example, to view HTTP response headers when making requests with `curl`, use the `-i` or `--include` option as follows:
387
+
388
+
```Shell
389
+
curl -i https://api.linode.com/v4/regions
390
+
```
391
+
377
392
## CLI (Command Line Interface)
378
393
379
394
The <a href="https://github.com/linode/linode-cli" target="_top">Linode CLI</a> allows you to easily
0 commit comments