
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@viriato/lol-esports-api
Advanced tools
This is a simple wrapper of League of Legends' eSports API.
A huge contribution to this project has been vickz84259's documentation, from which the API responses' types have been generated.
import APIClient from "lol-esports-api";
const client = new APIClient();
const liveEvents = await client.events.getLive();
import APIClient from "lol-esports-api";
const client = new APIClient();
const game = await client.games.get("110853167109116577");
The API's response contains a frames array property where each element represents a "snapshot" of the game's state. It spans a period of 10 seconds.
If given a startingDate parameter value of a later point in time than the end of the game, it will return with the game's last 10 frames. This can be useful if you'd like to fetch a game's finished state data.
It includes information such as objectives taken and players' scoreboard data. To fetch more detailed information, see getDetails.
import APIClient from "lol-esports-api";
const client = new APIClient();
const gameWindow = await client.games.getWindow(
"110853167109116577",
"2023-10-19T09:35:40.000Z" // can either be a string or a Date
);
Works similarly to getWindow, except it returns with more detailed information such as champion level and stats, creep score, gold earned, ability level up sequence, etc.
import APIClient from "lol-esports-api";
const client = new APIClient();
const detailedGameWindow = await client.games.getDetails(
"110853167109116577",
"2023-10-19T09:35:40.000Z" // can either be a string or a Date
);
import APIClient from "lol-esports-api";
const client = new APIClient();
const leagues = await client.leagues.get();
import APIClient from "lol-esports-api";
const client = new APIClient();
const leagueTournaments = await client.leagues.getTournaments(
"98767975604431411"
);
import APIClient from "lol-esports-api";
const client = new APIClient();
const leagueSchedule = await client.leagues.getSchedule("98767975604431411");
import APIClient from "lol-esports-api";
const client = new APIClient();
const matchEvent = await client.matches.getEvent("108998961199240268");
import APIClient from "lol-esports-api";
const client = new APIClient();
const teams = await client.teams.get();
import APIClient from "lol-esports-api";
const client = new APIClient();
const fnaticTeam = await client.teams.get("fnatic");
import APIClient from "lol-esports-api";
const client = new APIClient();
const tournaments = await client.tournaments.getCompletedEvents(
"108998961191900167"
);
import APIClient from "lol-esports-api";
const client = new APIClient();
const standings = await client.tournaments.getStandings("108998961191900167");
FAQs
Implementation of League of Legends' Unofficial Esports API.
The npm package @viriato/lol-esports-api receives a total of 4 weekly downloads. As such, @viriato/lol-esports-api popularity was classified as not popular.
We found that @viriato/lol-esports-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.