Skip to content

Commit e23f8fa

Browse files
committed
Add Rate Limit header info and update limit info
1 parent 99b04b8 commit e23f8fa

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

openapi.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ info:
341341

342342
## Rate Limiting
343343

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+
With the Linode API, you can make up to 1,600 general API requests every two minutes per user as determined by IP address or by OAuth token. Additionally, all endpoints have a global limit of 800 requests per minute per user along with specific endpoint limits defined below.
346345

347346
**Note:** There may be rate limiting applied at other levels outside of the API, for example, at the load balancer.
348347

@@ -374,6 +373,23 @@ info:
374373

375374
* [Service Transfer Accept](/docs/api/account/#service-transfer-accept)
376375

376+
All GET requests to endpoints that return a `data` collection have a dedicated limit of 100 requests per minute and 10 requests per second per user.
377+
378+
## Rate Limit Response Headers
379+
380+
The Linode API includes the following HTTP response headers related to rate limiting:
381+
382+
* **X-RateLimit-Limit**: The maximum number of permitted requests during the rate limit window for this endpoint.
383+
* **X-RateLimit-Remaining**: The remaining number of permitted requests in the current rate limit window.
384+
* **X-RateLimit-Reset**: The time when the current rate limit window rests in UTC epoch seconds.
385+
* **Retry-After**: The remaining time in seconds until the current rate limit window resets.
386+
387+
To view HTTP response headers when making requests with `curl`, use the `-i` or `--include` option. For example:
388+
389+
```Shell
390+
curl -i "https://api.linode.com/v4/regions"
391+
```
392+
377393
## CLI (Command Line Interface)
378394

379395
The <a href="https://github.com/linode/linode-cli" target="_top">Linode CLI</a> allows you to easily

0 commit comments

Comments
 (0)