get_category_hierarchy
clicks.co.zaReturns the product category hierarchy from https://www.clicks.co.za. With no parent path it lists top-level categories; with a parent path it lists only direct children, including each full category path and product count.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_category_hierarchy?
Returns the product category hierarchy from https://www.clicks.co.za. With no parent path it lists top-level categories; with a parent path it lists only direct children, including each full category path and product count. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass parent_path and get the result back without maintaining a scraper.
Response
{
"categories": [
{
"name": "<string>",
"path": "<string>",
"level": 0,
"product_count": 0
}
],
"parent_path": "<string>",
"parent_product_count": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/63effd01-4f76-4205-9cf8-e0cd59972856/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "63effd01-4f76-4205-9cf8-e0cd59972856",
"variables": {
"parent_path": ""
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="63effd01-4f76-4205-9cf8-e0cd59972856") — the "get_category_hierarchy" function, which returns the product category hierarchy from https://www.clicks.co.za. With no parent path it lists top-level categories; with a parent path it lists only direct children, including each full category path and product count.. It takes parent_path (str). Return the result as structured JSON.