forked from w3c/w3c-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRate limiting
19 lines (15 loc) · 1.06 KB
/
Rate limiting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4524
X-RateLimit-Reset: 1439472737
Alternatively, the /rate_limit endpoint will give the same information in both JSON and headers, without increasing the number of hits.
If this limit is reached, you will get a 429 HTTP Error.
## Parameters---
The W3C API takes optional parameters that can be passed as an HTTP query string parameter.
### List of parameters:
Name Value Purpose Example
embed boolean By default, resources will be represented by links. On specific routes, the embed parameter allows to additionnaly embed related resources (see the HAL model for more details) https://api.w3.org/groups?embed=1
_doc 1 Show the documentation for a specific endpoint https://api.w3.org/groups?_doc=1
items Integer Specify how many items should be listed on a page. Default value: 100, max value: 1000 https://api.w3.org/groups?items=10
page Integer Specify which page should be displayed, Default value: 1 https://api.w3.org/groups?page=2
HTTP verbs
For now, the W3C API is read-only. Therefore the only HTTP verb we support is GET.