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?
Some products might not be published, leading to a 404. To filter by published products, try the published_status parameter.