Collections API returning 404 pages

Highlighted
Excursionist
59 0 1

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
1040 139 163

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

1 Like