WooCommerce REST API GET multiple products by ID WooCommerce REST API GET multiple products by ID wordpress wordpress

WooCommerce REST API GET multiple products by ID


you could use parameter 'include' to achieve that like below :

site.com/wp-json/wc/v2/products/?include=5,6,7,8,9

This will limit results to specific Id's.


On version 3 of Woocommerce it should be

https://test.com/wp-json/wc/v3/products?consumer_key=ck_&consumer_secret=cs_&include=1,2,3