Skip to content

GraphQL v2

Wok edited this page Dec 17, 2022 · 18 revisions

Additional tricks

These are additional tricks referenced in December 2022.

getRelatedOfferIdsByCategory

The operation getRelatedOfferIdsByCategory allows to find blacklisted countries, e.g. South Korea (KR).

https://store.epicgames.com/graphql?operationName=getRelatedOfferIdsByCategory
&variables={"allowCountries":"FR","category":"","country":"FR","locale":"fr",
"namespace":"d5241c76f178492ea1540fce45616757","sortBy":"pcReleaseDate","sortDir":"DESC"}
&extensions={"persistedQuery":
{"version":1,"sha256Hash":"ff4dea7ebf14b25dc1cbedffe1d90620318a7bffea481fea02ac6e87310326f4"} }

or to get lastModifiedDate on top of the previous response:

https://www.epicgames.com/graphql?query=
{
  Catalog {
    catalogOffers(
      namespace: "d5241c76f178492ea1540fce45616757",
      locale: "fr",
      params: {codeRedemptionOnly: true, allowCountries:"FR", category:"", country:"FR", sortBy:"pcReleaseDate", sortDir:"DESC"}
    ) {
      elements {
        lastModifiedDate
        id
        countriesBlacklist
        countriesWhitelist
        customAttributes {
          key
          value
        }
        isCodeRedemptionOnly
        prePurchase
      }
      paging {
        total
      }
    }
  }
}

or in a more concise manner:

https://www.epicgames.com/graphql?query=
{
  Catalog {
    catalogOffers(
      namespace: "d5241c76f178492ea1540fce45616757",
      locale: "fr",
      params: {codeRedemptionOnly: true, allowCountries:"FR", category:"", country:"FR", sortBy:"pcReleaseDate", sortDir:"DESC"}
    ) {
      elements {
        id
        countriesBlacklist
        customAttributes {
          key
          value
        }
        }
    }
  }
}
Clone this wiki locally