List Categories
list_categoriesFind live Digikala category IDs by Persian/English name, code, or ID substring; filter top-level or child categories to use with product search.
Instructions
Find live Digikala category IDs by Persian/English name, code, or ID substring.
Omit query to page through all categories. roots_only lists top-level categories; parent_id lists direct children. Text and parent filters can be combined. Pagination is local over the current upstream tree, ordered by numeric ID. Use category_id in search_products, with or without search text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| error | No | ||
| market | No | digikala | |
| page_size | Yes | ||
| categories | No | ||
| total_items | No | ||
| total_pages | No |