title: Is there any way to get Top Sales Product through WooCommerce API?
body: <p>I have tried to get list of top sales product by Woocommerce API, I'm using version 1 of WooCommerce API. I tried this following endpont, but it does not work:</p>
  
  <p><strong>My Request:</strong></p>
  
  <p>https://<em>DOMAINNAME</em>.com/wp-json/wc/v1/products?consumer_key=<em>CONSUMER_KEY</em>&amp;consumer_secret=<em>CONSUMER_SECRET</em>&amp;category=<em>CATEGORY_ID</em>&amp;order=asc&amp;orderby=total_sales</p>
  
  <p><strong>But it Responses:</strong></p>
  
  <pre><code>{
      "code": "rest_invalid_param",
      "message": "Invalid parameter(s): orderby",
      "data": {
          "status": 400,
          "params": {
              "orderby": "orderby is not one of date, id, include, title, slug."
          }
      }
  }
  </code></pre>
  
  <p><strong>orderby is not one of date, id, include, title, slug.</strong>
  So, I can order by date, ID, include, title and slug only. How can I order by <code>total_sales</code> . Is it possible to do? Or can you suggest any other way?</p>