Checking the visibility of a product from the Shopify API

New Member
1 0 0

Shopify API has a URL (/admin/api/2020-10/products/{product_id}.json) to get all the details about a product. But i could not figure out how to find about the visibility of the product from the JSON response. 'Published_scope' has two values possible - 'web' and 'global'. But, both these values consider that the product is visible on the online store. In the case when product is not visible on the online store but on some other sales channel, how to check the visibility.