Using the summoner-v4 API
With the move to RiotIds, the summoner-v4 API becomes less and less important. Yet, it provides valuable information about a summoner, such as their summoner level and profile icon.
The response
Let's take a look at the response (summonerDTO) first, before we dig deeper into the different endpoints.
{
"puuid": "[encrypted puuid]...",
"profileIconId": 5467,
"revisionDate": 1663606611,
"summonerLevel": 500
}
The API response has seven different fields, including the name and icon of a summoner.
Fields
| Field | Type | Note |
|---|---|---|
| puuid | String (puuid) | The "Player Universally Unique IDentifiers" is globally unique and has a fixed length of 78 characters. |
| profileIconId | Number | The id of the summoners profile icon. Read more about profile icon fetching. |
| revisionDate | Number (unix timestamp) | Date summoner was last modified specified as epoch milliseconds. Events updating this timestamp are summoner name change, summoner level change or profile icon change. |
| summonerLevel | Number | Level of the summoner. |
Please keep in mind that the ids are encrypted per key (app id).
Endpoint
Currently, you can only get a summoners info by using their puuid. All newer API endpoints are only using the puuid as an Id.
The request url is the following:
https://{platform}.api.riotgames.com/lol/summoner/v4/summoners/by-puuid/{puuid}
Please make sure to replace {platform} with your current platform.
