Collections API returning 404 pages

61 0 2

We have a Shopify App and we are using Collections API to get all products in custom/smart collections. For some of the Smart Collections, we are getting 404 product pages in the response.

Why am I getting 404 product pages in the result? How can I exclude 404 pages or get only active products in Collection?

Shopify Staff
Shopify Staff
1041 140 170

Hi @user072319 

Some products might not be published, leading to a 404. To filter by published products, try the published_status parameter.

Notice; Out of office, replies will be delayed until my return. Thanks!