S_products
Search through a list of products available on Eneba.
Limits will be hit if you try to iterate through the entire Eneba catalogue. Please use the search
parameter to filter the results
Supported arguments
The following arguments are supported by S_products query:
Field | Type | Description |
---|---|---|
after | String | Returns the elements that come after the specified cursor |
first | Int | Returns up to the first n elements from the list |
onlyUnmapped | Boolean | Returns only unmapped products |
createdSince | S_DateTime | Returns products created since given date |
releasedSince | S_DateTime | Returns products released or to be released since given date |
search | String | Search phrase for product name |
sort | S_API_ProductsSort | Products sorting option |
slugs | [String!] | Product slugs to search for |
ids | [S_Uuid!] | Product ids to search for |
Return type
The query returns theS_API_ProductConnection
type.
Example usage
Query
In the following query we are querying for one product (first: 1
),
that has "elden ring" text in its name (search
),
that are releasedSince
a particular date,
we do not have created an auction for them (onlyUnmapped: true
),
and we are also ordering the results by creation date (sort
).
"auctions" field in S_API_Product type is deprecated and will be removed in the future.
Use dedicated S_competition
query to monitor competition prices
query {
S_products(
first: 1
releasedSince: "2022-01-01T00:00:00"
onlyUnmapped: false
sort: CREATED_AT_DESC
search: "elden ring"
) {
edges {
node {
id
name
languages
drm { slug }
regions { code }
releasedAt
createdAt
slug
isSellable
type { value }
auctions(first: 1) {
edges {
node {
belongsToYou
isInStock
merchantName
price { amount currency }
}
}
}
}
}
}
}
Result
Here we have got the response, it includes a single product.
We also see that there is at least one other merchant is selling this product, and we can see its price (auctions.edges.node.price
).
The isSellable: true
field indicates that we are able to create an auction for this product.
{
"data": {
"S_products": {
"edges": [
{
"node": {
"id": "07e92bf8-3814-11ed-873b-2ab02f229afd",
"name": "Elden Ring Deluxe Edition XBOX LIVE Key TURKEY",
"languages": [
"English"
],
"drm": {
"slug": "xbox"
},
"regions": [
{
"code": "turkey"
}
],
"releasedAt": "2022-02-25T00:00:00+00:00",
"createdAt": "2022-09-19T12:10:20+00:00",
"slug": "xbox-elden-ring-deluxe-edition-xbox-live-key-turkey",
"isSellable": true,
"type": {
"value": "GAME"
},
"auctions": {
"edges": [
{
"node": {
"belongsToYou": false,
"isInStock": true,
"merchantName": "Other merchant",
"price": {
"amount": 5799,
"currency": "EUR"
}
}
}
]
}
}
}
]
}
}
}