• Hi there,

    I am using the WooCommerce REST API (as documented here) to programatically interact with my E-Commerce shop.

    I have successfully create categories and retrieved the list of product categories using Python:

    
    print(wcapi.get("products/categories").json())
    

    The documentation states that parameters, such as parent, search, per_page, etc can be used on this endpoint. For some reason, I cannot get this to work. I assume that these parameters can be added onto the query string like so:

    
    wcapi.get("products/categories?parent=17").json()
    

    My main goal is to list all sub-categories under a certain category but the above does not work. I have tried using other parameters too (like search, order, etc) but they don’t seem to be working either.

    Is there something I am doing wrong?

The topic ‘API: Product Categories by parent’ is closed to new replies.