# Paging through leaderboards

**URL:** <https://forum.heroiclabs.com/t/paging-through-leaderboards/2336>\
**Category:** Runtime Framework\
**Created:** [February 3, 2022, 8:33pm UTC](https://forum.heroiclabs.com/t/paging-through-leaderboards/2336 "2022-02-03T20:33:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [February 3, 2022, 8:33pm UTC](https://forum.heroiclabs.com/t/paging-through-leaderboards/2336/1 "2022-02-03T20:33:10Z")

</div>

How to get a specific leaderboard page on the server side!?

The game displays leaderboards page by page with 20 records on each. It is possible to skip ahead by 5 pages for faster browsing so I can’t use the cursors (and there are other use cases beyond this example that wouldn’t have a cursor). How can I get an arbitrary page of records, say 1120 to 1140?

I can’t find any non-hacky way of doing it.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [February 4, 2022, 10:59am UTC](https://forum.heroiclabs.com/t/paging-through-leaderboards/2336/2 "2022-02-04T10:59:10Z")

</div>

Hello @adbourdages,

Could you please elaborate a bit on the use-cases you’re trying to cover that need skipping or fetching arbitrary pages in the leaderboard?

---

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [February 4, 2022, 4:31pm UTC](https://forum.heroiclabs.com/t/paging-through-leaderboards/2336/3 "2022-02-04T16:31:44Z")

</div>

Certainly

- allowing the player to skip ahead 5 pages in the leaderboard
  - this seems a common feature in most games with large leaderboards. Admittedly, paging through a 10000 entries on the client is an unlikely use-case but since we are migrating to Nakama and don’t want to change the client UI, it is “needed”

- fetching the last entries in the leaderboard for a “snapshot” view
  - the top 3 scores are shown, 5 scores around the player’s rank and 3 bottom scores

- fetching a list of score milestones to beat: the scores at rank 1, 3, …, 100, 200, … 1000, 2000, …
- building an “around me” view on the server side (can’t find typescript runtime methods for that)

That’s it so far for the competitive mode that uses leaderboards most intensively.
