OverwatchLeague API. Inspired by blizzard.js and OWLeagueLib.
Install overwatchleague.js
With yarn:
$ yarn add overwatchleague.js
With npm:
$ npm install overwatchleague.js --save
require("overwatchleague.js")
within your application:
const OverwatchLeague= require("overwatchleague.js");
let owl = new OverwatchLeague("en_US");
- Call the API method of your choice listed below
owl.getSchedule().then(response => {
console.log(response.data);
});
or the async way (NodeJS v8 and above)
(async () => {
let players = await owl.getPlayers();
console.log(players.data);
})();
new OverwatchLeague(locale);
- set default locale (default: en_US)
getAppData
- Retrieve current app informationgetSchedule
- Retrieve upcoming matches' schedulegetLiveStreams
- Retrieve current live streamsgetMatch(id)
- Get match's informationgetMatchStats(mapId, mapNumber)
- Get map information for particular match. Example: where10528
is thematchId
and1
is themapNumber
getTeam(id)
- Get team's informationgetTeams
- Get all team's informationgetNews
- Retrieve latest site's newsgetPlaylistVideos(name)
- Retrieve playlistgetRankings
- Retrieve team rankings (games won, games lost, etc)getStandings
- Retrieve team standings (division info, player info, etc)getVideos
- Retrieve VODsgetPlayers
- Get overall players' statsgetPlayer(id)
- Get player id's informationgetUpcomingLiveMatches
- Get upcoming live matchesgetMaps
- Get all maps in pool