How to access storefront.product_viewed() via the API?

ShelHealth
Excursionist
28 0 8

I see that the customers segments can have a new filter storefront.product_viewed(). How can I access this value for individual customer via the API?  I don't seem to find an object name storefront, nor does the Customer object has a parameter called product_viewed.

 

Thanks

Replies 3 (3)

Liam
Shopify Staff
2731 302 783

Hi ShelHealth,

 

Are you trying to use ShopifyQL to access this dataset?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ShelHealth
Excursionist
28 0 8

I am using REST API. ShopifyQL seems to only be available for Plus members.

Leo-Chan
Shopify Partner
2 0 0

Hi Liam,

 

Could we access the value storefront.product_viewed() for individual customer via the API? Either REST API or ShopifyQL is fine.

 

Thank you, hope you have a great day.