Description Usage Arguments Note References See Also Examples
League data is divided into 3 tiers for each league (with the exception of grandmaster, which only has 1 tier) and further divided into a number of divisions depending on how many players are in a given league. League data contains the number of divisions, the unique ladder ID of each division and the total player count contained within each division.
1 | get_league_data(season_id, queue_id, team_type, league_id, host_region = "us")
|
season_id |
A numeric argument indicating a particular ladder season. Currently, league data is only available for season 28 and higher (i.e. data prior to this season is inaccessible). |
queue_id |
|
team_type |
|
league_id |
|
host_region |
The host region that the API call will be sent to. For |
League data is only available for season 28 and higher.
Other game data API calls:
get_ladder_data()
,
get_season_data()
1 2 3 4 5 6 7 8 9 | # Get full league data for Season 30, LotV 1v1, arranged teams,
# Masters league, U.S. region.
try({
data <- get_league_data(season_id = 30,
queue_id = 201,
team_type = 0,
league_id = 5,
host_region = "us")
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.