Hi all, I’ve been trying for days to figure out how can I get with any of the available APIs the best selling products from the store of the client I work with.
I have created a custom application and given all the permissions, but I don’t see a way to bring me the best selling products (product IDs, for example) neither with the GraphQL Admin API nor the GraphQL Storefront API.
If you know what products have been sold you’d be able to work out what the best sellers are based on whatever logic you want to use.
Collections also can be sorted.
Generally speaking a best sellers of all products is rarely something someone wants. If building an app It’s more likely a merchant will want a list of best selling items from a pre defined list (aka, let them ignore some items) and over a time period of their choosing.
We need to be able to get via API the 30-50 best selling products of the all store to display them in a component. We are like a custom storefront and we don’t see a way to get that information with the Admin API or Storefront API…