Skip to content

CHAMPION MASTERY V3

Chau Nguyen edited this page May 12, 2017 · 6 revisions

docs

Get all champion mastery entries sorted by number of champion points descending.

/lol/champion-mastery/v3/champion-masteries/by-summoner/{summonerId}

Standard Params

N/A

Object Param + Callback

  • getChampMasteries({ region, accountId/accId (int), id/summonerId/playerId (int), name (string), cb)
  • Namespaced Functions: ChampionMastery.getChampionMasteries, ChampionMastery.getAll, ChampionMastery.all, Summoner.getChampionMasteries, Summoner.championMasteries
k.ChampionMastery.all({ accId: 47776491 }, KindredAPI.print)

k.ChampionMastery.all({ id: 20026563 }, KindredAPI.print)

k.ChampionMastery
 .all({ name: 'Contractz' })
 .then(data => console.log(data))
 .catch(error => console.error(error))

Get a champion mastery by player ID and champion ID.

/lol/champion-mastery/v3/champion-masteries/by-summoner/{summonerId}/by-champion/{championId}

Standard Params

N/A

Object Param + Callback

  • getChampMastery({ region, playerId (int), championId (int), options (object) }, cb)
  • Namespaced Functions: ChampionMastery.getChampionMastery, ChampionMastery.get
const config = {
    playerId: 20026563,
    championId: 203
}

k.ChampionMastery.get(config, KindredAPI.print)

k.ChampionMastery
 .get(config)
 .then(data => console.log(data))
 .catch(error => console.error(error))

Get the total champion mastery score of a player, which is the sum of individual champion mastery levels.

/lol/champion-mastery/v3/scores/by-summoner/{summonerId}

Standard Params

N/A

Object Param + Callback

  • getTotalChampMasteryScore({ region, accountId/accId (int), id/summonerId/playerId (int), name (string) }, cb)
  • Namespaced Functions: Namespaced Functions: ChampionMastery.getTotalChampMasteryScore, ChampionMastery.getTotalScore, ChampionMastery.totalScore, ChampionMastery.total, ChampionMastery.score, Summoner.getTotalChampionMasteryScore, Summoner.totalChampionMasteryScore
k.ChampionMastery.score({ id: 20026563 }, KindredAPI.print)
k.Summoner.totalChampionMasteryScore({ id: 20026563 }, KindredAPI.print)

const config = {
    region: REGIONS.KOREA,
    name: 'sktt1peanut'
}

k.ChampionMastery
 .totalScore(config)
 .then(data => console.log(data))
 .catch(error => console.error(error))