riotgames-gg
Hi this is just a wrapper for riot api. Everything was built using riot api routes to make life easier for you to make api calls to riot! This is new and if you experience something not working. Message me! Not Everything has sample demo yet. Still in working progress but the function works!
Installation
npm install riotgames-gg --save
API key here!
Region
PLATFORM | PLATFORM-HOST | REGION | REGION-HOST |
---|---|---|---|
BR | br1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
EUN | eun1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
EUW | euw1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
JP | jp1.api.riotgames.com | ASIA | asia.api.riotgames.com |
KR | kr.api.riotgames.com | ASIA | asia.api.riotgames.com |
LAN | la1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
LAS | la2.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
NA | na1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
OCE | oc1.api.riotgames.com | AMERICAS | americas.api.riotgames.com |
TR | tr1.api.riotgames.com | EUROPE | europe.api.riotgames.com |
RU | ru.api.riotgames.com | EUROPE | europe.api.riotgames.com |
Example
Riot
const Riot = ; const riot = region: 'KR' apikey: 'YOUR API KEY' ; (name) { const response = await riotAccount; console;} ;
List of Riot functions
- [riot.]
- [Account.]
- [accountsByPuuid(puuid)]
- [accountsByRiotId(gameName,tagLine)]
- [activeShards(game,puuid)]
- [Account.]
League of Legends
const Lol = ; const lol = region: 'KR' apikey: 'YOUR API KEY' ;const summonerName = 'Hide on Bush';// Get League Of Legends Summoner Info By Name { const response = await lolSummoner; console;} ;
List of League Of Legends functions
- lol.
- Champion.
- ChampionMastery.
- Clash.
- [LeagueExp.]
- [entriesByQueueRank(queue,tier,division,page)]
- [League.]
- [challengerByQueue(queue)]
- [entriesByAccId(accountId)]
- [entriesByQueueRank(queue,tier,division,page)]
- [grandmasterByQueue(queue)]
- [leaguesByLeagueId(leagueId)]
- [leaguesByName(summonerName)]
- [masterByQueue(queue)]
- [Match.]
- [matchByMatchId(matchId)]
- [matchListsByAccountId(accountId,champion,queue,season,endTime,beginTime,endIndex,beginIndex)]
- [timelinesByMatchId(matchId)]
- [matchByTournamentCode(tournamentCode)]
- [matchByMatchIdByTournamentCode)matchId,tournamentCode]
- Spectator.
- activeGamesById(summonerId)
- [activeGamesByName(summonerName)]
- [activeGamesByPuuid(puuid)]
- [activeGamesByAccId(accountId)]
- [featureGames()]
- [Status.]
- [shardData()]
- Summoner.
- [ThirdPartyCode.]
- [thirdPartyCodeById()]
- [Tournament.]
- [codes()]
- [codesByTournamentCode()]
- [updateCodesByTournamentCode(tournamentCode)]
- [lobbyEventByTournamentCode(tournamentCode)]
- [providers()]
- [tournaments()]
- [TournamentStub.]
- [codes()]
- [lobbyEventByTournamentCode()]
- [providers()]
- [tournaments()]
TeamFight Tactics
const Tft = ; const tft = region: 'NA' apikey: 'YOUR API KEY' ;const summonerName = 'Giuttony';// Get League Of Legends Summoner Info By Name { const response = await tftSummoner; console;} ;
List of TeamFight Tactics functions
- tft.
- League.
- challenger()
- entriesById(summonerId)
- entriesByAccId(accountId)
- entriesByPuuid(puuid)
- entriesByName(summonerName)
- entriesByTierDivision(tier,division)
- grandmaster()
- leaguesByLeagueId(leagueId)
- leaguesById(summonerId)
- leaguesByAccId(accountId)
- leaguesByPuuid(puuid)
- leaguesByName(summonerName)
- master()
- Match.
- [Summoner.]
- [summonerByName(summonerName)]
- [summonerByAccId(accountId)]
- [summonerByPuuid(puuid)]
- [summonerById(summonerId)]
- League.
Legends of Runeterra
const Lor = ; const lor = region: 'NA' apikey: 'YOUR API KEY' ;// Get League Of Legends Summoner Info By Name { const response = await lorRanked; console;} ;
List of Legends of Runeterra functions
- [lor.]
- [Match.]
- [matchesByPuuid(puuid)]
- [matchesByMatchId(matchId)]
- [Ranked.]
- [leaderboards()]
- [Match.]
Valorant
const Val = ; const val = region: 'NA' apikey: 'YOUR API KEY' ; { const response = await valContent; console;} ;
List of Valorant functions
- [val.]
- [Content.]
- [contents()]
- [Match.]
- [matchesByMatchId(matchId)]
- [matchlistsByPuuid(puuid)]
- [recentMatchesByQueue(queue)]
- [Content.]
Contributing
If you want to join and help out. Message me and I can add you to the team! Always willing to get more help to evolve and make it better!
Issues
Report any bug or improvements! Willing to take suggesting too!