Comment on page
For paginated endpoints, the API supports ordering on a specific field. Read more on how to use ordering on this page.
orderquery parameter is used to specify the order in which paginated results should be returned. By default, results are returned in ascending order. However, you can use the
orderparameter to specify that results should be returned in descending order instead.
Using ordering allows for more convenient results to be returned, next to that it can potentially save you from making API calls as you don't have to propagate through redundant results.
To use the
orderquery parameter, simply include it in the request URL for paginated endpoints. For example:
In this example, the API will return page 2 of results for the
leaguesendpoint, in descending order.
The field used for ordering differs per endpoint, you should consult the endpoints documentation page to see what field the ordering applies on.