Skip to main content
POST
/
products
/
search
JavaScript
import HenrySDK from '@henrylabs/sdk';

const client = new HenrySDK({
  apiKey: 'My API Key',
});

const response = await client.products.search({ query: 'Nike Air Max' });

console.log(response.data);
{
  "success": true,
  "status": "<string>",
  "message": "<string>",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "price": 123,
      "originalPrice": "<string>",
      "currency": "<string>",
      "imageUrl": "<string>",
      "source": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Body

application/json
query
string
required

Search query

Minimum length: 1
Example:

"Nike Air Max"

limit
integer
default:20

Limit the number of results

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

20

color
string

Color

Example:

"Red"

gender
string

Gender

Example:

"Men"

manufacturer
string

Manufacturer

Example:

"Nike"

lowerThanPrice
number

Lower than price

Required range: x > 0
Example:

100

greaterThanPrice
number

Greater than price

Required range: x > 0
Example:

100

size
string

Size

Example:

"10"

region
string

Region

Example:

"US"

Response

Products found successfully

success
boolean
required
status
string
required
message
string
required
data
object[]
required