Cause the websocket address is always change. So you can use the API provided by https://developer.playbattlegrounds.com/
git clone https://github.com/micheal-death/pubg-api-example.git
npm install
After installation, you should copy and rename the config-sample.json to config.json then fill up the steam account info. Note: Please make sure that the steam account has already purchased PUBG.
Run the server and simply access to http://localhost:3000/user/:name or http://localhost:3000/user/:name?server=xx&mode=xx&rating=xx, then you can see the user's data.