Simon AI Interview Question

How would you identify the top-selling items from a store on an ecommerce platform using the platform's API?