{
  "data": {
    "id": "xh0UrFbhpYnRMvhgN",
    "actId": "DjaKnYfaaJc7Sth6E",
    "userId": "4BicJNfmk8uEe3GtT",
    "startedAt": "2026-11-28T15:00:41.572Z",
    "finishedAt": "2026-11-28T15:00:45.642Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "inputSchema": "{\n  \"title\": \"Amazon Category Tree & Browse Node Mapper Input\",\n  \"description\": \"Export Amazon's public department and category taxonomy per marketplace, starting from whole marketplaces, selected departments or specific browse nodes.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to map. `marketplace` walks every root department of each selected marketplace to `maxDepth`; `roots` lists only the root departments; `department` starts from the root departments named in `rootDepartments`; `node` starts from the IDs/URLs in `nodeIds`.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"marketplace\",\n        \"roots\",\n        \"department\",\n        \"node\"\n      ],\n      \"enumTitles\": [\n        \"Whole marketplace\",\n        \"Root departments only\",\n        \"Selected departments\",\n        \"Specific nodes\"\n      ],\n      \"default\": \"marketplace\",\n      \"prefill\": \"roots\",\n      \"sectionCaption\": \"Choose what to map and where.\"\n    },\n    \"marketplaces\": {\n      \"title\": \"Marketplaces\",\n      \"type\": \"array\",\n      \"description\": \"Amazon marketplaces to map. Each marketplace has its own taxonomy and localized department names. In `node` mode a full category URL sets its own marketplace.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"amazon.com\",\n          \"amazon.co.uk\",\n          \"amazon.de\",\n          \"amazon.fr\",\n          \"amazon.it\",\n          \"amazon.es\",\n          \"amazon.nl\",\n          \"amazon.se\",\n          \"amazon.pl\",\n          \"amazon.com.be\",\n          \"amazon.com.tr\",\n          \"amazon.ae\",\n          \"amazon.sa\",\n          \"amazon.eg\",\n          \"amazon.in\",\n          \"amazon.sg\",\n          \"amazon.com.au\",\n          \"amazon.co.jp\",\n          \"amazon.com.br\",\n          \"amazon.com.mx\",\n          \"amazon.ca\",\n          \"amazon.co.za\",\n          \"amazon.ie\"\n        ],\n        \"enumTitles\": [\n          \"United States (amazon.com)\",\n          \"United Kingdom (amazon.co.uk)\",\n          \"Germany (amazon.de)\",\n          \"France (amazon.fr)\",\n          \"Italy (amazon.it)\",\n          \"Spain (amazon.es)\",\n          \"Netherlands (amazon.nl)\",\n          \"Sweden (amazon.se)\",\n          \"Poland (amazon.pl)\",\n          \"Belgium (amazon.com.be)\",\n          \"Turkey (amazon.com.tr)\",\n          \"United Arab Emirates (amazon.ae)\",\n          \"Saudi Arabia (amazon.sa)\",\n          \"Egypt (amazon.eg)\",\n          \"India (amazon.in)\",\n          \"Singapore (amazon.sg)\",\n          \"Australia (amazon.com.au)\",\n          \"Japan (amazon.co.jp)\",\n          \"Brazil (amazon.com.br)\",\n          \"Mexico (amazon.com.mx)\",\n          \"Canada (amazon.ca)\",\n          \"South Africa (amazon.co.za)\",\n          \"Ireland (amazon.ie)\"\n        ]\n      },\n      \"default\": [\n        \"amazon.com\"\n      ],\n      \"prefill\": [\n        \"amazon.com\"\n      ]\n    },\n    \"rootDepartments\": {\n      \"title\": \"Root departments (optional)\",\n      \"type\": \"array\",\n      \"description\": \"Limit `marketplace` or `department` mode to these top-level departments. Accepts department names (localized or English), bestsellers slugs, or department URLs. Empty means every root department.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"nodeIds\": {\n      \"title\": \"Browse node IDs or category URLs\",\n      \"type\": \"array\",\n      \"description\": \"Start nodes for `node` mode: numeric browse-node IDs, bestsellers/chart URLs, or slug paths such as `electronics/172541`. Each entry is mapped downward to `maxDepth`.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"maxDepth\": {\n      \"title\": \"Maximum depth\",\n      \"type\": \"integer\",\n      \"description\": \"How many child levels to follow below each start. 0 = only the start category (root departments in marketplace/department mode). Each deeper level costs one page per category.\",\n      \"minimum\": 0,\n      \"maximum\": 6,\n      \"default\": 2,\n      \"prefill\": 0\n    },\n    \"maxNodes\": {\n      \"title\": \"Maximum category nodes\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on category rows saved in this run. The run stops cleanly at this limit.\",\n      \"minimum\": 1,\n      \"maximum\": 5000,\n      \"default\": 500,\n      \"prefill\": 3\n    },\n    \"includeChartUrls\": {\n      \"title\": \"Include chart URLs\",\n      \"type\": \"boolean\",\n      \"description\": \"Add Best Sellers, New Releases, Most Wished For, Most Gifted and Movers & Shakers URLs for every node.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeSearchUrl\": {\n      \"title\": \"Include search URLs\",\n      \"type\": \"boolean\",\n      \"description\": \"Add a marketplace search URL for every node, scoped to its browse node where possible.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeSearchAlias\": {\n      \"title\": \"Include department search alias\",\n      \"type\": \"boolean\",\n      \"description\": \"Add the department `search-alias` (the `i=` value) inherited from the root department, plus a search URL that uses it.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeProductCounts\": {\n      \"title\": \"Include product counts\",\n      \"type\": \"boolean\",\n      \"description\": \"Fetch each node's search results bar for an approximate product count. Slower; Amazon does not render a count for every node, so missing counts are omitted rather than guessed.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxProductCounts\": {\n      \"title\": \"Maximum product-count lookups\",\n      \"type\": \"integer\",\n      \"description\": \"Cap on extra search-page fetches used for product counts when `includeProductCounts` is on.\",\n      \"minimum\": 0,\n      \"maximum\": 500,\n      \"default\": 25,\n      \"prefill\": 0\n    },\n    \"includeEnglishNames\": {\n      \"title\": \"Include English names\",\n      \"type\": \"boolean\",\n      \"description\": \"For non-English marketplaces, fetch each node's English page and add `englishName` when Amazon translates the category. Unsupported locales keep the localized name only.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"resolveRootIds\": {\n      \"title\": \"Resolve missing root node IDs\",\n      \"type\": \"boolean\",\n      \"description\": \"Some top-level chart roots do not expose a numeric browse-node ID on their own page. When enabled, make one bounded search-page lookup per unresolved root to recover it.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"maxRootIdLookups\": {\n      \"title\": \"Maximum root-ID lookups\",\n      \"type\": \"integer\",\n      \"description\": \"Cap on extra search-page fetches used to resolve missing root browse-node IDs.\",\n      \"minimum\": 0,\n      \"maximum\": 200,\n      \"default\": 25,\n      \"prefill\": 2\n    },\n    \"requestDelayMs\": {\n      \"title\": \"Delay between requests (ms)\",\n      \"type\": \"integer\",\n      \"description\": \"Extra wait after each page load. A small delay keeps long taxonomy walks polite.\",\n      \"minimum\": 0,\n      \"maximum\": 5000,\n      \"default\": 400,\n      \"prefill\": 200\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration\",\n      \"type\": \"object\",\n      \"description\": \"Apify proxy used to load Amazon pages. AUTO datacenter is used by default, pinned to the marketplace country; no proxy setup is needed.\",\n      \"editor\": \"proxy\",\n      \"default\": {\n        \"useApifyProxy\": true\n      },\n      \"prefill\": {\n        \"useApifyProxy\": true\n      }\n    }\n  },\n  \"required\": [\n    \"mode\",\n    \"marketplaces\"\n  ]\n}",
    "readme": "# Amazon Category Tree & Browse Node Mapper\n\nExport Amazon's public department and category taxonomy for any supported marketplace. One row per category node gives you the real browse-node ID, the full breadcrumb, the parent node, the depth, how many children it has, whether it is a leaf, and ready-to-use Best Sellers, New Releases, Most Wished For, Most Gifted, Movers & Shakers and search URLs.\n\nThis actor reads Amazon's own Best Sellers left-navigation tree. It does not need cookies, a login, an API key or any proxy setup.\n\n## What you get\n\n- **Marketplace-wide maps** — every root department in a marketplace, then as many child levels as you ask for.\n- **Department maps** — start from `Electronics`, `Books`, `Home & Kitchen` or any other root department name, slug or URL.\n- **Node maps** — start from numeric browse-node IDs, bestsellers URLs or slug paths such as `electronics/172541`.\n- **Real browse-node IDs** — every non-root node carries Amazon's numeric node ID from the category links. Root departments carry it whenever Amazon exposes it.\n- **Breadcrumb + parent chain** — localized names, slugs, node IDs, parent name and parent key, so the rows load straight into a tree, a picker or a database.\n- **Leaf detection** — `childCount` and `isLeaf` come from the live navigation, not from a guess.\n- **Working links** — chart URLs for five Amazon charts plus a marketplace search URL scoped to the node, with the department `search-alias` (`i=`).\n- **Optional depth** — product counts and English names are opt-in because they cost extra page loads.\n\n## Supported marketplaces\n\nUnited States, United Kingdom, Germany, France, Italy, Spain, Netherlands, Sweden, Poland, Belgium, Turkey, United Arab Emirates, Saudi Arabia, Egypt, India, Singapore, Australia, Japan, Brazil, Mexico, Canada, South Africa and Ireland.\n\nEach marketplace has its own taxonomy. The same department can have a different slug, node ID and localized name in each one, and this actor reports the marketplace's own values.\n\n## Modes\n\n| Mode | What it does |\n|---|---|\n| `marketplace` | Walks every root department of each selected marketplace down to `maxDepth`. |\n| `roots` | Saves only the root departments (cheapest useful map). |\n| `department` | Starts from the root departments listed in `rootDepartments`. |\n| `node` | Starts from the IDs, category URLs or slug paths listed in `nodeIds`. |\n\n`maxDepth` counts child levels below the start: `0` is the start only, `1` adds its children, `2` adds grandchildren, and so on.\n\n## Inputs\n\n| Input | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `marketplace` | `marketplace`, `roots`, `department` or `node`. |\n| `marketplaces` | array | `[\"amazon.com\"]` | One or more supported Amazon marketplaces. |\n| `rootDepartments` | array | – | Department names, slugs or URLs. Empty means every root department. |\n| `nodeIds` | array | – | Numeric IDs, bestsellers/chart URLs or slug paths for `node` mode. |\n| `maxDepth` | integer | `2` | Child levels to follow, 0–6. |\n| `maxNodes` | integer | `500` | Hard cap on saved rows. |\n| `includeChartUrls` | boolean | `true` | Add five chart URLs per node. |\n| `includeSearchUrl` | boolean | `true` | Add a node-scoped search URL. |\n| `includeSearchAlias` | boolean | `true` | Add the department `search-alias` (`i=`). |\n| `includeProductCounts` | boolean | `false` | Fetch approximate counts from search result bars. |\n| `maxProductCounts` | integer | `25` | Cap on count lookups. |\n| `includeEnglishNames` | boolean | `false` | Add `englishName` on non-English marketplaces. |\n| `resolveRootIds` | boolean | `true` | Recover missing root IDs with a bounded search lookup. |\n| `maxRootIdLookups` | integer | `25` | Cap on those root-ID lookups. |\n| `requestDelayMs` | integer | `400` | Extra wait after each page load. |\n| `proxyConfiguration` | proxy | AUTO datacenter | Optional; the default needs no setup and is pinned to the marketplace country. |\n\n`mode` and `marketplaces` are required. Every other input has a safe default.\n\n## Output fields\n\n| Field | Description |\n|---|---|\n| `recordType` | Always `categoryNode`. |\n| `marketplace` | Marketplace domain, e.g. `amazon.de`. |\n| `marketplaceCountryCode` | ISO country code of the marketplace. |\n| `marketplaceCurrency` | Marketplace currency. |\n| `marketplaceLanguage` | Marketplace locale. |\n| `browseNodeId` | Amazon numeric browse-node ID when Amazon exposes it. |\n| `nodeKey` | Stable unique key for the node in this marketplace. |\n| `name` | Category name in the marketplace's localized UI. |\n| `englishName` | English name, only when `includeEnglishNames` is on and Amazon translates it. |\n| `depth` | Levels below the run's start node (0 = start). |\n| `taxonomyDepth` | Absolute depth from the marketplace root (0 = root department). |\n| `path` | Full breadcrumb names, root first. |\n| `breadcrumb` | Breadcrumb joined with ` > `. |\n| `pathSlugs` | URL path segments, root slug first. |\n| `pathNodeIds` | Numeric node IDs known along the path. |\n| `rootDepartment` | Top-level department name. |\n| `rootSlug` | Top-level department slug. |\n| `rootNodeId` | Top-level department browse-node ID when exposed. |\n| `parentNodeId` | Parent node's numeric ID when known. |\n| `parentName` | Parent category name. |\n| `parentKey` | Parent `nodeKey`. |\n| `childCount` | Direct children visible in the live navigation. |\n| `isLeaf` | `true` when `childCount` is 0. |\n| `chartUrls` | Best Sellers, New Releases, Most Wished For, Most Gifted and Movers & Shakers URLs. |\n| `searchUrl` | Marketplace search URL for the node. |\n| `searchAlias` | Department `i=` alias inherited from the root department. |\n| `productCount` | Approximate product count, only with `includeProductCounts`. |\n| `productCountText` | The exact result-bar text behind `productCount`. |\n| `sourceUrl` | Amazon page the node was read from. |\n| `scrapedAt` | UTC ISO timestamp. |\n\nEmpty fields are omitted from the row; there are no nulls.\n\n## Examples\n\nList the top departments of Amazon US:\n\n```json\n{\n  \"mode\": \"roots\",\n  \"marketplaces\": [\"amazon.com\"],\n  \"maxNodes\": 10\n}\n```\n\nMap Electronics two levels deep in Germany:\n\n```json\n{\n  \"mode\": \"department\",\n  \"marketplaces\": [\"amazon.de\"],\n  \"rootDepartments\": [\"Elektronik & Foto\"],\n  \"maxDepth\": 2,\n  \"maxNodes\": 200\n}\n```\n\nMap one node by ID in the United States:\n\n```json\n{\n  \"mode\": \"node\",\n  \"marketplaces\": [\"amazon.com\"],\n  \"nodeIds\": [\"172541\"],\n  \"maxDepth\": 1\n}\n```\n\nThe default daily run is the cheapest useful map: `roots` mode, `amazon.com`, three nodes, no extra lookups.\n\n## Use cases\n\n- **Seller and vendor tooling** — build a browse-node picker or validate that a listing is filed in the right category.\n- **Advertising and catalog teams** — map an internal product taxonomy to Amazon's, per marketplace, with real node IDs.\n- **Feed other scrapers** — take the chart or search URLs from this dataset and hand them to an Amazon product or bestsellers actor.\n- **Market research** — compare category structures and department naming across countries.\n- **Taxonomy monitoring** — run it on a schedule and diff the tree to see when Amazon adds, renames or removes categories.\n\n## FAQ\n\n**Does it need cookies or a login?** No. It loads public Amazon pages, lets Amazon's own browser challenge finish, and never asks you for credentials.\n\n**Where do the node IDs come from?** From Amazon's category links and department navigation. A small number of top-level chart roots do not publish a numeric ID on their own page; those rows keep a stable `nodeKey` and omit `browseNodeId`. Every deeper node has its real numeric ID.\n\n**Are product counts exact?** No. They are approximate and opt-in. Amazon only renders a result bar for some nodes; when it is missing the count is omitted rather than fabricated.\n\n**Why is `englishName` missing on some rows?** English names are optional and only appear where Amazon actually serves an English version of that marketplace. Some locales (for example Poland, Turkey, Brazil and Mexico in our tests) keep localized names only.\n\n**Is `isLeaf` permanent?** It reflects the live navigation at `scrapedAt`. Amazon can add children later, so re-run for a fresh map.\n\n**How large can a map get?** A full marketplace is thousands of nodes. Use `maxDepth` and `maxNodes` to keep runs small; Amazon rate limits aggressive walks.\n\n**What if a page is blocked?** The actor retries with a fresh browser session, skips the page if it stays blocked, and reports failed/blocked fetches in the run status message. It never writes placeholder categories.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "amazon-category-tree-mapper",
      "title": "Amazon Category Tree & Browse Node Mapper",
      "description": "Export Amazon's department and category taxonomy per marketplace: real browse-node IDs, names, breadcrumbs, parents, depth, child counts, leaf flags, chart and search URLs.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Amazon Category Tree & Browse Node Mapper\n\nExport Amazon's public department and category taxonomy for any supported marketplace. One row per category node gives you the real browse-node ID, the full breadcrumb, the parent node, the depth, how many children it has, whether it is a leaf, and ready-to-use Best Sellers, New Releases, Most Wished For, Most Gifted, Movers & Shakers and search URLs.\n\nThis actor reads Amazon's own Best Sellers left-navigation tree. It does not need cookies, a login, an API key or any proxy setup.\n\n## What you get\n\n- **Marketplace-wide maps** — every root department in a marketplace, then as many child levels as you ask for.\n- **Department maps** — start from `Electronics`, `Books`, `Home & Kitchen` or any other root department name, slug or URL.\n- **Node maps** — start from numeric browse-node IDs, bestsellers URLs or slug paths such as `electronics/172541`.\n- **Real browse-node IDs** — every non-root node carries Amazon's numeric node ID from the category links. Root departments carry it whenever Amazon exposes it.\n- **Breadcrumb + parent chain** — localized names, slugs, node IDs, parent name and parent key, so the rows load straight into a tree, a picker or a database.\n- **Leaf detection** — `childCount` and `isLeaf` come from the live navigation, not from a guess.\n- **Working links** — chart URLs for five Amazon charts plus a marketplace search URL scoped to the node, with the department `search-alias` (`i=`).\n- **Optional depth** — product counts and English names are opt-in because they cost extra page loads.\n\n## Supported marketplaces\n\nUnited States, United Kingdom, Germany, France, Italy, Spain, Netherlands, Sweden, Poland, Belgium, Turkey, United Arab Emirates, Saudi Arabia, Egypt, India, Singapore, Australia, Japan, Brazil, Mexico, Canada, South Africa and Ireland.\n\nEach marketplace has its own taxonomy. The same department can have a different slug, node ID and localized name in each one, and this actor reports the marketplace's own values.\n\n## Modes\n\n| Mode | What it does |\n|---|---|\n| `marketplace` | Walks every root department of each selected marketplace down to `maxDepth`. |\n| `roots` | Saves only the root departments (cheapest useful map). |\n| `department` | Starts from the root departments listed in `rootDepartments`. |\n| `node` | Starts from the IDs, category URLs or slug paths listed in `nodeIds`. |\n\n`maxDepth` counts child levels below the start: `0` is the start only, `1` adds its children, `2` adds grandchildren, and so on.\n\n## Inputs\n\n| Input | Type | Default | Notes |\n|---|---|---|---|\n| `mode` | select | `marketplace` | `marketplace`, `roots`, `department` or `node`. |\n| `marketplaces` | array | `[\"amazon.com\"]` | One or more supported Amazon marketplaces. |\n| `rootDepartments` | array | – | Department names, slugs or URLs. Empty means every root department. |\n| `nodeIds` | array | – | Numeric IDs, bestsellers/chart URLs or slug paths for `node` mode. |\n| `maxDepth` | integer | `2` | Child levels to follow, 0–6. |\n| `maxNodes` | integer | `500` | Hard cap on saved rows. |\n| `includeChartUrls` | boolean | `true` | Add five chart URLs per node. |\n| `includeSearchUrl` | boolean | `true` | Add a node-scoped search URL. |\n| `includeSearchAlias` | boolean | `true` | Add the department `search-alias` (`i=`). |\n| `includeProductCounts` | boolean | `false` | Fetch approximate counts from search result bars. |\n| `maxProductCounts` | integer | `25` | Cap on count lookups. |\n| `includeEnglishNames` | boolean | `false` | Add `englishName` on non-English marketplaces. |\n| `resolveRootIds` | boolean | `true` | Recover missing root IDs with a bounded search lookup. |\n| `maxRootIdLookups` | integer | `25` | Cap on those root-ID lookups. |\n| `requestDelayMs` | integer | `400` | Extra wait after each page load. |\n| `proxyConfiguration` | proxy | AUTO datacenter | Optional; the default needs no setup and is pinned to the marketplace country. |\n\n`mode` and `marketplaces` are required. Every other input has a safe default.\n\n## Output fields\n\n| Field | Description |\n|---|---|\n| `recordType` | Always `categoryNode`. |\n| `marketplace` | Marketplace domain, e.g. `amazon.de`. |\n| `marketplaceCountryCode` | ISO country code of the marketplace. |\n| `marketplaceCurrency` | Marketplace currency. |\n| `marketplaceLanguage` | Marketplace locale. |\n| `browseNodeId` | Amazon numeric browse-node ID when Amazon exposes it. |\n| `nodeKey` | Stable unique key for the node in this marketplace. |\n| `name` | Category name in the marketplace's localized UI. |\n| `englishName` | English name, only when `includeEnglishNames` is on and Amazon translates it. |\n| `depth` | Levels below the run's start node (0 = start). |\n| `taxonomyDepth` | Absolute depth from the marketplace root (0 = root department). |\n| `path` | Full breadcrumb names, root first. |\n| `breadcrumb` | Breadcrumb joined with ` > `. |\n| `pathSlugs` | URL path segments, root slug first. |\n| `pathNodeIds` | Numeric node IDs known along the path. |\n| `rootDepartment` | Top-level department name. |\n| `rootSlug` | Top-level department slug. |\n| `rootNodeId` | Top-level department browse-node ID when exposed. |\n| `parentNodeId` | Parent node's numeric ID when known. |\n| `parentName` | Parent category name. |\n| `parentKey` | Parent `nodeKey`. |\n| `childCount` | Direct children visible in the live navigation. |\n| `isLeaf` | `true` when `childCount` is 0. |\n| `chartUrls` | Best Sellers, New Releases, Most Wished For, Most Gifted and Movers & Shakers URLs. |\n| `searchUrl` | Marketplace search URL for the node. |\n| `searchAlias` | Department `i=` alias inherited from the root department. |\n| `productCount` | Approximate product count, only with `includeProductCounts`. |\n| `productCountText` | The exact result-bar text behind `productCount`. |\n| `sourceUrl` | Amazon page the node was read from. |\n| `scrapedAt` | UTC ISO timestamp. |\n\nEmpty fields are omitted from the row; there are no nulls.\n\n## Examples\n\nList the top departments of Amazon US:\n\n```json\n{\n  \"mode\": \"roots\",\n  \"marketplaces\": [\"amazon.com\"],\n  \"maxNodes\": 10\n}\n```\n\nMap Electronics two levels deep in Germany:\n\n```json\n{\n  \"mode\": \"department\",\n  \"marketplaces\": [\"amazon.de\"],\n  \"rootDepartments\": [\"Elektronik & Foto\"],\n  \"maxDepth\": 2,\n  \"maxNodes\": 200\n}\n```\n\nMap one node by ID in the United States:\n\n```json\n{\n  \"mode\": \"node\",\n  \"marketplaces\": [\"amazon.com\"],\n  \"nodeIds\": [\"172541\"],\n  \"maxDepth\": 1\n}\n```\n\nThe default daily run is the cheapest useful map: `roots` mode, `amazon.com`, three nodes, no extra lookups.\n\n## Use cases\n\n- **Seller and vendor tooling** — build a browse-node picker or validate that a listing is filed in the right category.\n- **Advertising and catalog teams** — map an internal product taxonomy to Amazon's, per marketplace, with real node IDs.\n- **Feed other scrapers** — take the chart or search URLs from this dataset and hand them to an Amazon product or bestsellers actor.\n- **Market research** — compare category structures and department naming across countries.\n- **Taxonomy monitoring** — run it on a schedule and diff the tree to see when Amazon adds, renames or removes categories.\n\n## FAQ\n\n**Does it need cookies or a login?** No. It loads public Amazon pages, lets Amazon's own browser challenge finish, and never asks you for credentials.\n\n**Where do the node IDs come from?** From Amazon's category links and department navigation. A small number of top-level chart roots do not publish a numeric ID on their own page; those rows keep a stable `nodeKey` and omit `browseNodeId`. Every deeper node has its real numeric ID.\n\n**Are product counts exact?** No. They are approximate and opt-in. Amazon only renders a result bar for some nodes; when it is missing the count is omitted rather than fabricated.\n\n**Why is `englishName` missing on some rows?** English names are optional and only appear where Amazon actually serves an English version of that marketplace. Some locales (for example Poland, Turkey, Brazil and Mexico in our tests) keep localized names only.\n\n**Is `isLeaf` permanent?** It reflects the live navigation at `scrapedAt`. Amazon can add children later, so re-run for a fresh map.\n\n**How large can a map get?** A full marketplace is thousands of nodes. Use `maxDepth` and `maxNodes` to keep runs small; Amazon rate limits aggressive walks.\n\n**What if a page is blocked?** The actor retries with a fresh browser session, skips the page if it stays blocked, and reports failed/blocked fetches in the run status message. It never writes placeholder categories.\n",
      "input": {
        "title": "Amazon Category Tree & Browse Node Mapper Input",
        "description": "Export Amazon's public department and category taxonomy per marketplace, starting from whole marketplaces, selected departments or specific browse nodes.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to map. `marketplace` walks every root department of each selected marketplace to `maxDepth`; `roots` lists only the root departments; `department` starts from the root departments named in `rootDepartments`; `node` starts from the IDs/URLs in `nodeIds`.",
            "editor": "select",
            "enum": [
              "marketplace",
              "roots",
              "department",
              "node"
            ],
            "enumTitles": [
              "Whole marketplace",
              "Root departments only",
              "Selected departments",
              "Specific nodes"
            ],
            "default": "marketplace",
            "prefill": "roots",
            "sectionCaption": "Choose what to map and where."
          },
          "marketplaces": {
            "title": "Marketplaces",
            "type": "array",
            "description": "Amazon marketplaces to map. Each marketplace has its own taxonomy and localized department names. In `node` mode a full category URL sets its own marketplace.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "amazon.com",
                "amazon.co.uk",
                "amazon.de",
                "amazon.fr",
                "amazon.it",
                "amazon.es",
                "amazon.nl",
                "amazon.se",
                "amazon.pl",
                "amazon.com.be",
                "amazon.com.tr",
                "amazon.ae",
                "amazon.sa",
                "amazon.eg",
                "amazon.in",
                "amazon.sg",
                "amazon.com.au",
                "amazon.co.jp",
                "amazon.com.br",
                "amazon.com.mx",
                "amazon.ca",
                "amazon.co.za",
                "amazon.ie"
              ],
              "enumTitles": [
                "United States (amazon.com)",
                "United Kingdom (amazon.co.uk)",
                "Germany (amazon.de)",
                "France (amazon.fr)",
                "Italy (amazon.it)",
                "Spain (amazon.es)",
                "Netherlands (amazon.nl)",
                "Sweden (amazon.se)",
                "Poland (amazon.pl)",
                "Belgium (amazon.com.be)",
                "Turkey (amazon.com.tr)",
                "United Arab Emirates (amazon.ae)",
                "Saudi Arabia (amazon.sa)",
                "Egypt (amazon.eg)",
                "India (amazon.in)",
                "Singapore (amazon.sg)",
                "Australia (amazon.com.au)",
                "Japan (amazon.co.jp)",
                "Brazil (amazon.com.br)",
                "Mexico (amazon.com.mx)",
                "Canada (amazon.ca)",
                "South Africa (amazon.co.za)",
                "Ireland (amazon.ie)"
              ]
            },
            "default": [
              "amazon.com"
            ],
            "prefill": [
              "amazon.com"
            ]
          },
          "rootDepartments": {
            "title": "Root departments (optional)",
            "type": "array",
            "description": "Limit `marketplace` or `department` mode to these top-level departments. Accepts department names (localized or English), bestsellers slugs, or department URLs. Empty means every root department.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "nodeIds": {
            "title": "Browse node IDs or category URLs",
            "type": "array",
            "description": "Start nodes for `node` mode: numeric browse-node IDs, bestsellers/chart URLs, or slug paths such as `electronics/172541`. Each entry is mapped downward to `maxDepth`.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "maxDepth": {
            "title": "Maximum depth",
            "type": "integer",
            "description": "How many child levels to follow below each start. 0 = only the start category (root departments in marketplace/department mode). Each deeper level costs one page per category.",
            "minimum": 0,
            "maximum": 6,
            "default": 2,
            "prefill": 0
          },
          "maxNodes": {
            "title": "Maximum category nodes",
            "type": "integer",
            "description": "Hard cap on category rows saved in this run. The run stops cleanly at this limit.",
            "minimum": 1,
            "maximum": 5000,
            "default": 500,
            "prefill": 3
          },
          "includeChartUrls": {
            "title": "Include chart URLs",
            "type": "boolean",
            "description": "Add Best Sellers, New Releases, Most Wished For, Most Gifted and Movers & Shakers URLs for every node.",
            "default": true,
            "prefill": true
          },
          "includeSearchUrl": {
            "title": "Include search URLs",
            "type": "boolean",
            "description": "Add a marketplace search URL for every node, scoped to its browse node where possible.",
            "default": true,
            "prefill": true
          },
          "includeSearchAlias": {
            "title": "Include department search alias",
            "type": "boolean",
            "description": "Add the department `search-alias` (the `i=` value) inherited from the root department, plus a search URL that uses it.",
            "default": true,
            "prefill": true
          },
          "includeProductCounts": {
            "title": "Include product counts",
            "type": "boolean",
            "description": "Fetch each node's search results bar for an approximate product count. Slower; Amazon does not render a count for every node, so missing counts are omitted rather than guessed.",
            "default": false,
            "prefill": false
          },
          "maxProductCounts": {
            "title": "Maximum product-count lookups",
            "type": "integer",
            "description": "Cap on extra search-page fetches used for product counts when `includeProductCounts` is on.",
            "minimum": 0,
            "maximum": 500,
            "default": 25,
            "prefill": 0
          },
          "includeEnglishNames": {
            "title": "Include English names",
            "type": "boolean",
            "description": "For non-English marketplaces, fetch each node's English page and add `englishName` when Amazon translates the category. Unsupported locales keep the localized name only.",
            "default": false,
            "prefill": false
          },
          "resolveRootIds": {
            "title": "Resolve missing root node IDs",
            "type": "boolean",
            "description": "Some top-level chart roots do not expose a numeric browse-node ID on their own page. When enabled, make one bounded search-page lookup per unresolved root to recover it.",
            "default": true,
            "prefill": true
          },
          "maxRootIdLookups": {
            "title": "Maximum root-ID lookups",
            "type": "integer",
            "description": "Cap on extra search-page fetches used to resolve missing root browse-node IDs.",
            "minimum": 0,
            "maximum": 200,
            "default": 25,
            "prefill": 2
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "type": "integer",
            "description": "Extra wait after each page load. A small delay keeps long taxonomy walks polite.",
            "minimum": 0,
            "maximum": 5000,
            "default": 400,
            "prefill": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy used to load Amazon pages. AUTO datacenter is used by default, pinned to the marketplace country; no proxy setup is needed.",
            "editor": "proxy",
            "default": {
              "useApifyProxy": true
            },
            "prefill": {
              "useApifyProxy": true
            }
          }
        },
        "required": [
          "mode",
          "marketplaces"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Amazon Category Tree & Browse Node Mapper Output",
        "description": "Amazon department and category nodes with browse-node IDs, breadcrumbs, parents, depth, child counts, leaf flags and chart/search URLs.",
        "properties": {
          "categories": {
            "type": "string",
            "title": "Amazon category nodes",
            "description": "Dataset containing one row per Amazon category node.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "defaultMemoryMbytes": 2048,
      "minMemoryMbytes": 2048,
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Category nodes",
              "transformation": {
                "fields": [
                  "marketplace",
                  "browseNodeId",
                  "name",
                  "depth",
                  "taxonomyDepth",
                  "breadcrumb",
                  "childCount",
                  "isLeaf"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            },
            "urls": {
              "title": "URLs & aliases",
              "transformation": {
                "fields": [
                  "marketplace",
                  "browseNodeId",
                  "name",
                  "searchAlias",
                  "searchUrl",
                  "chartUrls",
                  "sourceUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.7",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}