Embed a product page
GET/products/embed
Returns an HTML page presenting product information, suitable for embedding in a webpage or app via an iframe.
Authentication: This endpoint supports two authentication methods:
- HTTP Basic auth — pass the
Authorizationheader as with other endpoints. - Signed URL (MAC) — useful when embedding in a frontend where HTTP headers cannot be set. Pass
key,t, andmacquery parameters instead of theAuthorizationheader.
Tip: The
/products/findand/products/queryresponses include a pre-signed embed URL inmeta.embedUrl. This is the easiest way to get a working embed URL.
Generating a signed URL manually:
$message = "embed:" . $productId . ":" . $unixTimestamp;
$mac = hash_hmac("sha256", $message, $apiSecretKey);
Then append ?id={productId}&t={timestamp}&key={apiKeyId}&mac={mac} to the endpoint URL.
Request
Responses
- 200
- 400
- 401
- 404
An HTML page presenting the product information.
No product identifier provided.
Authentication failed (invalid credentials or MAC).
Product not found.