v1
latestOpenAPI 3.0.02026-07-226950132.6 KBproduct-categories
Get product categories
Gets a list of product categories.
get/products/categories
Query parameters
pageinteger
Current page of the collection.
per_pageinteger
Maximum number of items to return per page.
searchstring
Limit results to those matching a search string.
excludeinteger[]
Ensure result set excludes specific IDs.
includeinteger[]
Limit result set to specific IDs.
order'asc' | 'desc'
Sort order.
orderby'id' | 'include' | 'name' | 'slug' | 'term_group' | 'description' | 'count'
Sort categories by field.
parentinteger
Limit results to categories with a specific parent.
hide_emptyboolean
Whether to hide categories with no products.
slugstring[]
Limit result set to categories with specific slug(s).
Response
Product categories retrieved successfully.