tags:

views:

46

answers:

1

Hi,

I’m just learning Magento and its Web Services API for a new job. I’ve just managed to build some basic PHP scripts fetching products in specific categories. I now need to fetch the best-selling products, but am struggling to find good documentation on this. Any help, pointers, sample code or anything else really would be much appreciated...

Thanks,

Tom

A: 

I think there is not a direct way to do that with the API. Maybe you can do so by retrieving all the sales orders, and find which of the products have been the most ordered.

A quick way would also be to extend the api to add a method which will do what you want.

Mor