Skip to main content

Sorting

All endpoints are sorted by the id field in ascending order by default (oldest first). You can override this by including a _sort with the field you want to sort by in the request. You cannot sort on fields in nested objects, so if a game contains a tags object you cannot sort on the tag name field, but you can sort by the games name since the games name resides in the parent object.

NOTE: Some endpoints like Get Mods have special sort parameters like popular, downloads, rating and subscribers which are documented alongside the filters.

_sort (Sort)

v1/games?_sort=name

Sort by a field, in ascending or descending order.

  • ?_sort=name - Sort name in ascending order

  • ?_sort=-name - Sort name in descending order (by prepending a -)