Pagination

Rakkar uses offset and limit for pagination in API endpoints. Both the 'limit' and 'offset' is used together to retrieve specific section of data. By adjusting the offset and limit values, users can retrieve different portions of the dataset, rather than retrieving all data at once.

The 'offset' is the starting point of the dataset from where you want to begin receiving your data. For Rakkar, it is a number that represents the number of items.

The 'limit' indicates the maximum number of data that can be retrieved from the dataset, starting from the offset position. For Rakkar, the default limit is set at 1000.

NameTypeDescription
offsetnumberOffset for pagination
limitnumberDefault at 1000

Example

https://api.example.com/data?offset=20&limit=10

In this case, there may be 100 records of data but the API endpoint will retrieve data starting from the 21st item (offset=20) and return a maximum of 10 items (limit=10).