Overview
Use the Product Discovery APIs to power search, product detail pages, and inventory checks across any merchant on the internet. The endpoints expose normalized pricing, rich metadata, and optional variant validation so you can build immersive shopping experiences quickly.Prerequisites
- Henry Shopping API key from Sandbox or Production
- Sandbox or production base URL (
https://api.sandbox.henrylabs.ai/v0during development) - Optional
x-user-idheader when you want to match requests to an end user
1
Search the catalog
Start with Every product in the response includes
POST /products/search to retrieve items that match a keyword plus optional filters.id, name, price, currency, imageUrl, productLink, and the merchant source, so you can render tiles immediately.2
Fetch enriched product details
When the shopper selects an item, call The detail payload mirrors the OpenAPI schema:
GET /products/details with the productId you received from search. This returns reviews, variant metadata, merchant pricing, and imagery.thumbnails, merchant stores with pricing and shipping, shopper userReviews, and structured variants that list each selectable attribute.3
Check variant availability (optional)
If you need real-time stock info for a specific variant combination, use You will receive
POST /products/variant-check. The endpoint is marked experimental and returns a requestId you can poll.status values like processing, completed, or timeout. When the request completes, data.stockStatus.available indicates whether the combination is in stock, and data.stockStatus.details surfaces per-attribute matches.Variant checks are currently experimental. Expect the schema to evolve and add
graceful fallbacks when the service returns
failed or timeout.Error handling
400 Bad Request— validate that required fields likequeryorproductIdare present and non-empty.401 Unauthorized— check thex-api-keyheader; sandbox and production keys are scoped separately.404 Not Found— the product or variant request may have expired; replay the initial call.
Next steps
- Persist the
idreturned from search so you can correlate cart adds. - Continue to Universal Cart to let shoppers save the products they discover.

