Collections API returning 404 pages

user072319
Excursionist
63 0 4

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?

0 Likes
SBD_
Shopify Staff
Shopify Staff
1071 143 189

Hi @user072319 

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

https://shopify.dev/docs/admin-api/rest/reference/products/product#index-2020-04