Skip to main content
POST
/
products
/
image-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.imageSearch({ url: 'https://i.imgur.com/HBrB8p0.png' });

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>",
      "link": "<string>",
      "originalPrice": "<string>",
      "enrichRequestId": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Body

application/json
url
string<uri>
required

URL of the image to search

Example:

"https://i.imgur.com/HBrB8p0.png"

country
string

Country code (e.g., us, jp, de)

limit
integer
default:20

Limit the number of results

Required range: 1 <= x <= 100
enrichTopK
integer

Experimental: Auto-enrich top K results. Returns enrichRequestId for each product to poll for enriched data.

Required range: 1 <= x <= 20

Response

Image search completed successfully

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