lichess-org / lichess-org/lila
API arena tournament info - Page number limited to 200
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 18.7k
- Forks
- 2.8k
- Avg merge
- 21h 7m
- Merged PRs (30d)
- 257
Description
As described on https://lichess.org/api#operation/tournament one can get detailed score sheets of participants in an arena via the endpoint `https://lichess.org/tournament/{id}?page={p}`, with page p returning the p-th group of 10 players. Currently the page option is limited to a number below 200, which is insufficient for big tournaments with more than 2000 players (e.g. some of the marathons, which had up to 31000 participants, a factor 15-16 above this limit).
Can this upper bound on the page be removed/increased, to be able to fetch score sheets of players finishing above the 2000th position?
(Using e.g. `?page=201` or `?page=202` still returns the 200th page, so this limit is actually enforced and seemingly cannot be circumvented.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the documented GET /tournament/{id}?page={p} endpoint and trace how the page parameter is validated or capped. Confirm the current behavior with a tournament exceeding 2,000 participants, then verify that later pages return the corresponding participant groups without breaking existing pagination behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100