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

NameTypeRequiredDescription
root_idintegernoStarting category (default the shop's root category).
max_depthintegernoDepth from root_id (default 4, max 10).
include_inactivebooleannoShow inactive categories (default true).
langstringnoISO language code, for example en or pl. Defaults to the shop's default language.
shop_idintegernoShop 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

Last updated: 2026-10-03