Category tree
ps_get_category_tree
Read-onlyBlock 1 · Content & SEOFree in AuditDaily connectorVisible right after install
Shows how your categories are arranged.
Ask Claude
„Show me the category tree and mark empty categories and ones without a description.”
Example answer
Home (2) > Living room (10, 84 products) > Sofas (12, 31 products, no meta description) > Corner sofas (13, 0 products, inactive) ...
Technical details
Category tree with ID, name, active status, number of active products (direct and in the whole subtree, without double counting) and flags for missing description, meta title and meta description. Use it to find a category ID by name, review the structure, or find empty categories and categories without a description.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| root_id | integer | no | Starting category (default the shop's root category). |
| max_depth | integer | no | Depth from root_id (default 4, max 10). |
| include_inactive | boolean | no | Show inactive categories (default true). |
| lang | string | no | ISO language code, for example en or pl. Defaults to the shop's default language. |
| shop_id | integer | no | Shop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info. |
Limits
Max 300 nodes per call. In bigger catalogues narrow it with root_id.
Related tools
- Get category ps_get_category
- Update category content ps_update_category_content
- Set product categories ps_set_product_categories
Last updated: 2026-10-03