Links

Recently Viewed

Display recently viewed items to your visitors using this api endpoint.
// Example call (POST)
https://api.zubi.ai/r/product/data?_token=[TRACKER KEY]&uid=[UID]&
cnt=4&mid=default_last_viewed&product_details=true

Endpoint

post
https://api.zubi.ai/r/product/data
Parameters
Path
_token*
Your tracker key
uid*
The user id of the visitor
cnt*
Number of products to return, max 10
mid*
The model id to use
product_details
Set to true to include product details
Responses
200: OK

Example:

// Example call (POST)
https://api.zubi.ai/r/product/data?_token=[TRACKER KEY]&uid=[UID]&
cnt=4&mid=default_last_viewed&product_details=true

Get the UID

The uid is stored in a cookie called -zl_udi, extract it and include it in the call.