With the current implementation its not possible to get the leaderboards of the old pvp seasons, beacause the leaderboard was not called ladder, but legendary and guild (ref).
The name of future leaderboards might change again, so its probably a good idea to not hardcode the leaderboard name.
With the current implementation its not possible to get the leaderboards of the old pvp seasons, beacause the leaderboard was not called
ladder
, butlegendary
andguild
(ref).The name of future leaderboards might change again, so its probably a good idea to not hardcode the leaderboard name.
Edit: And another thing I just noticed, you haven't marked the leaderboard endpoint as paginated, but it is (example: requesting rank 200 (?page=199&page_size=1)).