# Pagination Lists (`GET /trades`, `GET /requests`, `GET /trades/{trade_id}/services`…) are paginated by cursor: pages stay stable even if requests arrive between two calls. ## Parameters and response - `limit`: page size, from 1 to 100, 20 by default. - `starting_after`: the `next_cursor` of the previous page (opaque: do not build it yourself). ``` {"object": "list", "data": [ … ], "has_more": true, "next_cursor": "cur_…"} ``` The `Link: <…>; rel="next"` header (RFC 8288) also gives the address of the next page. ## Example loop (Python) ``` cursor, requests_ = None, [] while True: q = "?limit=100" + (f"&starting_after={cursor}" if cursor else "") page = call("GET", "/requests" + q) requests_ += page["data"] if not page["has_more"]: break cursor = page["next_cursor"] ``` The `call` function: [code examples](https://kelki.ai/developers/en/examples/#python). `GET /requests` returns the requests of the key's account and mode, most recent first. ## About this page - URL : https://kelki.ai/developers/en/pagination/ - Language : en - fr : https://kelki.ai/developers/fr/pagination/ - en : https://kelki.ai/developers/en/pagination/ - x-default : https://kelki.ai/developers/ - Portal : https://kelki.ai/developers/llms.txt