Installation
ClashRoyaleAPI is a Python client for the official Clash Royale REST API. It fetches players, clans, cards, tournaments and rankings. All network calls are asynchronous.
Requires Python 3.12 or newer. Install the package from PyPI:
python -m pip install --upgrade async-royale-client
The package name used by pip is async-royale-client; the Python import is clashroyaleapi.
Get an API token
- Create an account at the official developer portal.
- Create an API key and allowlist the public IP address of the machine running your code. For a deployed bot or website, use your server's outgoing IP.
- Copy the token into an environment variable. Keep it out of your source code and Git repository.
On Linux or macOS:
export CLASH_ROYALE_API_TOKEN="your-api-token"
On Windows PowerShell:
$env:CLASH_ROYALE_API_TOKEN = "your-api-token"
A 403 response usually means the token or the allowed IP needs checking. Your local IP, such as 192.168.x.x, is not your outgoing public IP.
Your first request
Save this complete example as example.py. Replace the player tag with one from your in-game profile, then run python example.py in the terminal where you set the token.
<span class="token-keyword">import</span> asyncio
<span class="token-keyword">import</span> os
<span class="token-keyword">from</span> clashroyaleapi <span class="token-keyword">import</span> <span class="token-class">Client</span>
<span class="token-keyword">async</span> <span class="token-keyword">def</span> <span class="token-function">main</span>():
token <span class="token-operator">=</span> os<span class="token-operator">.</span>environ[<span class="token-string">"</span><span class="token-string">CLASH_ROYALE_API_TOKEN</span><span class="token-string">"</span>]
<span class="token-keyword">async</span> <span class="token-keyword">with</span> <span class="token-class">Client</span>(api_token<span class="token-operator">=</span>token) <span class="token-keyword">as</span> client:
player <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>) <span class="token-comment"># Replace with your tag</span>
<span class="token-builtin">print</span>(<span class="token-string">f</span><span class="token-string">"</span><span class="token-string">{</span>player<span class="token-operator">.</span>name<span class="token-string">}</span><span class="token-string">: </span><span class="token-string">{</span>player<span class="token-operator">.</span>trophies<span class="token-string">}</span><span class="token-string"> trophies</span><span class="token-string">"</span>)
<span class="token-keyword">if</span> player<span class="token-operator">.</span>clan <span class="token-operator">is</span> <span class="token-operator">not</span> <span class="token-constant">None</span>:
<span class="token-builtin">print</span>(<span class="token-string">f</span><span class="token-string">"</span><span class="token-string">Clan: </span><span class="token-string">{</span>player<span class="token-operator">.</span>clan<span class="token-operator">.</span>name<span class="token-string">}</span><span class="token-string">"</span>)
asyncio<span class="token-operator">.</span>run(main())
await waits for the API response. async with opens the client and closes its connections when you finish. Reuse one client for several requests. If your bot framework or notebook already runs an event loop, call await main() there instead of asyncio.run(main()).
Next: try the common tasks, learn pagination, or jump to the player methods.
Common tasks
The following snippets go inside the async with Client(...) as client: block from the example above.
Find a clan and list its members
clans <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>search_clans(name<span class="token-operator">=</span><span class="token-string">"</span><span class="token-string">royale</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">5</span>)
<span class="token-keyword">if</span> clans<span class="token-operator">.</span>items:
clan <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan(clans<span class="token-operator">.</span>items[<span class="token-number">0</span>]<span class="token-operator">.</span>tag)
<span class="token-builtin">print</span>(clan<span class="token-operator">.</span>name, clan<span class="token-operator">.</span>members)
<span class="token-keyword">async</span> <span class="token-keyword">for</span> member <span class="token-operator">in</span> client<span class="token-operator">.</span>iter_get_clan_members(clan<span class="token-operator">.</span>tag, limit<span class="token-operator">=</span><span class="token-number">50</span>):
<span class="token-builtin">print</span>(member<span class="token-operator">.</span>name, member<span class="token-operator">.</span>trophies)
Clan searches need at least one filter. A name must contain at least three characters. You can also filter with location_id, min_members, max_members and min_score.
Read a player's recent battles
battles <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_battle_log(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)
<span class="token-keyword">for</span> battle <span class="token-operator">in</span> battles:
<span class="token-builtin">print</span>(battle<span class="token-operator">.</span>type, battle<span class="token-operator">.</span>battle_time)
<span class="token-keyword">for</span> teammate <span class="token-operator">in</span> battle<span class="token-operator">.</span>team <span class="token-operator">or</span> []:
<span class="token-builtin">print</span>(teammate<span class="token-operator">.</span>name, teammate<span class="token-operator">.</span>crowns)
Battle logs return a regular Python list. Iterate it with for; the request itself uses await.
Browse cards and current rankings
cards <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_cards()
<span class="token-keyword">for</span> card <span class="token-operator">in</span> cards<span class="token-operator">.</span>items:
<span class="token-builtin">print</span>(card<span class="token-operator">.</span>name, card<span class="token-operator">.</span>elixir_cost)
rankings <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_path_of_legend_ranking(<span class="token-string">"</span><span class="token-string">global</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)
<span class="token-keyword">for</span> player <span class="token-operator">in</span> rankings<span class="token-operator">.</span>items:
<span class="token-builtin">print</span>(player<span class="token-operator">.</span>rank, player<span class="token-operator">.</span>name, player<span class="token-operator">.</span>elo_rating)
Use "global" for worldwide rankings, or a location ID from get_locations() for a supported region. For a single location's details, pass its numeric ID as a string to get_location().
Pages and async iterators
The client returns one of three shapes:
| Result | How to read it | Example |
|---|---|---|
| A model | Access its attributes | player.name |
Page[T] |
Iterate .items, or use an async iterator |
clans.items |
| A Python list | Use a normal for loop |
battles |
One page is useful for a preview or a table:
page <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_members(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)
<span class="token-keyword">for</span> member <span class="token-operator">in</span> page<span class="token-operator">.</span>items:
<span class="token-builtin">print</span>(member<span class="token-operator">.</span>name)
<span class="token-comment"># Request the next page only when the API supplies a cursor.</span>
<span class="token-keyword">if</span> page<span class="token-operator">.</span>paging<span class="token-operator">.</span>cursors<span class="token-operator">.</span>after:
next_page <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_members(
<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>,
limit<span class="token-operator">=</span><span class="token-number">10</span>,
after<span class="token-operator">=</span>page<span class="token-operator">.</span>paging<span class="token-operator">.</span>cursors<span class="token-operator">.</span>after,
)
An async iterator follows the API's available pages for you:
<span class="token-keyword">async</span> <span class="token-keyword">for</span> member <span class="token-operator">in</span> client<span class="token-operator">.</span>iter_get_clan_members(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>):
<span class="token-builtin">print</span>(member<span class="token-operator">.</span>name)
limit is the requested page size, not a total item cap. Every paginated method has an iter_ companion. Pass before to traverse backwards; do not combine before and after. Some upstream endpoints return all items without supplying another cursor.
Working with response models
Models expose Python-style snake_case fields. Optional fields can be None; for example, a player may have no clan. Unknown API fields are retained, so new upstream data remains accessible in exported JSON.
player <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)
<span class="token-builtin">print</span>(player<span class="token-operator">.</span>collection_level)
<span class="token-keyword">for</span> card <span class="token-operator">in</span> player<span class="token-operator">.</span>cards <span class="token-operator">or</span> []:
<span class="token-builtin">print</span>(card<span class="token-operator">.</span>name, card<span class="token-operator">.</span>level)
<span class="token-comment"># A JSON-compatible dictionary using the original API names.</span>
data <span class="token-operator">=</span> player<span class="token-operator">.</span>to_dict()
<span class="token-builtin">print</span>(data[<span class="token-string">"</span><span class="token-string">collectionLevel</span><span class="token-string">"</span>])
<span class="token-comment"># A serialized JSON string, also using the API names.</span>
<span class="token-builtin">print</span>(player<span class="token-operator">.</span>model_dump_json(by_alias<span class="token-operator">=</span><span class="token-constant">True</span>, exclude_unset<span class="token-operator">=</span><span class="token-constant">True</span>))
Known timestamps, such as battle.battle_time, become timezone-aware UTC datetime objects. Unresolved structures retain their original JSON values. The model reference lists available attributes and their API aliases.
Configure the client
Defaults suit a small script. For a long-running bot or application, reuse a client and adjust the options you need:
<span class="token-keyword">async</span> <span class="token-keyword">with</span> <span class="token-class">Client</span>(
api_token<span class="token-operator">=</span>token,
timeout<span class="token-operator">=</span><span class="token-number">20</span>,
max_clients<span class="token-operator">=</span><span class="token-number">10</span>,
max_attempts<span class="token-operator">=</span><span class="token-number">3</span>,
cache_ttl<span class="token-operator">=</span><span class="token-number">30</span>,
cache_size<span class="token-operator">=</span><span class="token-number">256</span>,
) <span class="token-keyword">as</span> client:
player <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)
| Option | Default | Meaning |
|---|---|---|
api_token |
Required | Your Supercell API token |
timeout |
20 |
Request timeout in seconds |
max_clients |
10 |
Maximum concurrent curl handles |
max_attempts |
3 |
Total attempts per GET request, from 1 to 3 |
cache_ttl |
0 |
Cache lifetime in seconds; zero disables caching |
cache_size |
256 |
Maximum cached responses per client |
proxy |
None |
Optional proxy URL |
verify |
True |
TLS certificate verification |
base_url |
https://api.clashroyale.com/v1 |
API base URL; your token is sent here |
Retries cover network failures, HTTP 429 and HTTP 5xx, with bounded delays. Caching is opt-in and stores successful responses only. If you manage the lifecycle manually, call await client.close() before the event loop ends.
Handle errors
Catch specific errors where your application can recover. All request exceptions inherit from APIError and expose status, reason and detail when available.
<span class="token-keyword">from</span> clashroyaleapi <span class="token-keyword">import</span> <span class="token-class">APIError</span>, <span class="token-class">AuthenticationError</span>, <span class="token-class">NotFound</span>, <span class="token-class">RateLimitExceeded</span>
<span class="token-keyword">try</span>:
player <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)
<span class="token-keyword">except</span> <span class="token-class">AuthenticationError</span>:
<span class="token-builtin">print</span>(<span class="token-string">"</span><span class="token-string">Check your API token and public IP allowlist.</span><span class="token-string">"</span>)
<span class="token-keyword">except</span> <span class="token-class">NotFound</span>:
<span class="token-builtin">print</span>(<span class="token-string">"</span><span class="token-string">The player was not found, or this upstream resource is unavailable.</span><span class="token-string">"</span>)
<span class="token-keyword">except</span> <span class="token-class">RateLimitExceeded</span>:
<span class="token-builtin">print</span>(<span class="token-string">"</span><span class="token-string">The API is still rate limited after retries. Try again later.</span><span class="token-string">"</span>)
<span class="token-keyword">except</span> <span class="token-class">APIError</span> <span class="token-keyword">as</span> error:
<span class="token-builtin">print</span>(<span class="token-string">f</span><span class="token-string">"</span><span class="token-string">API request failed: </span><span class="token-string">{</span>error<span class="token-operator">.</span>status<span class="token-string">}</span><span class="token-string"> / </span><span class="token-string">{</span>error<span class="token-operator">.</span>reason<span class="token-string">}</span><span class="token-string">"</span>)
| Exception | When it is raised |
|---|---|
InvalidParameter |
HTTP 400: rejected parameters |
AuthenticationError |
HTTP 401 or 403: credentials or access |
NotFound |
HTTP 404: missing resource or unavailable route |
RateLimitExceeded |
HTTP 429 after retries |
ServerError |
HTTP 5xx after retries |
NetworkError |
Transport failure after retries |
InvalidResponse |
Invalid JSON or an unexpected response shape |
APIError |
Other non-200 responses, including HTTP 410 |
Invalid local arguments raise ValueError. Using a closed client raises RuntimeError. Cancellation propagates to the caller.
Availability and compatibility
The client wraps all 30 documented GET operations. Live verification successfully exercised 26 operations; two are explicitly disabled or removed by Supercell, and two lacked working active resources. See the live audit report for details and reproduction instructions.
- Clan war log: Supercell returns an explicit temporary-disable message.
- Current clan war: Supercell returns HTTP 410, permanently removed. Use current river-race data for modern clan wars.
- Trophy Road player rankings: deprecated and documented to return an empty list. Use Path of Legend rankings for current competitive standings.
- Global-tournament and league-specific rankings: availability depends on upstream resources. A 404 alone does not establish that an entire route is disabled.
Moving from the unfinished client? Import Client from clashroyaleapi, await network calls, and use model fields such as player.cards instead of the old getter generators. get_player_chest_cycle() is now get_player_upcoming_chests(); read its .items list.
This is an unofficial project, independent of Supercell. Licensed under GPL-3.0-only; Clash Royale trademarks and game content belong to their respective owners.
Players
Profiles, upcoming chests and recent battles.
get_player()
Get player information
GET /players/{playerTag}
Parameters
- player_tagstrPlayer tag from an in-game profile or a clan member. A leading # is optional. Required.
Returns
PlayerUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)get_player_upcoming_chests()
Get information about player's upcoming chests
GET /players/{playerTag}/upcomingchests
Parameters
- player_tagstrPlayer tag from an in-game profile or a clan member. A leading # is optional. Required.
Returns
UpcomingChestsUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_upcoming_chests(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)get_player_battle_log()
Get list of recent battles for a player
GET /players/{playerTag}/battlelog
Parameters
- player_tagstrPlayer tag from an in-game profile or a clan member. A leading # is optional. Required.
Returns
list[Battle]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_battle_log(<span class="token-string">"</span><span class="token-string">#J92CYLP28</span><span class="token-string">"</span>)Clans & river races
Find clans, read their members and follow clan wars.
get_clan_war_log()
Retrieve clan's clan war log
GET /clans/{clanTag}/warlog
Check upstream availability before using this operation. This example may return an upstream error or an empty result.
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[ClanWarLogEntry]For automatic paging, use client.iter_get_clan_war_log(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_war_log(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)search_clans()
Search clans
GET /clans
Parameters
- namestr | NoneSearch text of at least three characters. Upstream search ordering is unspecified. Default: None.
- location_idint | NoneLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Default: None.
- min_membersint | NoneMinimum clan member count. Default: None.
- max_membersint | NoneMaximum clan member count; must be at least min_members. Default: None.
- min_scoreint | NoneMinimum clan score. Default: None.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[Clan]For automatic paging, use client.iter_search_clans(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>search_clans(name<span class="token-operator">=</span><span class="token-string">"</span><span class="token-string">royale</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_clan_river_race_log()
Retrieve clan's river race log
GET /clans/{clanTag}/riverracelog
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[RiverRaceLogEntry]For automatic paging, use client.iter_get_clan_river_race_log(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_river_race_log(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_current_war()
Retrieve information about clan's current clan war
GET /clans/{clanTag}/currentwar
Check upstream availability before using this operation. This example may return an upstream error or an empty result.
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
Returns
CurrentClanWarUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_current_war(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>)get_clan()
Get clan information
GET /clans/{clanTag}
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
Returns
ClanUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>)get_clan_members()
List clan members
GET /clans/{clanTag}/members
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[ClanMember]For automatic paging, use client.iter_get_clan_members(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_members(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_current_river_race()
Retrieve information about clan's current river race
GET /clans/{clanTag}/currentriverrace
Parameters
- clan_tagstrClan tag returned by search_clans() or a player profile. A leading # is optional. Required.
Returns
CurrentRiverRaceUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_current_river_race(<span class="token-string">"</span><span class="token-string">#88Q2JCVL</span><span class="token-string">"</span>)Cards
Browse the card catalog, including preserved supportItems data.
get_cards()
Get list of available cards
GET /cards
Parameters
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[Item]For automatic paging, use client.iter_get_cards(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_cards(limit<span class="token-operator">=</span><span class="token-number">10</span>)Tournaments
Search player-created tournaments and fetch details.
search_tournaments()
Search tournaments
GET /tournaments
Parameters
- namestr | NoneSearch text of at least three characters. Upstream search ordering is unspecified. Default: None.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[TournamentHeader]For automatic paging, use client.iter_search_tournaments(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>search_tournaments(name<span class="token-operator">=</span><span class="token-string">"</span><span class="token-string">royale</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_tournament()
Get tournament information
GET /tournaments/{tournamentTag}
Parameters
- tournament_tagstrTournament tag returned by search_tournaments(); for global rankings, use the global event identifier. Required.
Returns
TournamentUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_tournament(<span class="token-string">"</span><span class="token-string">#2GG80C0Q</span><span class="token-string">"</span>)Locations & rankings
Regions, seasons, historical rankings and Path of Legend.
get_clan_ranking()
Get clan rankings for a specific location
GET /locations/{locationId}/rankings/clans
Parameters
- location_idstrLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[ClanRanking]For automatic paging, use client.iter_get_clan_ranking(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_ranking(<span class="token-string">"</span><span class="token-string">global</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_player_ranking()
Get player rankings for a specific location
GET /locations/{locationId}/rankings/players
Check upstream availability before using this operation. This example may return an upstream error or an empty result.
Parameters
- location_idstrLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[PlayerRanking]For automatic paging, use client.iter_get_player_ranking(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_ranking(<span class="token-string">"</span><span class="token-string">global</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_clan_wars_ranking()
Get clan war rankings for a specific location
GET /locations/{locationId}/rankings/clanwars
Parameters
- location_idstrLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[ClanRanking]For automatic paging, use client.iter_get_clan_wars_ranking(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_clan_wars_ranking(<span class="token-string">"</span><span class="token-string">global</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_top_player_path_of_legend_season_rankings()
Get top Path of Legend players for given season.
GET /locations/global/pathoflegend/{seasonId}/rankings/players
Parameters
- season_idstrSeason identifier such as "2026-10" from get_seasons(). Legacy Trophy Road rankings require a historical season. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[PlayerPathOfLegendRanking]For automatic paging, use client.iter_get_top_player_path_of_legend_season_rankings(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_top_player_path_of_legend_season_rankings(<span class="token-string">"</span><span class="token-string">2026-10</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_season()
Get top player league season.
GET /locations/global/seasons/{seasonId}
Parameters
- season_idstrSeason identifier such as "2026-10" from get_seasons(). Legacy Trophy Road rankings require a historical season. Required.
Returns
LeagueSeasonUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_season(<span class="token-string">"</span><span class="token-string">2026-10</span><span class="token-string">"</span>)get_top_player_league_season_rankings()
Get top player rankings for a season.
GET /locations/global/seasons/{seasonId}/rankings/players
Parameters
- season_idstrSeason identifier such as "2026-10" from get_seasons(). Legacy Trophy Road rankings require a historical season. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[PlayerRanking]For automatic paging, use client.iter_get_top_player_league_season_rankings(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_top_player_league_season_rankings(<span class="token-string">"</span><span class="token-string">2022-09</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_seasons()
Lists top player league seasons.
GET /locations/global/seasons
Parameters
- No parameters.
Returns
list[LeagueSeason]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_seasons()get_locations()
List locations
GET /locations
Parameters
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[Location]For automatic paging, use client.iter_get_locations(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_locations(limit<span class="token-operator">=</span><span class="token-number">10</span>)get_seasons_v2()
Lists league seasons with more details.
GET /locations/global/seasonsV2
Parameters
- No parameters.
Returns
list[LeagueSeasonV2]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_seasons_v2()get_location()
Get location information
GET /locations/{locationId}
Parameters
- location_idstrLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Required.
Returns
LocationUsage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_location(<span class="token-string">"</span><span class="token-string">57000094</span><span class="token-string">"</span>)get_global_tournament_ranking()
Get global tournament rankings
GET /locations/global/rankings/tournaments/{tournamentTag}
Check upstream availability before using this operation. This example may return an upstream error or an empty result.
Parameters
- tournament_tagstrTournament tag returned by search_tournaments(); for global rankings, use the global event identifier. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[LadderTournamentRanking]For automatic paging, use client.iter_get_global_tournament_ranking(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_global_tournament_ranking(<span class="token-string">"</span><span class="token-string">#758209</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_player_path_of_legend_ranking()
Get player rankings in Path of Legend for a specific location
GET /locations/{locationId}/pathoflegend/players
Parameters
- location_idstrLocation ID from get_locations(). Ranking routes also accept "global"; clan-search location_id is an integer. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[PlayerPathOfLegendRanking]For automatic paging, use client.iter_get_player_path_of_legend_ranking(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_player_path_of_legend_ranking(<span class="token-string">"</span><span class="token-string">global</span><span class="token-string">"</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)Events
Current in-game events and their descriptions.
get_events()
Get current events.
GET /events
Parameters
- No parameters.
Returns
list[TrailEvent]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_events()Leaderboards
Discover leaderboard IDs and fetch their ranked player entries.
get_leaderboard()
Get players on a specific leaderboard
GET /leaderboard/{leaderboardId}
Parameters
- leaderboard_idintLeaderboard ID returned by get_leaderboards(). Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[LeaderboardEntry]For automatic paging, use client.iter_get_leaderboard(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_leaderboard(<span class="token-number">170000019</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)get_leaderboards()
List leaderboards
GET /leaderboards
Parameters
- No parameters.
Returns
list[Leaderboard]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_leaderboards()get_leaderboard_league()
Get players on a League's board of a leaderboard
GET /leaderboard/{leaderboardId}/leagues/{leagueId}
Check upstream availability before using this operation. This example may return an upstream error or an empty result.
Parameters
- leaderboard_idintLeaderboard ID returned by get_leaderboards(). Required.
- league_idintLeague ID advertised by a leaderboard. Available leagues depend on the current event. Required.
- limitint | NoneRequested page size, not a total result cap. Follow a returned cursor for another page. Default: None.
- afterstr | NoneCursor for the next page. Cannot be combined with before. Default: None.
- beforestr | NoneCursor for the previous page. Cannot be combined with after. Default: None.
Returns
Page[LeaderboardEntry]For automatic paging, use client.iter_get_leaderboard_league(...) with async for. See pages and async iterators.
Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_leaderboard_league(<span class="token-number">170000019</span>, <span class="token-number">1</span>, limit<span class="token-operator">=</span><span class="token-number">10</span>)Global tournaments
Global tournament metadata, when an event is advertised.
get_global_tournaments()
Get list of global tournaments
GET /globaltournaments
Parameters
- No parameters.
Returns
list[LadderTournament]Usage inside an async Client context
result <span class="token-operator">=</span> <span class="token-keyword">await</span> client<span class="token-operator">.</span>get_global_tournaments()Model field reference
Expand a model to see its Python attributes, types and original JSON field names. Optional fields may be None. Start with Player, Clan, Item or Page.
APIModel
Flexible response model. Unknown fields are retained; export them with to_dict().
Cursors
| Attribute | Type | API field |
|---|---|---|
before | str | None | before |
after | str | None | after |
Paging
| Attribute | Type | API field |
|---|---|---|
cursors | Cursors | cursors |
Page
| Attribute | Type | API field |
|---|---|---|
items | list[T] | items |
paging | Paging | paging |
Arena
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
name | str | None | name |
Battle
| Attribute | Type | API field |
|---|---|---|
type | str | None | type |
battle_time | datetime | None | battleTime |
is_ladder_tournament | bool | None | isLadderTournament |
is_hosted_match | bool | None | isHostedMatch |
deck_selection | str | None | deckSelection |
league_number | int | None | leagueNumber |
game_mode | ForwardRef('GameMode | None') | gameMode |
arena | Arena | None | arena |
team | ForwardRef('list[PlayerBattleData] | None') | team |
opponent | ForwardRef('list[PlayerBattleData] | None') | opponent |
Chest
| Attribute | Type | API field |
|---|---|---|
index | int | None | index |
name | str | None | name |
Clan
| Attribute | Type | API field |
|---|---|---|
badge_id | int | None | badgeId |
member_list | ForwardRef('list[ClanMember] | None') | memberList |
clan_chest_status | str | None | clanChestStatus |
clan_chest_level | int | None | clanChestLevel |
clan_chest_max_level | int | None | clanChestMaxLevel |
clan_score | int | None | clanScore |
clan_war_trophies | int | None | clanWarTrophies |
required_trophies | int | None | requiredTrophies |
donations_per_week | int | None | donationsPerWeek |
members | int | None | members |
name | str | None | name |
location | ForwardRef('Location | None') | location |
type | str | None | type |
tag | str | None | tag |
description | str | None | description |
clan_chest_points | int | None | clanChestPoints |
badge_urls | Any | None | badgeUrls |
ClanMember
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
role | str | None | role |
last_seen | datetime | None | lastSeen |
exp_level | int | None | expLevel |
trophies | int | None | trophies |
clan_rank | int | None | clanRank |
previous_clan_rank | int | None | previousClanRank |
donations | int | None | donations |
donations_received | int | None | donationsReceived |
arena | Arena | None | arena |
ClanRanking
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
previous_rank | int | None | previousRank |
clan_score | int | None | clanScore |
members | int | None | members |
location | ForwardRef('Location | None') | location |
ClanWarClan
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
badge_id | int | None | badgeId |
clan_score | int | None | clanScore |
ClanWarLogEntry
| Attribute | Type | API field |
|---|---|---|
created_date | datetime | None | createdDate |
standings | ForwardRef('list[ClanWarStanding] | None') | standings |
participants | ForwardRef('list[ClanWarParticipant] | None') | participants |
ClanWarParticipant
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
wins | int | None | wins |
battles_played | int | None | battlesPlayed |
ClanWarStanding
| Attribute | Type | API field |
|---|---|---|
rank | int | None | rank |
trophy_change | int | None | trophyChange |
clan | ClanWarClan | None | clan |
CurrentClanWar
| Attribute | Type | API field |
|---|---|---|
state | str | None | state |
clan | ClanWarClan | None | clan |
participants | list[ClanWarParticipant] | None | participants |
clans | list[ClanWarClan] | None | clans |
collection_end_time | datetime | None | collectionEndTime |
war_end_time | datetime | None | warEndTime |
CurrentRiverRace
| Attribute | Type | API field |
|---|---|---|
state | str | None | state |
clan | ForwardRef('RiverRaceClan | None') | clan |
clans | ForwardRef('list[RiverRaceClan] | None') | clans |
collection_end_time | datetime | None | collectionEndTime |
war_end_time | datetime | None | warEndTime |
section_index | int | None | sectionIndex |
period_index | int | None | periodIndex |
period_type | str | None | periodType |
period_logs | ForwardRef('list[PeriodLog] | None') | periodLogs |
GameMode
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
name | str | None | name |
Item
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
name | str | None | name |
max_level | int | None | maxLevel |
max_evolution_level | int | None | maxEvolutionLevel |
rarity | str | None | rarity |
elixir_cost | int | None | elixirCost |
icon_urls | Any | None | iconUrls |
Items
| Attribute | Type | API field |
|---|---|---|
items | list[Item] | None | items |
support_items | list[Item] | None | supportItems |
LadderTournament
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
title | str | None | title |
game_mode | GameMode | None | gameMode |
start_time | datetime | None | startTime |
end_time | datetime | None | endTime |
LadderTournamentRanking
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
score | int | None | score |
clan | ForwardRef('PlayerRankingClan | None') | clan |
Leaderboard
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
name | Any | None | name |
leagues | Any | None | leagues |
LeaderboardEntry
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
score | int | None | score |
clan | ForwardRef('PlayerClan | None') | clan |
LeagueSeason
| Attribute | Type | API field |
|---|---|---|
id | str | None | id |
LeagueSeasonResult
| Attribute | Type | API field |
|---|---|---|
id | str | None | id |
trophies | int | None | trophies |
best_trophies | int | None | bestTrophies |
rank | int | None | rank |
LeagueSeasonV2
| Attribute | Type | API field |
|---|---|---|
code | str | None | code |
unique_id | int | None | uniqueId |
end_time | datetime | None | endTime |
Location
| Attribute | Type | API field |
|---|---|---|
localized_name | str | None | localizedName |
id | int | None | id |
name | str | None | name |
is_country | bool | None | isCountry |
country_code | str | None | countryCode |
PathOfLegendSeasonResult
| Attribute | Type | API field |
|---|---|---|
league_number | int | None | leagueNumber |
trophies | int | None | trophies |
rank | int | None | rank |
PeriodLog
| Attribute | Type | API field |
|---|---|---|
period_index | int | None | periodIndex |
items | ForwardRef('list[PeriodLogEntry] | None') | items |
PeriodLogEntry
| Attribute | Type | API field |
|---|---|---|
clan | ForwardRef('PeriodLogEntryClan | None') | clan |
points_earned | int | None | pointsEarned |
PeriodLogEntryClan
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
Player
| Attribute | Type | API field |
|---|---|---|
clan | ForwardRef('PlayerClan | None') | clan |
legacy_trophy_road_high_score | int | None | legacyTrophyRoadHighScore |
current_deck | ForwardRef('list[PlayerItemLevel] | None') | currentDeck |
current_deck_support_cards | ForwardRef('list[PlayerItemLevel] | None') | currentDeckSupportCards |
arena | Arena | None | arena |
role | str | None | role |
wins | int | None | wins |
losses | int | None | losses |
total_donations | int | None | totalDonations |
league_statistics | ForwardRef('PlayerLeagueStatistics | None') | leagueStatistics |
cards | ForwardRef('list[PlayerItemLevel] | None') | cards |
support_cards | ForwardRef('list[PlayerItemLevel] | None') | supportCards |
current_favourite_card | Item | None | currentFavouriteCard |
badges | ForwardRef('list[PlayerAchievementBadge] | None') | badges |
tag | str | None | tag |
name | str | None | name |
collection_level | int | None | collectionLevel |
king_tower_level | int | None | kingTowerLevel |
exp_level | int | None | expLevel |
trophies | int | None | trophies |
best_trophies | int | None | bestTrophies |
donations | int | None | donations |
donations_received | int | None | donationsReceived |
achievements | ForwardRef('list[PlayerAchievementProgress] | None') | achievements |
battle_count | int | None | battleCount |
three_crown_wins | int | None | threeCrownWins |
challenge_cards_won | int | None | challengeCardsWon |
challenge_max_wins | int | None | challengeMaxWins |
tournament_cards_won | int | None | tournamentCardsWon |
tournament_battle_count | int | None | tournamentBattleCount |
current_win_lose_streak | int | None | currentWinLoseStreak |
war_day_wins | int | None | warDayWins |
clan_cards_collected | int | None | clanCardsCollected |
star_points | int | None | starPoints |
exp_points | int | None | expPoints |
total_exp_points | int | None | totalExpPoints |
current_path_of_legend_season_result | PathOfLegendSeasonResult | None | currentPathOfLegendSeasonResult |
last_path_of_legend_season_result | PathOfLegendSeasonResult | None | lastPathOfLegendSeasonResult |
best_path_of_legend_season_result | PathOfLegendSeasonResult | None | bestPathOfLegendSeasonResult |
progress | Any | None | progress |
PlayerAchievementBadge
| Attribute | Type | API field |
|---|---|---|
name | str | None | name |
level | int | None | level |
max_level | int | None | maxLevel |
progress | int | None | progress |
target | int | None | target |
icon_urls | Any | None | iconUrls |
PlayerAchievementProgress
| Attribute | Type | API field |
|---|---|---|
name | str | None | name |
stars | int | None | stars |
value | int | None | value |
target | int | None | target |
info | str | None | info |
completion_info | str | None | completionInfo |
PlayerBattleData
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
crowns | int | None | crowns |
king_tower_hit_points | int | None | kingTowerHitPoints |
princess_towers_hit_points | Any | None | princessTowersHitPoints |
clan | ForwardRef('PlayerClan | None') | clan |
cards | ForwardRef('list[PlayerItemLevel] | None') | cards |
trophy_change | int | None | trophyChange |
elixir_leaked | float | None | elixirLeaked |
PlayerClan
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
badge_id | int | None | badgeId |
PlayerItemLevel
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
name | str | None | name |
level | int | None | level |
max_level | int | None | maxLevel |
count | int | None | count |
star_level | int | None | starLevel |
evolution_level | int | None | evolutionLevel |
rarity | str | None | rarity |
elixir_cost | int | None | elixirCost |
icon_urls | Any | None | iconUrls |
PlayerLeagueStatistics
| Attribute | Type | API field |
|---|---|---|
current_season | LeagueSeasonResult | None | currentSeason |
previous_season | LeagueSeasonResult | None | previousSeason |
best_season | LeagueSeasonResult | None | bestSeason |
PlayerPathOfLegendRanking
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
trophies | int | None | trophies |
clan | ForwardRef('PlayerRankingClan | None') | clan |
elo_rating | int | None | eloRating |
PlayerRanking
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
previous_rank | int | None | previousRank |
trophies | int | None | trophies |
clan | ForwardRef('PlayerRankingClan | None') | clan |
PlayerRankingClan
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
badge_id | int | None | badgeId |
RiverRaceClan
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
badge_id | int | None | badgeId |
fame | int | None | fame |
repair_points | int | None | repairPoints |
clan_score | int | None | clanScore |
participants | ForwardRef('list[RiverRaceParticipant] | None') | participants |
RiverRaceLogEntry
| Attribute | Type | API field |
|---|---|---|
season_id | int | None | seasonId |
section_index | int | None | sectionIndex |
created_date | datetime | None | createdDate |
standings | ForwardRef('list[RiverRaceStanding] | None') | standings |
RiverRaceParticipant
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
fame | int | None | fame |
repair_points | int | None | repairPoints |
decks_used | int | None | decksUsed |
decks_used_today | int | None | decksUsedToday |
RiverRaceStanding
| Attribute | Type | API field |
|---|---|---|
rank | int | None | rank |
trophy_change | int | None | trophyChange |
clan | RiverRaceClan | None | clan |
Tournament
| Attribute | Type | API field |
|---|---|---|
game_mode | GameMode | None | gameMode |
status | str | None | status |
preparation_duration | int | None | preparationDuration |
members_list | ForwardRef('list[TournamentMember] | None') | membersList |
created_time | datetime | None | createdTime |
started_time | datetime | None | startedTime |
ended_time | datetime | None | endedTime |
first_place_card_prize | int | None | firstPlaceCardPrize |
type | str | None | type |
duration | int | None | duration |
tag | str | None | tag |
creator_tag | str | None | creatorTag |
name | str | None | name |
description | str | None | description |
capacity | int | None | capacity |
max_capacity | int | None | maxCapacity |
level_cap | int | None | levelCap |
TournamentHeader
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
status | str | None | status |
capacity | int | None | capacity |
max_capacity | int | None | maxCapacity |
TournamentMember
| Attribute | Type | API field |
|---|---|---|
tag | str | None | tag |
name | str | None | name |
rank | int | None | rank |
score | int | None | score |
TrailEvent
| Attribute | Type | API field |
|---|---|---|
id | int | None | id |
title | Any | None | title |
description | Any | None | description |
event_tag | str | None | eventTag |
UpcomingChests
| Attribute | Type | API field |
|---|---|---|
items | list[Chest] | None | items |