aliexpress_category_ids
Discover AliExpress WEB category ids from the category breadcrumbs its own product cards carry: pass q (free-text keywords) to discover the web categories of matching products, or category_id (a web category id from a /category//.html URL) to inspect one category listing -- pass exactly one. Each result carries category_id, parent_id, level, leaf, product_hits and the full observed path. These are the ids aliexpress_category_products and aliexpress_search's cat_id accept; they are NOT the platform/taxonomy ids aliexpress_categories returns. A parent category listing contains products from its descendants, so inspecting a category reveals child ids, and each path names an id's ancestors: walk the tree from a keyword or any category id instead of guessing ids. page is 1-indexed (1-60) and defaults to 1.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aliexpress_category_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional. Free-text search keywords whose result cards' web category ids are returned, e.g. 'wireless earbuds'. Pass exactly one of q or category_id. | |
| page | No | Optional. 1-indexed listing page to inspect, defaults to 1. Each page carries up to 60 products and therefore several category paths. | |
| category_id | No | Optional. AliExpress web category id (the number in a /category/<id>/<slug>.html URL) whose listing is inspected. A parent category lists products from its descendants, so its cards reveal child ids. Pass exactly one of q or category_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |