Open WooCommerce Rest API by the browser
It is very nice to be able to see how we can get the data by the API, in WooCommerce there is a possibility to do that
first we need
- consumer_key
- consumer_secret
once you get those values you can use this link to get the list of products
https://{www.example.com}/wc-api/v3/products/?consumer_key={consumer_key}&consumer_secret={&consumer_secret}
or you can use the new API
https://{www.example.com}/wp-json/wc/v3/products/?consumer_key={consumer_key}&consumer_secret={&consumer_secret}