andshrew / PlayStation-Trophies

Sony has an API for retrieving details of the trophies an account has earned, but there is no public documentation for using it. This is an attempt at documenting the API by capturing the requests made by the https://my.playstation.com web site.
MIT License
102 stars 4 forks source link

PlayStation Overlay Endpoints #26

Open andshrew opened 4 months ago

andshrew commented 4 months ago

Ghost of Tsushima recently released on PC and it includes a new interface for viewing your trophies and friends list on a PC. I believe this is the first time it's been possible (in an officially supported way) since my.playstation.com was closed down.

image

Does any own the game and tried capturing the endpoints it accesses? Curious if there is anything new, or if it is just accessing similar ones to what the mobile app currently does.

https://blog.playstation.com/2024/04/17/ghost-of-tsushima-directors-cut-pc-cross-play-and-system-requirements-revealed/

https://www.theverge.com/2024/5/16/24158246/sony-playstation-pc-overlay-hands-on

rafaelfgyn commented 4 months ago

I'm curious too. One that changed is the new platform, PSPC for a game trophyTitlePlatform property. Would be good to update the documentation.

andshrew commented 3 weeks ago

To add a few details, it looks like it is using the same endpoints available in the mobile app, although the routes it uses are slightly different.

The base URL is: https://pspc.np.playstation.net/api/trophy

The paths have then had pspc added to them, for example:

https://pspc.np.playstation.net/api/trophy/v1/pspc/users/{accountId}/trophyTitles

They need different authentication scopes to actually be able to query them, which I don't have at the moment.