Skip to main content
POST
/
product
/
search
Text Product Search
curl --request POST \
  --url https://api.henrylabs.ai/v1/product/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "query": "Air Max Shoes",
  "merchant": "Nike",
  "cursor": 0,
  "limit": 40,
  "minPrice": 1,
  "maxPrice": 100,
  "sortBy": "lowToHigh",
  "country": "us"
}
'
{
  "refId": "<string>",
  "status": "pending",
  "result": {
    "products": [
      {
        "link": "<string>",
        "merchant": "<string>",
        "host": "<string>",
        "sku": "<string>",
        "name": "<string>",
        "price": {
          "value": 123,
          "currency": "USD"
        },
        "description": "<string>",
        "images": [
          {
            "url": "<string>",
            "isFeatured": true
          }
        ],
        "originalPrice": {
          "value": 123,
          "currency": "USD"
        },
        "availability": "in_stock",
        "variants": [
          {
            "sku": "<string>",
            "name": "<string>",
            "availability": "in_stock"
          }
        ]
      }
    ],
    "pagination": {
      "nextCursor": "<string>",
      "previousCursor": "<string>"
    }
  },
  "error": {}
}

Authorizations

x-api-key
string
header
required

Body

application/json
query
string
required

Search query

Minimum string length: 1
Example:

"Air Max Shoes"

merchant
string

Merchant to filter results

Examples:

"Nike"

"https://www.nike.com/"

cursor
integer

Cursor returned from the previous response

Required range: 0 <= x <= 9007199254740991
Example:

0

limit
number
default:20

Limit the number of results

Required range: 1 <= x <= 100
Example:

20

maxPrice
number

Maximum price filter

Required range: x <= 1000000
Example:

100

minPrice
number

Minimum price filter

Required range: x <= 1000000
Example:

1

sortBy
enum<string>

Sort by price: 'lowToHigh' or 'highToLow'

Available options:
lowToHigh,
highToLow
Example:

"lowToHigh"

country
string

Response

Product search queued successfully, use refId to check status and retrieve results

refId
string
required
Pattern: ^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$
status
enum<string>
required
Available options:
pending,
processing,
complete,
failed
result
object
error
object