Sort Me API
  • 👋Sort Me Documentation
  • API Methods
    • ⚰️Problems
    • 🚲Submissions
    • 🏆Contests
    • 📚Archives
    • ❤️Users
    • 🛰️Websocket
      • /listenSubmission
      • /contestEvents
    • 👾Miscellaneous
  • Tricky moments
    • 🛂Account limits
    • 🔑Authorization
    • 🗃️Pagination
    • 🈂️Localization
    • 🖼️Images
Powered by GitBook
On this page
  1. Tricky moments

Pagination

Last updated 1 year ago

Some methods can return big lists. In this case Sort Me API returns not all results, but only subset of them. Such API methods are marked as .

How it works

Despite of the name Pagination, Sort Me's pagination approach does not use pages abstraction layer.

Instead of it, we have 2 pagination control parameters: count and offset.

offset query parameter allows you to get all items after item, which has given ID.

In other words, when you make a request for method with pagination, you will recieve only first N items (each method has its own N constant). If you want to receive next N items, you must provide query parameter offset, holding an id of the last item of previously received list.

count parameter is provided in every response to methods with pagination. It indicates total count of items you are able to get.

🗃️
🗃️
Pagination applies