Get all products from Woocommerce using REST API

后端 未结 7 1928
鱼传尺愫
鱼传尺愫 2020-12-18 16:12

I am trying to retrieve all products using rest api. I have read this question. I am using postman to make calls. Here is my query

https://squatwolf.com/wp-j         


        
7条回答
  •  半阙折子戏
    2020-12-18 16:35

    /wp-json/wc/v2/products
    

    and

    /wc-api/v3/products
    

    both seems to work, but to get certain number of products I'm using

    /wc-api/v3/products?filter[limit]=
    

    put the number of products there. -1 for all products

提交回复
热议问题