auropick / epic-free-games Goto Github PK
View Code? Open in Web Editor NEWWrapper to getting weekly free games with Epic Games API
Home Page: https://www.npmjs.com/package/epic-free-games
License: MIT License
Wrapper to getting weekly free games with Epic Games API
Home Page: https://www.npmjs.com/package/epic-free-games
License: MIT License
Hi,
I am wondering why are we limiting the country enum to the selected few only? Are there different schemas for different countries?
After updating today's games, any search you run with any region the API returns this error, I was making a command yesterday and it was working, then today after updating this week's new games it gave me this
Erro: Error: An error occurred
error: {
"message": "CatalogOffer/offerMappings: Request failed with status code 404",
"locations": [
{}
],
"correlationId": "1792c500-beb8-4854-9d69-43e4a9a30e54",
"serviceResponse": "{\"errorMessage\":\"The item or resource being requested could not be found.\",\"errorCode\":\"errors.com.epicgames.not_found\",\"numericErrorCode\":1004,\"errorStatus\":404}",
"stack": null,
"path": [
"Catalog",
"searchStore",
"elements",
3,
"offerMappings"
]
},{
"message": "CatalogNamespace/mappings: Request failed with status code 404",
"locations": [
{}
],
"correlationId": "1792c500-beb8-4854-9d69-43e4a9a30e54",
"serviceResponse": "{\"errorMessage\":\"The item or resource being requested could not be found.\",\"errorCode\":\"errors.com.epicgames.not_found\",\"numericErrorCode\":1004,\"errorStatus\":404}",
"stack": null,
"path": [
"Catalog",
"searchStore",
"elements",
3,
"catalogNs",
"mappings"
]
}
Hi there,
first of all, thanks for this wonderful tool! It's been working great for the past few months.
However, recently (the past 2 weeks, maybe 3) I have been unable to successfully resolve a captcha request from this script and have had to claim my games manually via the epic client each week.
I'm running this in a docker container on my Unraid box.
The container is surfaced to the outside world via reverse proxy (nginx
) and SSL cert via letsencrypt (swag
docker container)
I have notifications setup to both Discord and a HTTPS webhook attached to home assistant.
I'm in Australia and typically receive a captcha request every Friday morning when the script runs to check for this week's free game.
Everything about the process works the same as it always has - the puppeteer portal appears to work fine, I get prompted with the captcha and resolve it, click proceed and then am presented with the Epic Store "checkout" page, and an error "Failed to challenge captcha, please try again later" in red. (attached image)
I've tried actioning the request on my phone and desktop - same results.
I haven't changed anything to do with this docker, my reverse proxy, or related systems that would've caused this, afaik.
I hope I've provided enough information. Thanks in advance.
Best,
Joshua
So im using the module to get info but the object currentGames[?].price does not show a price. The attachment shows Farming Simulator 22 which originally costs 19,99$ and the package returns 0.
Apart from this the module is fast and very user-friendly
hey i was trying use api but just get undefined, and [ Object ]
can you add me in discord to help plz? GosT#2274
The array returns empty for the nexts game(s), while the game that is upcoming is under current already.
How can I fix that ?
Could you make ability to add custom query params such as locale
and allowCountries
(it's used by epic frontend)?
Heya, I have a question. How would I get url to the game?
I have tried using res.currentGames[i].productSlug
and res.currentGames[i].customAttributes[2].value
but then I have realized not every game has that value which I can use in the url. Am I missing something or? Thanks
Love the work, using it in my Discord bot as we speak!
Is there anyway of getting the date the offers expire? Looking at it I know you can usee the nexts effectiveDate but as of right now I'm not getting anything returned there.
Thanks a lot :)
I'm using this package in react app & seeing this error:
Access to XMLHttpRequest at 'https://store-site-backend-static.ak.epicgames.com/freeGamesPromotions?country=US' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Need help.
In the current code, there are the following lines
Lines 133 to 136 in f76dc37
But this error is not correct, data?.errors is often not empty.
I run getGames every 5 minutes and here is my log.
Hi,
The next game returns a empty array while there is a next game coming up.
This week they have 3 FREE games but it only outputs 2.
https://www.epicgames.com/store/en-US/
Epic Slayer Kit
Is not in the output.
Hi, I just found out this module to get weekly free Epic games. I just ran it and the first thing I noticed was the array currentGames[]
empty. Right now, 2022-06-15 a game called "ManEater" is on the store for free and will expire tomorrow. In fact, the next game is called "Supraland" and it is in the nextGames[]
array.
This is the code I used: console.log(await getGames("IT"));
I'm currently on Typescript project. Here is the JSON resulting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.