epicstore_api icon indicating copy to clipboard operation
epicstore_api copied to clipboard

[Feature] Add possibility to get player owned games

Open greggameplayer opened this issue 2 years ago • 3 comments

It would be cool to have the possibility to get player owned games by passing either an authentication portail or directly the username

greggameplayer avatar Sep 08 '23 00:09 greggameplayer

Hi,

So we can't get owned games by a user's nickname on the platform, as there is no such a request that gives that option. You can fetch the achievements of a user and try to extract games from there. But it's not allowed to do that to a non-friend user and achievements might be hidden, as well as they do not contain every game in user library. Regarding getting the items of a current account, it is possible, but authorization in Epic Games is messy and requires a manual login in browser window/providing a captcha-solver to a login, which I don't really want to include in the library.

So until Epic Games decide to move away from captcha, that's not possible to do or would require a design of a library I would not like. I might do it in the future eventually, but I'm not sure.

SD4RK avatar Sep 10 '23 20:09 SD4RK

@SD4RK Can you list the endpoints which we have to call to be able to retrieve player's games ?

greggameplayer avatar Sep 11 '23 15:09 greggameplayer

@greggameplayer I think it's this one: https://library-service.live.use1a.on.epicgames.com/library/api/public/items

You can find a usage example of it here: https://github.com/derrod/legendary/blob/master/legendary/api/egs.py#L237

Snailedlt avatar Nov 02 '24 14:11 Snailedlt