0.13.0 • Published 1 year ago

overwatch-api v0.13.0

Weekly downloads
73
License
MIT
Repository
github
Last release
1 year ago

Overwatch API Node Module

npm Build Status

Features

  • Profile Data
  • Career Stats
  • Overwatch League Data
    • Live Match
    • Standings
    • Schedule

Install

npm install --save overwatch-api

Example

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' }

API

const overwatch = require('overwatch-api');

Player Data

overwatch.getProfile(platform, region, tag, callback)

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.

overwatch.getStats(platform, region, tag, callback)

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.


OWL Data

overwatch.owl.getLiveMatch(callback)

callback(err, data) - Callback function which returns the error and response data.

overwatch.owl.getStandings(callback)

callback(err, data) - Callback function which returns the error and response data.

overwatch.owl.getSchedule(callback)

callback(err, data) - Callback function which returns the error and response data.

License

MIT

0.13.0

1 year ago

0.12.0

1 year ago

0.11.0

1 year ago

0.10.5

2 years ago

0.10.4

4 years ago

0.10.3

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.9.0

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

8 years ago