Aditya Verma
06/11/2025, 11:52 AMcurl --location '<https://xyz/collections/variantV2/documents/search?query_by=productTitle%2Chandle%2CnormalisedTags%2CcategoryName%2CsubCategory%2CbrandName%2CproductType%2Csize%2Ccolor%2Cshade%2Cvolume&q=Summer%20edit&per_page=50&page=1&group_by=visualOptionId&sortBy=popularity%3Adesc>' \
--header 'X-TYPESENSE-API-KEY: xyz'
Response -
{
"facet_counts": [],
"found": 93,
"hits": [
{
"curated": true,
"document": {
"available": true,
"brandId": "67ff8656fcd4b11401a0522f",
"brandName": "Anasi",
"categoryId": "670014c073fb1b5ab9355639",
"categoryName": "Fashion",
"compareAtPrice": 0.0,
"description": "<p><strong>Product Description </strong></p>\n<p>Introducing our Kai Midi Dress In a majestic shade of magenta pink. Adorned with a mesmerizing Ikat print, this dress captures the essence of bohemian charm. The cross-knot detailing in the front adds a contemporary twist, accentuating your curves.</p>\n<p>Ikkat Print.</p>\n<p>Colour - Magenta pink</p>\n<p>Washing Instructions - Dry Clean</p>",
"externalProductId": "7948593660098",
"externalVariantId": "44554104930498",
"featuredImage": "<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1550copy.jpg?v=1748352362>",
"handle": "kai-maxi-dress",
"id": "68137a57d3ca5a65e684470c-68137a57d3ca5a65e6844770",
"images": [
"<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1550copy.jpg?v=1716304104>",
"<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1585copy.jpg?v=1716304097>",
"<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1545copy.jpg?v=1716304097>"
],
"normalisationConfidence": 0.85,
"normalisedTags": {
"Gender": [
"Women"
],
"Neckline": [
"V Neck"
],
"Print Type": [
"Printed"
],
"Style Type": [
"Casual",
"Beach wear"
]
},
"options": {
"size": "XXXL"
},
"price": 3500.0,
"productId": "68137a57d3ca5a65e684470c",
"productTitle": "Kai Midi Dress",
"productType": "Midi Dress",
"publishedAt": "2024-05-21T20:38:36+05:30",
"publishedAtEpoch": 1749292201029,
"shopifyProductId": 7948593660098,
"shopifyVariantId": 44554104930498,
"size": "XXXL",
"sku": "ANS-DR-004-XXXL",
"subCategory": "Dresses",
"tags": [
"__label:Best Seller",
"Bestsellers",
"collection-ss24"
],
"title": "XXXL",
"updatedAt": "2025-06-07T10:30:01.029494212",
"updatedAtEpoch": 1749292201029,
"variantId": "68137a57d3ca5a65e6844770",
"vendor": "Anasiclothing",
"visualOptionId": "7948593660098-X"
},
"highlight": {},
"highlights": []
},
{
"curated": true,
"document": {
"available": true,
"brandId": "67ff8656fcd4b11401a0522f",
"brandName": "Anasi",
"categoryId": "670014c073fb1b5ab9355639",
"categoryName": "Fashion",
"compareAtPrice": 0.0,
"description": "<p><strong>Product Description </strong></p>\n<p>Introducing our Elle Co-ord Set, The blouse features intricate micro handmade pleats, enhancing the rich Ikat print, while the multi-layered skirt adds a playful, feminine touch. Adorned with delicate lacy detailing on the edges, this set in vibrant magenta exudes sophistication. </p>\n<p>Top with Maxi Skirt.</p>\n<p>Ikat Print</p>\n<p>Colour - Magenta</p>\n<p>Washing Instructions - Dry Clean</p>",
"externalProductId": "7948597231810",
"externalVariantId": "44554123280578",
"featuredImage": "<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1718copy.jpg?v=1748352271>",
"handle": "elle-co-ord-set-ikat-print",
"id": "68137a57d3ca5a65e684471f-68137a57d3ca5a65e68448d0",
"images": [
"<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1718copy.jpg?v=1715943106>",
"<https://cdn.shopify.com/s/files/1/0567/1111/9042/files/KEW1731copy.jpg?v=1715943106>"
],
"normalisationConfidence": 0.9,
"normalisedTags": {
"Gender": [
"Women"
],
"Material/Fabric": [
"Cotton"
],
"Print Type": [
"Printed"
],
"Style Type": [
"Festive",
"Traditional"
]
},
"options": {
"size": "XXXL",
"style": "Skirts"
},
"price": 3300.0,
"productId": "68137a57d3ca5a65e684471f",
"productTitle": "Elle Co-ord Set",
"productType": "Skirt Sets",
"publishedAt": "2024-05-17T23:13:25+05:30",
"publishedAtEpoch": 1749292232446,
"shopifyProductId": 7948597231810,
"shopifyVariantId": 44554123280578,
"size": "XXXL",
"sku": "ANS-CRDST-011",
"subCategory": "Co-ords",
"tags": [
"__label:Best Seller",
"Bestsellers",
"collection-ss24"
],
"title": "XXXL / Skirts",
"updatedAt": "2025-06-07T10:30:32.446657889",
"updatedAtEpoch": 1749292232446,
"variantId": "68137a57d3ca5a65e68448d0",
"vendor": "Anasiclothing",
"visualOptionId": "7948597231810-skirts"
},
"highlight": {},
"highlights": []
},
"out_of": 175332,
"page": 1,
"request_params": {
"collection_name": "variantV2",
"first_q": "Summer edit",
"per_page": 50,
"q": "Summer edit"
},
"search_cutoff": false,
"search_time_ms": 42
}
For curl, (This has group by clause)
curl --location '<https://xyz/collections/variantV2/documents/search?query_by=productTitle%2Chandle%2CnormalisedTags%2CcategoryName%2CsubCategory%2CbrandName%2CproductType%2Csize%2Ccolor%2Cshade%2Cvolume&q=Summer%20edit&per_page=50&page=1&group_by=visualOptionId&sortBy=popularity%3Adesc>' \
--header 'X-TYPESENSE-API-KEY: xyz'
Response -
Sharing below