Skip to content

Exporting your entitlements

andshrew edited this page Aug 31, 2025 · 5 revisions

Authentication

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.

  1. In your web browser access https://store.playstation.com/ and log in with a PSN account.
  2. In the same browser access https://ca.account.sony.com/api/v1/ssocookie
    You should see a response with npsso followed 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.
    image

Run the downloader script

The script is going to make requests to the Sony API and save the JSON responses into a file.

Bash (Linux, MacOS, Unix)

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.

  1. Download the latest version of psn-entitlements.sh:
    https://github.com/andshrew/PlayStation-Entitlements/releases/latest

  2. Mark the downloaded file as executable:
    chmod +x psn-entitlements.sh

  3. Run the script:
    ./psn-entitlements.sh
    image

PowerShell (Windows, Linux, MacOS)

The script is tested against Windows PowerShell (included with Windows) and PowerShell (available for download from https://github.com/PowerShell/PowerShell)

  1. Download the latest version of psn-entitlements.ps1:
    https://github.com/andshrew/PlayStation-Entitlements/releases/latest

  2. Run powershell.exe (Windows PowerShell) or pwsh (PowerShell). Navigate to the folder where you downloaded the script.

  3. 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

  4. Run the script:
    .\psn-entitlements.ps1
    image

Export Complete

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.

image

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.

Clone this wiki locally