# Champion

Access to current champion rotations by region from Riot API and champion information from DataDragon

## Methods

### champion\_rotations(regionId, get\_url=False)

Returns champion rotations, including free-to-play and low-level free-to-play rotations

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### champions(version, get\_url=False)

Returns all available champion data from DataDragon at the specified version

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### names(version, get\_url=False)

Returns a list of strings containing each champion's name (Wukong name is 'Wukong')

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### ids(version, get\_url=False)

Returns a list of strings containing each champion's id (Wukong name is 'moneyking')

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### keys(version, get\_url=False)

Returns a list of ints containing each champion's key

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### by\_name(version, championName, get\_url=False)

Returns information of the champion specified. P.D. Wukong name is 'Wukong'

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**championName**: text string containing a champion name. P.D. Wukong champion's name is 'Wukong'

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### by\_id(version, championId, get\_url=False)

Returns information of the champion specified. P.D. Wukong id is 'moneyking'

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**championId**: text string containing a champion ID. P.D. Wukong champion's ID is 'moneyking'

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)

### by\_key(version, championKey, get\_url=False)

Returns information of the champion specified

**version**: String containing the current version of LOL (e.g. '12.4.1' to this date)

**championKey**: numerical value containing a champion key.

**get\_url**: When true, don't make a DataDragon API call and returns the url connection

**return**: JSON object retrieved from DataDragon API call (or link when get\_url is True)
