Techdocs
Search…
Querying Products

List Products

Querying products gives access to Nosto's product catalogues current state. It can be useful for backend integration and verification purposes. It is not meant for online use purposes as it doesn't include any concepts related to user sessions or attribution, for those refer to GraphQL For Headless
1
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
2
-u ":<token>" \
3
-H 'Content-Type: application/graphql' \
4
-d @- << EOF
5
query {
6
products(
7
limit: 5
8
offset: 0
9
sort: {field: PRICE, reverse:true},
10
filter: {categories: "shoes"}
11
) {
12
products {
13
productId
14
url
15
price
16
categories
17
}
18
}
19
}
20
EOF
Copied!
The maximum number of products that can be paged over is capped at 10000. If you need to get around this limitation, we recommend adding more restrictive filters to narrow down the result set.

Query by Product ID

1
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
2
-u ":<token>" \
3
-H 'Content-Type: application/graphql' \
4
-d @- << EOF
5
query {
6
product(id: "5358") {
7
productId
8
name
9
url
10
price
11
listPrice
12
imageUrl
13
attributes {
14
key
15
value
16
}
17
skus {
18
name
19
price
20
listPrice
21
availability
22
imageUrl
23
url
24
}
25
}
26
}
27
EOF
Copied!
Last modified 2mo ago