Rankings¶
- ranking(self, mode, type, *, country=None, cursor=None, filter_=RankingFilter.ALL, spotlight=None, variant=None)¶
Get current rankings for the specified game mode. Can specify
type
to get different types of rankings (performance, score, country, etc).- Parameters:
type (RankingType | str) – The type of ranking to get.
country (str | None) – Filter ranking by 2 letter country code. Only available for
RankingType.PERFORMANCE
.cursor (Cursor | None) – Cursor for pagination.
filter – Filter ranking by specified filter.
spotlight (int | None) – The id of the spotlight to return rankings for. Ranking for latest spotlight will be returned if not specified. Only available for
RankingType.SPOTLIGHT
.variant (str | None) – Filter ranking by game mode variant. Either
4k
or7k
for mania. Only available forRankingType.PERFORMANCE
.filter_ (RankingFilter | str)
- Return type:
Notes
Implements the Get Ranking endpoint.