This script can be util if you want to get the relation between all your purchased games, price and the acquired date. You can use it to get the total value of your account :D.
I made this script because I don't have the Epic Games client installed, so I didn't find a session on site to show all games that I've on the account, so I found in the Transactions section a way to get this information automatically.
The scripts basically will use the cookie that is used on the Transactions section to get the information by API.
Requisites
- You need to have a Epic Games account
- You need to have the Nodejs installed
Steps on Epic Games Account
- Access your Epic Games Account
- Open the Browser Inspect and access the Network tab
Doesn't share your cookie, because it can be dangerous and can open your account access
Steps on Code
- Now with your cookie value in hands let's setup our project
- Duplicate the .env.default file and rename it to .env
- Put the cookie value after the COOKIE=here in your .env file
- Now let's install the project libraries running
npm install
- Now let's run the script running
npm run start
Now just wait to finalize the script :D
If everything working well, a new file will be created at src/assets
called games-info.csv, the file content will follow the structure:
Name;Price;Date
Game1;R$ 29,99;02/03/2020
Game2;R$ 39,99;03/03/2020
...
Now you can get this file and use it to know how much your account cost, or just the quantity of the games that you have :D.