Skip to main content

Pagination

All list endpoints return a unified paginated response shape.

Response Shape

{
"total": 100,
"page": 1,
"page_size": 20,
"items": [...]
}
FieldTypeDescription
totalintegerTotal number of records matching the query
pageintegerCurrent page number (1-based)
page_sizeintegerNumber of items per page
itemsarrayRecords for the current page

Request Parameters

Pagination is controlled via query parameters. Note: the size parameter name is inconsistent across endpoints — GET /api/brand/list uses page_size, while all other list endpoints use size.

EndpointPage paramSize param
GET /api/brand/listpagepage_size
GET /api/player/listpagesize
GET /api/player/{id}/transactionspagesize
GET /api/bet/listpagesize
GET /api/sports-bet/listpagesize

Defaults and limits

ParameterDefaultMaximum
page1
size / page_size20100

Both parameters must be positive integers (>= 1). Passing a value outside the valid range returns a 422 validation error.


Known inconsistency

GET /api/brand/list accepts page_size while all other list endpoints accept size. This inconsistency exists in the current API and will be addressed in a future release.