oversmash
API wrapper for Blizzard's Overwatch player stats. Uses promises.
Blizzard does not expose an official API, so this library relies partially on scraping, using cheerio.
Please also keep in mind there is no builtin rate-limiting support, so it's on you to use the library responsibly.
Features
- Ability to retrieve basic user information, such as name, portrait, level and accounts
- Correctly identifies the platform and region for each account
- Ability to retrieve detailed stats for a player, for a given region and platform
- Includes all stats available on playoverwatch.com
- Stats are retrieved and grouped automatically per career type (quickplay/competitive), hero, and group (e.g combat, awards, etc)
- Minimalist and straightforward API that only handles retrieving the data, everything else is up to you
Usage
Install through npm
:
$ npm install --save oversmash
Example:
import oversmash from 'oversmash'
const api = oversmash()
async function main () {
const player = await api.player('bob-12345')
console.log(player)
const playerStats = await api.playerStats('bob-12345')
console.log(playerStats)
}
}
Debugging
oversmash
uses debug. Run your code calling oversmash with
DEBUG=oversmash
to enable debug logging
Stuff 🐝 🐝 🐝
See LICENSE.md
for license information
Contributions are welcome - please follow the style guidelines as enforced by the included .eslintrc
!