# Pagination

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 :card\_box: [Pagination applies](/tricky/pagination.md).

### How it works

Despite of the name *Pagin*ation, Sort Me's pagination approach does not use pages abstraction layer.&#x20;

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.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sort-me.org/tricky/pagination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
