Find categories
dk_categoriesRetrieve Digikala category codes and main-category IDs by query, parent, or top-level list to power product and best-seller lookups.
Instructions
Find category codes for dk_category_products and main-category ids for dk_best_sellers.
With query: categories whose Persian name or English code contains it (Persian finds more: 'لپ تاپ' finds the laptop leaf 'notebook-netbook-ultrabook', 'laptop' does not). With parent_id: its children. With neither: the top-level (main) categories. A category with subcategories mixes in accessories: list its children with parent_id and browse the product leaf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max categories to return. | |
| query | No | Words in the category name or code, e.g. 'هدفون' or 'laptop'. | |
| parent_id | No | List the sub-categories of this category id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||