List categories
sh_categoriesRetrieve category IDs, URL paths, and levels with product and shop counts to use in search, browse, or cheapest-product tools. Filter by Persian name or English slug for any level.
Instructions
List the category tree with ids, URL paths and levels, plus total product and shop counts.
Use to get a category_id for sh_search / sh_browse / sh_find_cheapest. Without a query only levels up to max_level are listed; with a query every level is searched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Filter on Persian name or English slug path, any level, e.g. 'مانتو' or 'sneakers'. | |
| max_level | No | Deepest level without a query (1 = the 14 top categories). |