-
Notifications
You must be signed in to change notification settings - Fork 2
Resource BattleRankingResource
CrucifiedPain edited this page Jun 26, 2026
·
10 revisions
Endpoints: • battleRanking.getRanking
Get battle rankings.
Args: data_type: What to rank by — damage, points, or money. type: Entity type — user, country, or mu. side: Which side — attacker or defender. battle_id: Optional filter by battle. round_id: Optional filter by round. war_id: Optional filter by war.
await client.battleranking.get(data_type: 'BattleRankingDataType | str', type: 'BattleRankingEntityType | str', side: 'BattleRankingSide | str', *, battle_id: 'str | None' = None, round_id: 'str | None' = None, war_id: 'str | None' = None) -> 'list[BattleRankingEntry]'| Name | Type | Default |
|---|---|---|
data_type |
`BattleRankingDataType | str` |
type |
`BattleRankingEntityType | str` |
side |
`BattleRankingSide | str` |
battle_id |
`str | None` |
round_id |
`str | None` |
war_id |
`str | None` |
Clear the SWR cache for all resources.
await client.battleranking.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