Setting the file. One moment.
Subchapter 8.101
references/stores/query-products-catalog-v1.mdMarkdown2 KBView on GitHub
Use POST https://www.wixapis.com/stores-reader/v1/products/query to query products from a V1 store.
Basic query (all products):
curl -X POST 'https://www.wixapis.com/stores-reader/v1/products/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"query": {}
}'CRITICAL: In V1,
filterandsortare JSON-encoded strings, not objects — unlike V3 where they are plain objects.
Query with filter and sort:
curl -X POST 'https://www.wixapis.com/stores-reader/v1/products/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"query": {
"filter": "{\"visible\": true}",
"sort": "[{\"fieldName\": \"name\", \"order\": \"ASC\"}]",
"paging": {
"limit": 50,
"offset": 0
}
}
}'Query by product IDs:
curl -X POST 'https://www.wixapis.com/stores-reader/v1/products/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"query": {
"filter": "{\"id\": {\"$in\": [\"product-id-1\", \"product-id-2\"]}}"
}
}'| Feature | Catalog V1 | Catalog V3 |
|---|---|---|
| Query endpoint | POST /stores-reader/v1/products/query | POST /stores/v3/products/query |
| Filter/sort | JSON-encoded strings | Plain objects |
| Additional fields | Not applicable | Enum values like DESCRIPTION, URL |
/stores/v3/ endpoints on a CATALOG_V1 site — they return 428 Precondition Required.