epicstore_api
epicstore_api copied to clipboard
[Feature] Add possibility to get player owned games
It would be cool to have the possibility to get player owned games by passing either an authentication portail or directly the username
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 Can you list the endpoints which we have to call to be able to retrieve player's games ?
@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