Location

class clash_royale.models.location.Location[source]

Represents a location.

id: int
name: str
is_country: bool
country_code: str | None
class clash_royale.models.location.ClanRanking[source]

Represents a clan ranking.

clan_score: int
badge_id: int
location: Location
members: int
tag: str
name: str
rank: int
previous_rank: int
badge_urls: Badge | None
class clash_royale.models.location.PlayerRanking[source]

Represents a player ranking.

trophies: int
clan: PlayerRankingClan | None
tag: str
name: str
rank: int
previous_rank: int
badge_urls: Badge | None
class clash_royale.models.location.PlayerRankingClan[source]

Represents a player’s clan in rankings.

tag: str
name: str
badge_id: int
badge_urls: Badge | None
class clash_royale.models.location.PlayerPathOfLegendRanking[source]

Represents a player ranking in Path of Legends.

tag: str
name: str
exp_level: int
elo_rating: int
rank: int
clan: PlayerRankingClan | None
class clash_royale.models.location.PlayerSeasonRanking[source]

Represents a player ranking for a season.

tag: str
name: str
exp_level: int
trophies: int
rank: int
previous_rank: int | None
clan: PlayerRankingClan | None
arena: Arena | None
class clash_royale.models.location.LeagueSeason[source]

Represents a league season.

Note

The API may return null values due to a known bug.

id: str | None
class clash_royale.models.location.LeagueSeasonV2[source]

Represents a league season with end dates.

Note

The API may return null/missing values due to a known bug.

code: str | None
unique_id: str | None
end_time: str | None
class clash_royale.models.location.LadderTournamentRanking[source]

Represents a ladder tournament ranking.

clan: PlayerRankingClan | None
wins: int
losses: int
tag: str
name: str
rank: int
previous_rank: int