Need help with pubg?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

125 Stars 38 Forks GNU General Public License v3.0 6 Commits 14 Opened issues


Playerunknown’s Battlegrounds Websocket API example. Feel free to ask questions in Discord: Hormold#0683

Services available


Need anything else?

Contributors list

# 322,130
4 commits
# 387,553
2 commits


Playerunknown’s Battlegrounds Websocket API example

WARNING: READ GNU General Public License v3 (GPL-3)

Deps: npm install ws underscore express body-parser

How to get ticket (aka access token aka password?):

1) Run wireshark, filter by: tcp.port == 81 && http

2) Run game and wait for loading menu (lobby)

3) Looking for something like "/userproxy?provider=steam&.." in wireshark and open it (by left click)

4) Copy Value from middle frame, it's must be more 450 symbols (468 for me)

You can found full lenght ticket in "Request URI Query Parameter",press right mouse -> copy -> value and remove "ticket="

Ticket will dead after few minutes in offline (sure, maybe ip change need to regenerate token). OR it maybe works while you in game.

You need start game again and get ticket again.

You can be connected with out any problems for few hours and do fast restarts if u need this.

Not possible to play while connected from this script (not sure about real play, but you will be kicked from lobby by double connection)

More methods here:

If you will found how to generate token from engine - it'll be cool!

Look at the menu(lobby) source code here:

Get more info about game protocol using Wireshark and filter: (websocket)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.