https://github.com/captemulation/pubg-stats
Playing with PUBG API
https://github.com/captemulation/pubg-stats
Last synced: 10 months ago
JSON representation
Playing with PUBG API
- Host: GitHub
- URL: https://github.com/captemulation/pubg-stats
- Owner: CaptEmulation
- License: mit
- Created: 2019-08-12T13:43:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T10:11:07.000Z (over 3 years ago)
- Last Synced: 2023-03-25T13:09:47.628Z (over 3 years ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pubg-stats
Playing with PUBG API
Outputs the percentage of matches played as FPP vs TPP in NA PC region because I was interested and couldn't find any up to date stats.
As of 8/11/2019 with a sampling of ~10,000 matches from the prior 100 hours the breakdown is:
```
fpp: 16.66% tpp: 83.34%
```
# Running
This program saves data to a local MongoDB instance which needs to be running in insecure mode. The match data can be queried for future analysis. Currently only the match attributes are saved.
Requires a PUBG API key set as the `PUBG_API_KEY` env variable. You can acquire one here: https://developer.pubg.com
Shard can be set with `PUBG_SHARD`. The available shards are listed here: https://documentation.pubg.com/en/making-requests.html#platforms-and-regions
```
npm i
PUBG_API_KEY=mypubngapikey PUBG_SHARD=steam-na npm start
```
Additionally, an `.env` file can be created at the root folder with the key defined:
```
PUBG_API_KEY=mypubngapikey
PUBG_SHARD=steam-na
```
and then the app can be run with just `npm start`