Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress REST API search products

Hope that you can help me.

I have a website that runs wooccommerce. I am using the woocommerce rest api. Now on another website what I want to do is create a simple search field where I type something and the search form needs to search through the woocommerce website and return results.

Is there a way I can achieve that ?

like image 487
studioworks Avatar asked Mar 06 '16 11:03

studioworks


1 Answers

Try this:

/wp-json/wc/v2/products?search={{product_name}}

Works for me.

like image 189
Amr Ezzat Avatar answered Nov 15 '22 05:11

Amr Ezzat