LeleDerGrasshalmi / FortniteEndpointsDocumentation

Fortnite & Epic Games Unofficial API Documentation
270 stars 72 forks source link

Add allowCountries param #334

Closed Snailedlt closed 1 week ago

Snailedlt commented 3 weeks ago

PR Checklist

Change Description

There was a missing parameter. I'm unsure exactly what the parameter does, but it seems like both allowCountries and country affect which games are shown. country also affects which currency is used.

So example calls that showcase the differences: URL Note
https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=NO&allowCountries=NO Currency is NOK and Ghostwire is shown since it is available in Norway
https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=NO&allowCountries=RU Currency is also NOK, but some games (for example Ghostwire) aren't shown since the allowCountries is Russia.
https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=RU&allowCountries=RU Currency is RUB and Ghostwire isn't shown
https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=RU&allowCountries=NO Here the currency is RUB but Ghostwire is shown, since Ghostwire is available in Norway
Snailedlt commented 3 weeks ago

Sidenote: Are there any API endpoints you know of that can fetch all historical free games?

LeleDerGrasshalmi commented 2 weeks ago

Sidenote: Are there any API endpoints you know of that can fetch all historical free games?

nope, there is no public api for that ):

Snailedlt commented 2 weeks ago

@LeleDerGrasshalmi fixed