Collections API returning 404 pages

Highlighted
Excursionist
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?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

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

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