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
104 stars 4 forks source link

played time for a game #19

Closed rafaelfgyn closed 1 year ago

rafaelfgyn commented 1 year ago

Hello, I would like to know if there's a route to get users played time in a specific game.

Some webpages like exophase already have this feature.

Thanks!

andshrew commented 1 year ago

Yep, there is. Have a look at https://github.com/andshrew/PlayStation-Trophies/issues/12

rafaelfgyn commented 1 year ago

Weird, I have tried this endpoint https://m.np.playstation.net/api/gamelist/v2/users/me/titles, but doesn't seem to work at all. I did authenticate and all but can't even get a return from the API.

andshrew commented 1 year ago

Ah, they discontinued use of playstation.net at some point after that post and only use playstation.com now. It should work if you use:

https://m.np.playstation.com/api/gamelist/v2/users/me/titles

rafaelfgyn commented 1 year ago

Worked, thanks a lot!

On Sun, Jul 23, 2023, 12:32 andshrew @.***> wrote:

Ah, they discontinued use of playstation.net at some point after that post and only use playstation.com now. It should work if you use:

https://m.np.playstation.com/api/gamelist/v2/users/me/titles

— Reply to this email directly, view it on GitHub https://github.com/andshrew/PlayStation-Trophies/issues/19#issuecomment-1646870176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWN2ZK2KVMHPZN52YVTKGG3XRU7XTANCNFSM6AAAAAA2T474VQ . You are receiving this because you authored the thread.Message ID: @.***>