{"id":31049271,"url":"https://github.com/captemulation/pubg-stats","last_synced_at":"2025-09-14T21:48:51.909Z","repository":{"id":42332195,"uuid":"201938564","full_name":"CaptEmulation/pubg-stats","owner":"CaptEmulation","description":"Playing with PUBG API","archived":false,"fork":false,"pushed_at":"2023-01-01T10:11:07.000Z","size":24,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-25T13:09:47.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptEmulation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-12T13:43:39.000Z","updated_at":"2021-03-30T23:01:55.000Z","dependencies_parsed_at":"2023-01-31T21:46:16.022Z","dependency_job_id":null,"html_url":"https://github.com/CaptEmulation/pubg-stats","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/CaptEmulation/pubg-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fpubg-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fpubg-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fpubg-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fpubg-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptEmulation","download_url":"https://codeload.github.com/CaptEmulation/pubg-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fpubg-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275174427,"owners_count":25418064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-14T21:48:43.938Z","updated_at":"2025-09-14T21:48:51.892Z","avatar_url":"https://github.com/CaptEmulation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pubg-stats\nPlaying with PUBG API\n\nOutputs 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.\n\nAs of 8/11/2019 with a sampling of ~10,000 matches from the prior 100 hours the breakdown is:\n\n```\nfpp: 16.66% tpp: 83.34%\n```\n\n# Running\n\nThis 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.\n\nRequires a PUBG API key set as the `PUBG_API_KEY` env variable. You can acquire one here: https://developer.pubg.com\n\nShard can be set with `PUBG_SHARD`. The available shards are listed here: https://documentation.pubg.com/en/making-requests.html#platforms-and-regions\n\n```\nnpm i\nPUBG_API_KEY=mypubngapikey PUBG_SHARD=steam-na npm start\n```\n\nAdditionally, an `.env` file can be created at the root folder with the key defined:\n\n```\nPUBG_API_KEY=mypubngapikey\nPUBG_SHARD=steam-na\n```\n\nand then the app can be run with just `npm start`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptemulation%2Fpubg-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptemulation%2Fpubg-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptemulation%2Fpubg-stats/lists"}