There was an error while loading. Please reload this page.
client.ranking
Endpoints: • ranking.getRanking
.get()
Get a ranking leaderboard.
Args: ranking_type: One of 25 ranking types (country, user, or MU). Use the RankingType enum for tab-completion.
Example: entries = await client.ranking.get(RankingType.USER_WEALTH) for e in entries: print(e.rank, e.name, e.value)
await client.ranking.get(ranking_type: 'RankingType | str') -> 'list[RankingEntry]'
ranking_type
.invalidate_cache()
Clear the SWR cache for all resources.
await client.ranking.invalidate_cache() -> 'None'