> For the complete documentation index, see [llms.txt](https://dev.redirhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.redirhub.com/pagination.md).

# Pagination

In this guide, we will look at how to work with paginated responses when querying the RedirHub API. By default, all responses are limited to 100 results. However, you can customize the number of results returned by passing a `per_page` parameter to your requests. The `per_page` should be between 5 and 1,000.

When an API response returns a list of objects, no matter the amount, pagination is supported. In paginated responses, objects are nested in a `data` attribute and have a `meta` attribute that provides useful information about the paginated result set. You can use the `page` query parameter in combination with the `per_page` to browse additional results from the API.

```json
{
   "data":[
      
   ],
   "meta":{
      "pagination":{
         "total":49,
         "count":49,
         "per_page":100,
         "current_page":1,
         "total_pages":1,
         "links":[
            
         ]
      }
   }
}
```

Finally, a `link` field within the response body will conveniently provide you with the next and previous API URLs.

\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://dev.redirhub.com/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.
