Skip to content

Getting information about the local summoner

dysolix edited this page Jun 5, 2024 · 2 revisions

General information and unencrypted ids

This endpoint returns the local summoners Riot ID, PUUID, summoner id and some other data.

const currentSummoner = await client.request("get", "/lol-summoner/v1/current-summoner");

Ranked data

This endpoint returns all ranks, including TFT.

const localSummonerRanks = await client.request("get", "/lol-ranked/v1/current-ranked-stats");
const soloRank = rankData.queueMap["RANKED_SOLO_5x5"];
const rank = soloRank.tier;
const division = soloRank.division;
const lp = soloRank.leaguePoints;

const flexRank = rankData.queueMap["RANKED_FLEX_SR"];