API Reference
The official reference for the WooRec communication layer. All endpoints use the POST method to ensure secure and ample data transmission for recommendation contexts.
/i2iFetches related products for a specific item. Typically used on Product Detail Pages to show "You may also like".
scene
string • Required
WOOREC_SCENE_UPSELL.product
integer • Required
limit
integer • Default: 8
ts
integer • Required
/recGenerates a personalized feed for category pages or the homepage. Supports pagination.
scene
string • Required
WOOREC_SCENE_LIST.category_id
integer • Optional
page
integer • Default: 1
limit
integer • Default: 12
ts
integer • Required
/traceBatched event logging. Designed to handle exposure tracking for multiple products at once (e.g., viewing a category page).
action
string • Required
view_item_list.count
integer • Required
products
array[int] • Required
ts
integer • Required
I2I Payload
PHP Args
List Payload
PHP Args
Trace Payload
PHP Args