skip to Main Content

Getting "per_page must be between 1 (inclusive) and 100 (inclusive)" while requesting the categories in WooCommerce

https://example.com/wp-json/wc/v2/products/categories/?per_page=150&consumer_key=ck_991580c4b11ae619bef763195f67c311aa2bc&consumer_secret=cs_07cacbb022086cf185beb0145fe0e5db01c57&currentLanguage=en { "code": "rest_invalid_param", "message": "Invalid parameter(s): per_page", "data": { "status": 400, "params": { "per_page": "per_page must be between 1 (inclusive) and 100 (inclusive)" } } } I am trying to get the 150 categories from the woo-commerce using the…

VIEW QUESTION

woocommerce rest api python get products

What I need is to get all product IDs that are 'instock' using python. It looks like this: wcapi.get('products', params={"per_page": 100, 'stock_status': 'instock', 'tag': '1111'}).json() This code works, but have max limit 100 per_page, I don't understand how can I…

VIEW QUESTION
Back To Top
Search