Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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
Community Manager
3108 344 889

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.