Rate Limit
The number of requests that can be made through the API is currently limited to 5000 requests per hour.
The rate limiting information is contained within the response headers of each request.
If the X-RateLimit-Remaining 0 is reached, subsequent requests receive a 429 error code until the
X-RateLimit-Reset is reached.
#Headers
| Header Name | Description |
|---|---|
| X-RateLimit-Limit | The number of requests that can be made per hour. |
| X-RateLimit-Remaining | The number of requests that remain before you hit your request limit. |
| X-RateLimit-Reset | This represents the time when the oldest request will expire. The value is given in UTC epoch seconds. |
If you exceed your rate limit, you can likely fix the issue by caching API responses and using Conditional Request.
#Examples
#Rate Limit not reached
Request
GET /production-methods HTTP/1.1
Response
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4957
{
"data": [
{
"id": 4,
"handle": "manual",
"collection_name": "manual",
"name": {
"ar": "دليل",
"de": "Eigenes Produktionsverfahren",
"en": "Manual",
"es": "Manual",
"fr": "Manuel",
"it": "Manuale",
"ja": "マニュアル",
"ko": "Eigenes Produktionsverfahren",
"nl": "Manueel",
"pl": "Ręcznie",
"sv": "Egen produktionsprocess",
"tr": "El ile"
},
"created_at": "2023-01-10T10:11:10+00:00",
"updated_at": "2023-01-10T10:11:10+00:00"
}
........
]
}
#Rate Limit reached
Request
GET /production-methods HTTP/1.1
Response
GET /production-methods HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1377013266
{
"message": "Too many attempts."
}