- Open the browser of your choice
- Visit https://playstation.com (and sign out if you are signed in)
- Open the developer tools for your browser, and click on the network activity tab
- Choose to preserve the network log on the network tab
- Now sign back into the playstation site
- Search the network activity for requests named
id
, and click on one of them - Find the
Request Headers
section and look for theAuthorization
header - Record the bearer token of the authorization header that matches:
Authorization: Bearer [COPY_ALPHANUM_HERE]
, you will need this in a second - Open a new tab, and navigate to https://web.np.playstation.com/ (it will say 'Access Denied', it's safe to ignore)
- Open the developer tools, navigate to the console tab, copy & paste the script from here into the console, and hit enter
- Enter the bearer token and click OK
Congrats, you should see your account id, and if you are using a browser that supports clipboard writes, it will already be in your clipboard.