get_league_counts {SC2API} | R Documentation |
League and Tier Counts
Description
Provides both league (i.e. bronze, silver, etc.) and tier (1, 2, 3) player counts.
Usage
get_league_counts(season_id, queue_id, team_type, league_id, host_region)
Arguments
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 |
Value
A list with tier counts and the overall league count.
Note
Data is only available for season 28 and higher.
References
Examples
# Get league counts for Season 35, LotV 2v2, randomly gathered teams,
# Bronze league, Korean region.
try({
data <- get_league_counts(season_id = 35,
queue_id = 202,
team_type = 1,
league_id = 0,
host_region = "kr")
})