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

const client = new HenrySDK({
  apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});

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,
      "currency": "<string>",
      "imageUrl": "<string>",
      "source": "<string>",
      "originalPrice": "<string>"
    }
  ],
  "pagination": {
    "nextCursor": "<string>",
    "previousCursor": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
query
string
required

Search query

Minimum string length: 1
Example:

"Nike Air Max"

limit
integer
default:10

Limit the number of results

Required range: 1 <= x <= 100
maxPrice
number

Maximum price filter

minPrice
number

Minimum price filter

region
string
default:us

[Deprecated] Region filter (defaults to us).

freeShipping
boolean

Restrict results to listings with free shipping

smallBusiness
boolean

Restrict results to merchants labeled as small business

sortBy

Sort order: 1 = price low→high, 2 = price high→low

cursor
integer

Cursor returned from the previous response (SerpAPI start param)

Required range: 0 <= x <= 9007199254740991
color
string

[Deprecated] Filter results by color

gender
string

[Deprecated] Filter results by gender

manufacturer
string

[Deprecated] Filter results by manufacturer

size
string

[Deprecated] Filter results by size

lowerThanPrice
number

[Deprecated] Alias for maxPrice. Maintained for backwards compatibility.

greaterThanPrice
number

[Deprecated] Alias for minPrice. Maintained for backwards compatibility.

Response

Products found successfully

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