Skip to main content

Pagination

Written by GoKart Support

The GoKart API uses pagination to efficiently manage and deliver large sets of data in smaller, more manageable portions. Instead of returning all records at once, paginated responses break the data into "pages" that contain a specified number of items. Clients can request specific pages of data and control how many items are returned per page by using the page and page_size query parameters.

Pagination Parameters

Parameter

Type

Default

Maximum

Description

Example

page

integer

0 (first page)

N/A

Specifies which page of results to retrieve. Should be zero or positive integers.

?page=0 (first page)
?page=1 (second page)

page_size

integer

10

100

Defines the number of results returned per page. Must be a positive integer. Controls the size of each page.

?page_size=10 (10 items per page), ?page_size=50 (50 items per page)

Request:

GET https://api.[YOUR_TENANT].getgokart.ai/api/v1/offer-wall/offers?page=0&page_size=10

Example JSON Response

{  "indexFrom": 0,  "pageIndex": 0,  "pageSize": 10,  "totalCount": 160,  "totalPages": 16,  "items": [...],  "hasPreviousPage": false,  "hasNextPage": true }
Did this answer your question?