simple-riotapi

2.2.7 • Public • Published

Simple Riot API

Promise-based package to get access to many Riot Games League of Legends or Teamfight Tactics API Endpoints and DataDragon easily with just a few lines of code.

What you will need:

Installation

Install simple-riotapi with npm

npm i simple-riotapi --s

To use it, you will need to set up your api key first:

const riotapi = require('simple-riotapi');

//League of Legends API Key
riotapi.lol.setApiKey('Your Key Here');

//Teamfight Tactics API Key
riotapi.tft.setApiKey('Your Key Here');

How to use

Is easy!

const riotapi = require('simple-riotapi')

riotapi.lol.setApiKey('Your Key Here')

riotapi.lol.summoner('Region', 'Summoner Name').then(data => console.log(data)//do what you want with your data)

Avaliable regions

Europe

  • EUW1
  • EUN1
  • TR
  • RU

America

  • NA1
  • BR1
  • LA1
  • LA2
  • OC1

Asia

  • KR
  • JP1

API Endpoints

League of Legends

  • /lol/platform/v3/
  • /lol/platform/v4/
  • /lol/champion-mastery/v4/
  • /lol/league/v4/
  • /lol/match/v4/
  • /lol/match/v5/
  • /lol/spectator/v4/
  • /lol/summoner/v4/

Teamfight Tactics

  • /tft/match/v1/
  • /tft/summoner/v1/
  • /tft/league/v1/

DataDragon

  • Search champions.
  • Search league items.
  • Get lastest league patch.
  • Search league maps.
  • Search league queues.
  • Search league summoner spells.

FAQ

Where can I find information about Riot API Endpoints?

Official Riot Games API webpage. https://developer.riotgames.com/apis

Where can I get support from Riot?

Riot Games Third Party Developer Community. https://discord.gg/riotgamesdevrel

Will you add support for new endpoints?

Yes. New endpoints and updated endpoints will be added in newer versions of this npm package.

Used By

This project is used by Sett Bot, my personal project:

Package Sidebar

Install

npm i simple-riotapi

Weekly Downloads

2

Version

2.2.7

License

ISC

Unpacked Size

33.9 kB

Total Files

25

Last publish

Collaborators

  • michelmendoza