Module: serverdata

contains server data for the riot servers

Source:

Members


<static, constant> HOST_BY_REGION

hosts by region code

Properties:
Name Type Default Description
BR br1.api.riotgames.com
EUNE eun1.api.riotgames.com
EUW euw1.api.riotgames.com
JP jp1.api.riotgames.com
KR kr.api.riotgames.com
LAN la1.api.riotgames.com
LAS la2.api.riotgames.com
NA na1.api.riotgames.com
OCE oc1.api.riotgames.com
PBE pbe1.api.riotgames.com
TR tr1.api.riotgames.com
RU ru.api.riotgames.com
GLOBAL americas.api.riotgames.com
Source:

<static, constant> REGION

Region codes

Properties:
Name Type Default Description
BRAZIL br

Brazil

EU_NORTH_EAST eune

EU North and East

EU_WEST euw

EU West

JAPAN jp

Japan

KOREA kr

Korea

LATIN_AMERICA_NORTH lan

Latin America North

LATIN_AMERICA_SOUTH las

Latin America South

NORTH_AMERICA na

North America (DEFAULT)

OCEANIA oce

Oceania

PBE pbe

Public Beta Environment

TURKEY tr

Turkey

RUSSIA ru

Russia

Source:

<static, constant> URLS

URLS for the riot API

Properties:
Name Type Default Description
champion {"championList":"/lol/platform/v3/champions","championById":"/lol/platform/v3/champions/{championId}"}

champion api

championmastery {"masteryById":"/lol/champion-mastery/v3/champion-masteries/by-summoner/{summonerId}","masteryByIdByChampionId":"/lol/champion-mastery/v3/champion-masteries/by-summoner/{summonerId}/by-champion/{championId}","scoreById":"/lol/champion-mastery/v3/scores/by-summoner/{summonerId}"}

champion mastery api

league {"bySummonerId":"/lol/league/v3/leagues/by-summoner/{summonerId}","positionsBySummonerId":"/lol/league/v3/positions/by-summoner/{summonerId}","masterLeaguesByQueue":"/lol/league/v3/masterleagues/by-queue/{queue}","challengerLeaguesByQueue":"/lol/league/v3/challengerleagues/by-queue/{queue}"}

league api

masteries {"masteriesById":"/lol/platform/v3/masteries/by-summoner/{summonerId}"}

masteries v3 api

match {"byId":"/lol/match/v3/matches/{matchId}","byAccountId":"/lol/match/v3/matchlists/by-account/{accountId}","recent":"/lol/match/v3/matchlists/by-account/{accountId}/recent","timelines":"/lol/match/v3/timelines/by-match/{matchId}","byTournamentCode":"/lol/match/v3/matches/by-tournament-code/{tournamentCode}/ids","byMatchIdByTournamentCode":"/lol/match/v3/matches/{matchId}/by-tournament-code/{tournamentCode}"}

match api

runes {"bySummonerId":"/lol/platform/v3/runes/by-summoner/{summonerId}"}

runes api

spectator {"bySummonerId":"/lol/spectator/v3/active-games/by-summoner/{summonerId}","featuredGames":"/lol/spectator/v3/featured-games"}

spectator api

staticdata {"championList":"/lol/static-data/v3/champions","championById":"/lol/static-data/v3/champions/{championId}","itemList":"/lol/static-data/v3/items","itemById":"/lol/static-data/v3/items/{itemId}","languages":"/lol/static-data/v3/languages","languagestrings":"/lol/static-data/v3/language-strings","maps":"/lol/static-data/v3/maps","masteryList":"/lol/static-data/v3/masteries","masteryById":"/lol/static-data/v3/masteries/{masteryId}","profileIcons":"/lol/static-data/v3/profile-icons","realm":"/lol/static-data/v3/realms","runeList":"/lol/static-data/v3/runes","runeById":"/lol/static-data/v3/runes/{runeId}","summonerSpellList":"/lol/static-data/v3/summoner-spells","summonerSpellById":"/lol/static-data/v3/summoner-spells/{summonerSpellId}","versions":"/lol/static-data/v3/versions"}

static v3 api

status {"status":"/lol/status/v3/shard-data"}

status v3 api

summoner {"name":"/lol/summoner/v3/summoners/by-name/{summonerName}","byId":"/lol/summoner/v3/summoners/{summonerId}","byAccountId":"/lol/summoner/v3/summoners/by-account/{accountId}"}

summoner v3 api

Source:

Methods


<static> makeAsyncHttpsCall(calltype, callmethod, options)

returns a Promise to perform asynchronous https call to the specified objects.

Parameters:
Name Type Description
calltype string

the type of call to make

callmethod string

the method to call

options options

to encode in the url

Source: