-
Notifications
You must be signed in to change notification settings - Fork 2
Resource RankingResource
CrucifiedPain edited this page Jun 26, 2026
·
9 revisions
Endpoints: • ranking.getRanking
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]'| Name | Type | Default |
|---|---|---|
ranking_type |
RankingType | str |
Required |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
rank |
integer |
Optional |
user |
string |
Optional |
name |
string |
Optional |
country |
string |
Optional |
value |
number |
Optional |
tier |
string |
Optional |
mu |
string |
Optional |
image |
string |
Optional |
Clear the SWR cache for all resources.
await client.ranking.invalidate_cache() -> 'None'- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker