I don't presume to know how to code but if apps like Lutris and Heroic can access your games from Epic, Ubisoft, Origin and the likes isn't it possible to use their code to get games lists?
Also the GOG launcher has community (github) integrations to grab your library's from most other launchers