I tried to get all products (17) by woocommerce rest API:


use AutomatticWooCommerceClient;

$woocommerce = new Client(

$results = $woocommerce->get('products', [], ['per_page'=>17]); 


But returns 10 results.

Please advice what is wrong?

We have 17 active products on our woocommerce website.

Read more here: woocommerce rest api, always return 10 results


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: