get_hm_navigation_tree
www2.hm.comFetches the complete US H&M navigation hierarchy from https://www2.hm.com, including Women, Men, Kids and Baby, Home, Beauty, and every nested subcategory. Returns nodeId, nodeName, href, and recursive children for each menu node.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_hm_navigation_tree?
Fetches the complete US H&M navigation hierarchy from https://www2.hm.com, including Women, Men, Kids and Baby, Home, Beauty, and every nested subcategory. Returns nodeId, nodeName, href, and recursive children for each menu node. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — call it with no parameters and get the result back without maintaining a scraper.
Response
{
"nodeCount": 0,
"departments": [
{
"href": "<string>",
"nodeId": "<string>",
"children": [
"<any>"
],
"nodeName": "<string>"
}
],
"departmentCount": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/094d87ab-9c86-4c82-93cc-bd23992acc5c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "094d87ab-9c86-4c82-93cc-bd23992acc5c",
"variables": {}
}'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="094d87ab-9c86-4c82-93cc-bd23992acc5c") — the "get_hm_navigation_tree" function, which fetches the complete US H&M navigation hierarchy from https://www2.hm.com, including Women, Men, Kids and Baby, Home, Beauty, and every nested subcategory. Returns nodeId, nodeName, href, and recursive children for each menu node.. It takes no parameters. Return the result as structured JSON.