Public API Version 2
Major change in this version is in the response format, now response body contains only the information of objects (pagination and other stuff is moved to headers). Response body will contain the object or array of objects. Incase of error, response body structure will be {message:"message description"}
Pagination Headers
X-Pagination-Totaltotal number of results.X-Pagination-Pagestotal number of pages.X-Pagination-Pagecurrent page number.X-Pagination-Limitresults per page.
Rate Limiting
Rate limiting is introduced with this version ( applicable for old versions of the API also ). You can create new tokens or modify/regenerate existing token at https://gorest.co.in/my-account/access-tokens with optional expiry date and mandatory rate limit per minute (default is 90 max is 300). To know the current rate limits please check the headers after each call
X-RateLimit-Limitnumber of allowed requests/minute.X-RateLimit-Remainingremaining requests within the current period.X-RateLimit-Resetseconds to wait before having maximum number of allowed requests again.
The v2 API is available at /public/v2/. The main difference is that pagination metadata is in response headers instead of the response body.
We also now have a canonical API at /public/api/v1/ with OpenAPI documentation at https://gorest.co.in/api-docs