Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
Krzysztof Kraszewski edited this page Apr 27, 2016 · 20 revisions

Routes

API Routes

/api/summoner/overview/:region/:id

Returns JSON response:

{
  success: Boolean,
  roles: Object,       // Object of roles sorted from the most points
  totalPoints: Number, // summed points of all champions
  topChampions: Array  // Array of Objects containing 3 champions having the most points
}

Example:

{
  success: true,
  roles: {
    Marksman: 336254,
    Fighter: 308985,
    Assassin: 268420,
    Mage: 231769,
    Tank: 111008,
    Support: 110863
  },
  totalPoints: 743098,
  topChampions: [
    {
      championId: 236,
      championLevel: 5,
      championPoints: 76739,
      championPointsSinceLastLevel: 55139,
      championPointsUntilNextLevel: 0,
      chestGranted: true,
      highestGrade: "S",
      championName: "Lucian"
    },
    {
      championId: 202,
      championLevel: 5,
      championPoints: 59971,
      championPointsSinceLastLevel: 38371,
      championPointsUntilNextLevel: 0,
      chestGranted: true,
      highestGrade: "S",
      championName: "Jhin"
    },
    {
      championId: 81,
      championLevel: 5,
      championPoints: 41501,
      championPointsSinceLastLevel: 19901,
      championPointsUntilNextLevel: 0,
      chestGranted: true,
      highestGrade: "S+",
      championName: "Ezreal"
    }
  ]
}

Note that totalPoints is different from a sum of points achieved with each role, since a champion may have multiple roles.

App routes

/summoner/:region/:key

Summoner profile page showing all summoner data

Clone this wiki locally