Category PS4 CFW and Hacks       Thread starter PSXHAX       Start date Apr 30, 2018 at 11:01 PM       17,359       27            
Not open for further replies.
Following the PSN API PHP Wrapper updates, mgp25 shared an independent and unofficial PlayStation Network API Python Wrapper called PSN API for coders and developers to utilize in their projects. :geek:

Download: / GIT

From the file: PSN API

This is a python wrapper for the PSN API.

Read the wiki and previous issues before opening a new one! Maybe your issue is already answered.

Do you like this project? Support it by donating
  • Paypal: Donate
  • Bitcoin: 1DCEpC9wYXeUGXS58qSsqKzyy7HLTTXNYe
How to get refresh token

Sony is using reCaptcha now. There is no way to do this authentication via the Script at this time. So we have worked around the authentication issue by doing the following.

1. From the PSN Website or App or Console Enable 2 Step Verification

2. Go to Enter your credentials, Solve the reCaptcha, and when you get the ENTER Verification Code screen take a look at the URL in your browser. Collect the following ID: ticket_uuid=b7aeb485-xxxx-4ec2-zzzz-0f23bcee5bc5&layout_type=...... DO NOT ENTER THE VERIFICATION CODE

3. From the API
auth = Auth('YOUR EMAIL', 'YOUR PASSWORD', b7aeb485-xxxx-4ec2-zzzz-0f23bcee5bc5, 'verification_code_you_got_on_your_phone)

tokens = auth.get_tokens()

4. Save the refresh and npsso values from the output

5. From now on you can authenticate (Refresh your tokens) instead of re-authenticating every time.

Like this:
new_token_pair = Auth.GrabNewTokens(refresh_token)

tokens = {
   "oauth": new_token_pair[0],
   "refresh": new_token_pair[1],
   "npsso": npsso # saved above!

friend = Friend(tokens)
friend_list = friend.my_friends()
Note: Check

  • Login to PSN
  • Get user information
  • View and manage your friends list
  • Manage and send messages through PSN (This feature does not work at the moment).
  • View trophies and trophies for a specific game
  • Create, manage and view communities
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by PlayStation or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

Thanks to @HydrogenNGU for the news tip on Twitter earlier today! (y)
PSN API Unofficial PlayStation Network API Python Wrapper by MGP25.jpg
:idea: Reminder: Those without a Verified Badge yet on Discord to access the private areas we recommend Joining Us! Why? The waiting process takes a week for new Members, and there's a lot we're unable to share on public forums including the latest PS4 PKG Games. 🏴‍☠️


Not open for further replies.


Senior Member
Wait wait wait.... can we... access PSN features with this ?? I just want to activate my ps4 for transferring my saves into USB key


Senior Member
Is this a failure? Everyone has access so this is the only one Authentication Error

There has been an error. Please try again later. click here to return the front page. If you require more assistance, click here to go to the Help page.


Senior Member
u mean like tunngle? yeah i was thinking about something like that with LAN or over online
there are bunch of gaming services for backup games on pc
ex: tunngle , hamachi etc
just a thought :)
Not open for further replies.
Recent Articles
PS4 System Software / Firmware 7.51 is Now Live, Don't Update!
Proceeding their 7.50 PS4 OFW today Sony pushed live yet another PS4 System Software / Firmware 7.51 stability update... making the PlayStation 4 the most stable video game console to date...
PlayStation Store Double Discounts PSN Promotion Begins Today
Starting today through June 10th, PlayStation Plus members can save more during Sony's latest PlayStation Store Double Discounts promotional PSN sale on PS4 titles including Assassin's Creed...
Friday The 13th: The Game PS4 5.05 RTM Trainer by GrimDoe
Happy Late Memorial Day ! The maniac behind the mask is back, to seek his revengeance onto all those that gets in his way, on his massacre killing spree. 😱 On my previous release back in October...
Minecraft Dungeons Battles Onto New PS4 Game Releases Next Week
Inspired by classic dungeon crawlers, get ready to begin a new quest in the action adventure game Minecraft Dungeons, set in the unmistakable blocky Minecraft universe next week on PlayStation 4...