-
Notifications
You must be signed in to change notification settings - Fork 1
Exporting your entitlements
The Sony API which will be queried to download your entitlement data requires authentication. The scripts mimic how the PlayStation App authenticates requests, and this requires some prep work.
- In your web browser access https://store.playstation.com/ and log in with a PSN account.
- In the same browser access https://ca.account.sony.com/api/v1/ssocookie
You should see a response withnpssofollowed by a string of letters and numbers. Highlight and copy this value. You will be prompted to paste this into the script. Do not include the "quotes" when pasting the value.
The script is going to make requests to the Sony API and save the JSON responses into a file.
The script is tested against Bash and requires both curl for submitting web requests, and jq for processing the JSON data response. If jq is not installed on your system see https://jqlang.org/download/ for installation instructions.
-
Download the latest version of
psn-entitlements.sh:
https://github.com/andshrew/PlayStation-Entitlements/releases/latest -
Mark the downloaded file as executable:
chmod +x psn-entitlements.sh -
Run the script:
./psn-entitlements.sh
The script is tested against Windows PowerShell (included with Windows) and PowerShell (available for download from https://github.com/PowerShell/PowerShell)
-
Download the latest version of
psn-entitlements.ps1:
https://github.com/andshrew/PlayStation-Entitlements/releases/latest -
Run
powershell.exe(Windows PowerShell) orpwsh(PowerShell). Navigate to the folder where you downloaded the script. -
Windows Only
Most default configurations of PowerShell restrict running of scripts under Windows. You can enable the execution of all scripts for the current session by running command:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -
Run the script:
.\psn-entitlements.ps1
You should now have a file containing your entitlement data.
By default on Windows this will have been saved to your User Profile folder (eg. C:\Users\username), and on Linux/MacOS/Unix saved to your Home folder (eg. /home/username).
You can view the contents in any Text Editor, or import in to software which supports parsing JSON data.
A simple HTML/JavaScript based parser is included in this repository. You can access a hosted version of it on GitHub pages:
https://andshrew.github.io/PlayStation-Entitlements
Alternatively, download the latest version of index.html:
https://github.com/andshrew/PlayStation-Entitlements/releases/latest
This file can be opened directly in your browser.
See Viewing your entitlements for further details.
Unless otherwise stated:-
-
All code is licensed under the MIT License.
-
All written content (eg. Wiki) is licensed under CC BY-NC-SA 4.0.