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

Current (PS5 / "v2") API and trophyEarnedRate Information #13

Open andshrew opened 2 years ago

andshrew commented 2 years ago

Seemingly one of the limitations of the current trophy API is that you cannot view the trophyEarnedRate (the percentage of people who have earned a specific trophy) unless your account - or the account you are querying against - has played the game and has the trophy list synced.

You can see this behavior when you access the API directly as you will get a Resource Not Found error, and this is also the case both in the PS App and on console with the PS5. You can see this limitation in effect if you try and compare trophies with someone using a game that neither of you have synced to your account.

Trophy-Comparison

However, I have noticed that when a game has trophies listed in the activity card section the PS5 is doing something which does allow it to retrieve the trophyEarnedRate - even if it is a game that your account does not have the trophy list synced for.

Activity-Card-Trophy

Activity-Card-Trophy-Stats

From the limited data you can capture if you run the PS5 through a proxy I can see that it is accessing the API when you open these cards, but cannot see any of the detail in the exact request it is making.

I'm interested in what they are doing, so if anyone has come across this and can share I would like to include it in the documentation here.

It would seem likely that it is either:

rafaelfgyn commented 1 year ago

What I don't understand is why trophyEarnedRate appears when requesting trophies of a user game, but when requesting game's trophies by itself we don't have this info in the payload. Does anyone know something about it?