- Profile Data
- Career Stats
- Overwatch League Data
- Live Match
- Standings
- Schedule
npm install --save overwatch-api
const overwatch = require('overwatch-api');
const platform = 'pc'; // pc/xbl/psn/nintendo-switch
const region = 'us';
const tag = 'Calvin-1337';
overwatch.getProfile(platform, region, tag, (err, json) => {
if (err) console.error(err);
else console.log(json);
});
{ username: 'Calvin',
level: 861,
portrait: 'https://d1u1mce87gyfbn.cloudfront.net/game/unlocks/0x0250000000000EF7.png',
games:
{ quickplay: { won: 647, played: undefined },
competitive: { won: 15, lost: 12, draw: 0, played: 27 } },
playtime: { quickplay: '129 hours', competitive: '5 hours' },
competitive:
{ rank: 4416,
rank_img: 'https://d1u1mce87gyfbn.cloudfront.net/game/rank-icons/season-2/rank-7.png' },
levelFrame: 'https://d1u1mce87gyfbn.cloudfront.net/game/playerlevelrewards/0x0250000000000974_Border.png',
star: 'https://d1u1mce87gyfbn.cloudfront.net/game/playerlevelrewards/0x0250000000000974_Rank.png' }
const overwatch = require('overwatch-api');
platform
- Platform of user. pc, xbl, psn
region
- Region of player. us, eu, kr, cn, global
tag
- BattleTag of user. Replace #
with -
.
callback(err, data)
- Callback function which returns the error and response data.
platform
- Platform of user. pc, xbl, psn
region
- Region of player. us, eu, kr, cn, global
tag
- BattleTag of user. Replace #
with -
.
callback(err, data)
- Callback function which returns the error and response data.
callback(err, data)
- Callback function which returns the error and response data.
callback(err, data)
- Callback function which returns the error and response data.
callback(err, data)
- Callback function which returns the error and response data.
MIT