-
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` |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
rank |
`integer | null` | No |
user |
`string | null` | No |
name |
`string | null` | No |
country |
`string | null` | No |
value |
`number | null` | No |
tier |
`string | null` | No |
mu |
`string | null` | No |
image |
`string | null` | No |
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