Count number of sales for a product

35 3 6

Using the Shopify API, how can I get the count of orders for a specific product?

Going through the docs, I cannot see a way to filter for a specific product:

This seems like such a necessary feature yet I'm disappointed to discover it's not possible.. I hope there's a way I simply missed in the docs.


The use for this is displaying text: "42 people have purchased this product".