curl --request GET \
--url https://api.example.com/api/jugador/:nombre/:tag{
"userTier": "<string>",
"userRank": "<string>",
"userLps": 123,
"userWins": 123,
"userLosses": 123,
"userLevel": 123,
"userPic": 123,
"userId": "<string>"
}Retrieve ranked statistics and profile information for a League of Legends player
curl --request GET \
--url https://api.example.com/api/jugador/:nombre/:tag{
"userTier": "<string>",
"userRank": "<string>",
"userLps": 123,
"userWins": 123,
"userLosses": 123,
"userLevel": 123,
"userPic": 123,
"userId": "<string>"
}GET /api/jugador/:nombre/:tag
HideOnBush for player “HideOnBush#KR1”KR1 for player “HideOnBush#KR1”index.js:26-29): Fetches PUUID using Riot ID
americas.api.riotgames.com/riot/account/v1/accounts/by-riot-id/{nombre}/{tag}index.js:34-37): Retrieves summoner level and profile icon
la2.api.riotgames.com/lol/summoner/v4/summoners/by-puuid/{puuid}index.js:43-46): Gets league entries for all queues
la2.api.riotgames.com/lol/league/v4/entries/by-puuid/{puuid}index.js:50):
const soloQ = rank.data.find(cola => cola.queueType === "RANKED_SOLO_5x5");
IRON, BRONZE, SILVER, GOLD, PLATINUM, EMERALD, DIAMOND, MASTER, GRANDMASTER, CHALLENGER, or UNRANKED if not ranked.I, II, III, IV, or empty string if unranked.0 if unranked.0 if unranked.0 if unranked.curl http://localhost:3000/api/jugador/Faker/KR1
{
"userTier": "PLATINUM",
"userRank": "II",
"userLps": 67,
"userWins": 145,
"userLosses": 132,
"userLevel": 342,
"userPic": 4928,
"userId": "abc123-def456-ghi789-jkl012-mno345"
}
curl http://localhost:3000/api/jugador/NewPlayer/NA1
{
"userTier": "UNRANKED",
"userRank": "",
"userLps": 0,
"userWins": 0,
"userLosses": 0,
"userLevel": 30,
"userPic": 29,
"userId": "xyz987-uvw654-rst321-pqr098-nml765"
}
500
{
"error": "Hubo un problema al buscar al jugador."
}
index.js:18-68.
userPic field contains the icon ID. To display the icon, use the Riot Data Dragon URL:https://ddragon.leagueoflegends.com/cdn/{version}/img/profileicon/{userPic}.png
userTier: "UNRANKED" with all stats set to 0 or empty strings.