curl --request POST \
--url https://api.henrylabs.ai/v1/product/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"searchType": "text",
"query": "Air Max Shoes",
"merchant": "Nike",
"cursor": 0,
"limit": 40,
"minPrice": 1,
"maxPrice": 100,
"sortBy": "lowToHigh",
"country": "US",
"mode": "async"
}
'{
"refId": "<string>",
"status": "pending",
"result": {
"products": [
{
"link": "<string>",
"merchant": "<string>",
"host": "<string>",
"name": "<string>",
"sku": "<string>",
"description": "<string>",
"images": [
{
"url": "<string>",
"isFeatured": true
}
],
"price": {
"value": 123,
"currency": "USD"
},
"originalPrice": {
"value": 123,
"currency": "USD"
},
"availability": "in_stock",
"variants": [
{
"name": "<string>",
"sku": "<string>",
"availability": "in_stock"
}
]
}
],
"pagination": {
"nextCursor": "<string>",
"previousCursor": "<string>"
}
},
"error": {}
}Search for products by text query or image input. Requests are async by default, or use mode=sync to wait up to 30 seconds for completion.
curl --request POST \
--url https://api.henrylabs.ai/v1/product/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"searchType": "text",
"query": "Air Max Shoes",
"merchant": "Nike",
"cursor": 0,
"limit": 40,
"minPrice": 1,
"maxPrice": 100,
"sortBy": "lowToHigh",
"country": "US",
"mode": "async"
}
'{
"refId": "<string>",
"status": "pending",
"result": {
"products": [
{
"link": "<string>",
"merchant": "<string>",
"host": "<string>",
"name": "<string>",
"sku": "<string>",
"description": "<string>",
"images": [
{
"url": "<string>",
"isFeatured": true
}
],
"price": {
"value": 123,
"currency": "USD"
},
"originalPrice": {
"value": 123,
"currency": "USD"
},
"availability": "in_stock",
"variants": [
{
"name": "<string>",
"sku": "<string>",
"availability": "in_stock"
}
]
}
],
"pagination": {
"nextCursor": "<string>",
"previousCursor": "<string>"
}
},
"error": {}
}Search using a text query
"text""text"
Search query
1"Air Max Shoes"
Response mode. Use sync to wait up to 30 seconds for the backing worker flow to complete.
async, sync "async"
Merchant to filter results
"Nike"
Cursor returned from the previous response
0 <= x <= 90071992547409910
Limit the number of results
1 <= x <= 10020
Maximum price filter
x <= 1000000100
Minimum price filter
x <= 10000001
Sort by price: 'lowToHigh' or 'highToLow'
lowToHigh, highToLow "lowToHigh"
Country code for the search results
"US"
Product search queued successfully, use refId to check status and retrieve results
Was this page helpful?