{
  "data": {
    "id": "h2kycKRwNJp1MeYmg",
    "actId": "hUciFSBKM9B09AUn9",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-12-02T13:27:31.844Z",
    "finishedAt": "2026-12-02T13:27:34.135Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"Advance Auto Parts Scraper Input\",\n  \"description\": \"Scrape shop.advanceautoparts.com products by keyword, part number, category, or product URL — with prices, fitment, specifications, media, and optional full price/store-inventory enrichment.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"browseByCategory\",\n        \"browseByCategoryId\",\n        \"browseCategoryTree\",\n        \"searchByKeyword\",\n        \"byUrl\"\n      ],\n      \"enumTitles\": [\n        \"Browse a top-level category\",\n        \"Browse category IDs or category URLs\",\n        \"Map the category tree\",\n        \"Search by keyword, part number, or interchange number\",\n        \"Fetch products by URL\"\n      ],\n      \"default\": \"browseByCategory\",\n      \"prefill\": \"browseByCategory\"\n    },\n    \"category\": {\n      \"title\": \"Top-level category (mode=browseByCategory)\",\n      \"type\": \"string\",\n      \"description\": \"Browse every product in this top-level category, including all subcategories.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"accessories\",\n        \"air-intake\",\n        \"alternators-and-starters\",\n        \"apparel\",\n        \"appearance-and-paint\",\n        \"audio-and-video\",\n        \"batteries-and-chargers\",\n        \"belts-and-hoses\",\n        \"body\",\n        \"braking\",\n        \"clutch-system\",\n        \"cooling-and-climate-control\",\n        \"drive-shafts-and-axles\",\n        \"drivetrain\",\n        \"electrical\",\n        \"engine\",\n        \"exhaust\",\n        \"filters-and-pcv\",\n        \"fluids-and-chemicals\",\n        \"fuel-and-emissions-system\",\n        \"ignition-and-tune-up\",\n        \"interior\",\n        \"jacks-garage-and-equipment\",\n        \"lawn-and-garden\",\n        \"lighting\",\n        \"marine-and-rv\",\n        \"motorcycle-and-atv\",\n        \"oil-and-lubricants\",\n        \"performance-and-racing\",\n        \"steering-and-chassis\",\n        \"suspension\",\n        \"tools\",\n        \"towing\",\n        \"transmission\",\n        \"wheels-and-tires\"\n      ],\n      \"enumTitles\": [\n        \"Accessories\",\n        \"Air Intake\",\n        \"Alternators & Starters\",\n        \"Apparel\",\n        \"Appearance & Paint\",\n        \"Audio & Video\",\n        \"Batteries & Chargers\",\n        \"Belts & Hoses\",\n        \"Body\",\n        \"Braking\",\n        \"Clutch System\",\n        \"Cooling & Climate Control\",\n        \"Drive Shafts & Axles\",\n        \"Drivetrain\",\n        \"Electrical\",\n        \"Engine\",\n        \"Exhaust\",\n        \"Filters & PCV\",\n        \"Fluids & Chemicals\",\n        \"Fuel & Emissions System\",\n        \"Ignition & Tune-Up\",\n        \"Interior\",\n        \"Jacks, Garage & Equipment\",\n        \"Lawn & Garden\",\n        \"Lighting\",\n        \"Marine & RV\",\n        \"Motorcycle & ATV\",\n        \"Oil & Lubricants\",\n        \"Performance & Racing\",\n        \"Steering & Chassis\",\n        \"Suspension\",\n        \"Tools\",\n        \"Towing\",\n        \"Transmission\",\n        \"Wheels & Tires\"\n      ],\n      \"default\": \"braking\",\n      \"prefill\": \"braking\"\n    },\n    \"categoryIds\": {\n      \"title\": \"Category IDs or URLs (mode=browseByCategoryId)\",\n      \"type\": \"array\",\n      \"description\": \"Paste numeric category IDs (e.g. 81637) or full category URLs. Each category is fetched with full pagination.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"searchQueries\": {\n      \"title\": \"Search queries (mode=searchByKeyword)\",\n      \"type\": \"array\",\n      \"description\": \"Free-text searches: part names, brands, part numbers, or interchange numbers. One query per item; results are merged and deduplicated.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"interchangePartNumber\": {\n      \"title\": \"Interchange part number\",\n      \"type\": \"string\",\n      \"description\": \"Find parts that interchange with this part number. When set, this replaces the free-text queries and searches the site's interchange index.\",\n      \"editor\": \"textfield\"\n    },\n    \"urls\": {\n      \"title\": \"Product URLs (mode=byUrl)\",\n      \"type\": \"array\",\n      \"description\": \"Full product URLs, e.g. https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P . Both canonical -P URLs and older URLs are accepted.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"brand\": {\n      \"title\": \"Brand contains\",\n      \"type\": \"string\",\n      \"description\": \"Keep only products whose brand name contains this text. An exact brand match is also sent to the site's brand facet to reduce downloads.\",\n      \"editor\": \"textfield\"\n    },\n    \"minRating\": {\n      \"title\": \"Minimum rating\",\n      \"type\": \"integer\",\n      \"description\": \"Only emit products with an average rating at least this high (1-5).\",\n      \"minimum\": 1,\n      \"maximum\": 5\n    },\n    \"minPrice\": {\n      \"title\": \"Minimum price (USD)\",\n      \"type\": \"number\",\n      \"description\": \"Only emit products whose current price is at least this value.\",\n      \"minimum\": 0,\n      \"maximum\": 1000000\n    },\n    \"maxPrice\": {\n      \"title\": \"Maximum price (USD)\",\n      \"type\": \"number\",\n      \"description\": \"Only emit products whose current price is at or below this value.\",\n      \"minimum\": 0,\n      \"maximum\": 1000000\n    },\n    \"saleOnly\": {\n      \"title\": \"On sale only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only emit products currently flagged as on sale.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"availability\": {\n      \"title\": \"Availability\",\n      \"type\": \"string\",\n      \"description\": \"Filter by how the product can be fulfilled.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"pickup\",\n        \"ship\"\n      ],\n      \"enumTitles\": [\n        \"Any availability\",\n        \"Free in-store pickup\",\n        \"Ship to home\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"fitment\": {\n      \"title\": \"Fitment\",\n      \"type\": \"string\",\n      \"description\": \"Filter by the site's fitment flag. Exact fit means the part is confirmed for the selected vehicle context; choose Any when no vehicle is selected.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"exact\",\n        \"notFitted\"\n      ],\n      \"enumTitles\": [\n        \"Any fitment\",\n        \"Exact fit\",\n        \"Not fitted\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"vehicleType\": {\n      \"title\": \"Vehicle type (optional vehicle fitment)\",\n      \"type\": \"string\",\n      \"description\": \"Vehicle type used with the year/make/model fields.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"car\",\n        \"motorcycle\"\n      ],\n      \"enumTitles\": [\n        \"Car / truck\",\n        \"Motorcycle\"\n      ],\n      \"default\": \"car\",\n      \"prefill\": \"car\"\n    },\n    \"vehicleYear\": {\n      \"title\": \"Vehicle year\",\n      \"type\": \"string\",\n      \"description\": \"Optional vehicle year (e.g. 2020). Fill year, make, and model together to make fitmentStatus vehicle-specific and to use the exact-fit filter.\",\n      \"editor\": \"textfield\"\n    },\n    \"vehicleMake\": {\n      \"title\": \"Vehicle make\",\n      \"type\": \"string\",\n      \"description\": \"Optional vehicle make (e.g. Toyota).\",\n      \"editor\": \"textfield\"\n    },\n    \"vehicleModel\": {\n      \"title\": \"Vehicle model\",\n      \"type\": \"string\",\n      \"description\": \"Optional vehicle model (e.g. Camry LE).\",\n      \"editor\": \"textfield\"\n    },\n    \"vehicleEngine\": {\n      \"title\": \"Vehicle engine (optional)\",\n      \"type\": \"string\",\n      \"description\": \"Optional engine text to disambiguate multiple engines for the same model (e.g. 2.5L). The first match is used when omitted.\",\n      \"editor\": \"textfield\"\n    },\n    \"sort\": {\n      \"title\": \"Sort\",\n      \"type\": \"string\",\n      \"description\": \"Order of emitted records, using the site's native sort orders.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"relevance\",\n        \"most_popular\",\n        \"rating_desc\",\n        \"price_asc\",\n        \"price_desc\",\n        \"name_asc\",\n        \"name_desc\"\n      ],\n      \"enumTitles\": [\n        \"Best match\",\n        \"Most popular\",\n        \"Top rated\",\n        \"Price: low to high\",\n        \"Price: high to low\",\n        \"Brand/name: A-Z\",\n        \"Brand/name: Z-A\"\n      ],\n      \"default\": \"relevance\",\n      \"prefill\": \"relevance\"\n    },\n    \"detailLevel\": {\n      \"title\": \"Detail level\",\n      \"type\": \"string\",\n      \"description\": \"Overview uses one search response per 120 products. Full adds the site's list price, online stock, and (when a store ID is set) live store quantity.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"overview\",\n        \"full\"\n      ],\n      \"enumTitles\": [\n        \"Overview (fast)\",\n        \"Full (price details and inventory)\"\n      ],\n      \"default\": \"overview\",\n      \"prefill\": \"overview\"\n    },\n    \"storeId\": {\n      \"title\": \"Store ID (detailLevel=full)\",\n      \"type\": \"string\",\n      \"description\": \"Optional Advance Auto Parts store ID. When set with detailLevel=full, each product includes that store's quantity and stock status. Leave blank to skip store calls.\",\n      \"editor\": \"textfield\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records. The source catalog is roughly 52,000 products in the largest category.\",\n      \"minimum\": 1,\n      \"maximum\": 100000,\n      \"default\": 100,\n      \"prefill\": 3\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Advance Auto Parts Fitment & Price Drop Tracker\n\nPull live product and catalog data from [shop.advanceautoparts.com](https://shop.advanceautoparts.com) — one of the largest US auto-parts retailers. Search by keyword, part number, or interchange number; sweep an entire top-level category with full pagination; browse arbitrary category IDs; map the category tree; or fetch exact product URLs. Prices, sale and price-drop flags, fitment, ratings, specifications, images, and videos come back as clean JSON.\n\n## What this actor does\n\n- **Keyword and part-number search** — free-text queries or exact part numbers. Several queries can be merged into one dataset and are deduplicated by SKU; a dedicated interchange lookup finds alternative parts.\n- **Category browsing** — all 35 top-level categories, or any numeric category ID / category URL, with full pagination up to the source catalog size (about 52,000 products in the largest category).\n- **Category tree** — returns the site's category structure with IDs, URLs, depth, parent links, and child counts. The menu levels are instant; deeper leaf groups are crawled when `maxItems` allows.\n- **Product URLs** — accepts canonical `…/12345-P` URLs and older `…/12345` URLs, plus links with tracking query strings.\n- **Native sorting** — best match, most popular, top rated, price low/high, or brand A-Z/Z-A, applied by the site itself.\n- **Filters** — brand text, minimum rating, price floor and ceiling, on-sale only, pickup/shipping availability, and exact/not-fitted fitment. The actor applies the final filter to every record, so results match the requested bounds even when the site's facet is approximate.\n- **Vehicle fitment** — optionally set year, make, model (and engine) to make `fitmentStatus` vehicle-specific and to list only parts that actually fit. The actor resolves the vehicle through the site's public vehicle endpoint; no login is needed.\n- **Full detail mode** — adds the site's list price, core charge, online stock quantity, and — when a store ID is supplied — that store's live quantity and stock status.\n- Empty fields are omitted at every depth. No `null`, no empty strings, no placeholder values.\n\n## Output per product\n\nCore identity and catalog:\n\n- `skuId`, `partNumber`, `manufacturerCode`\n- `name`, `brand`, `category`, `categoryPath`, `categoryPathIds`, `description`, `seoKeyword`\n- `sourceUrl`, `recordType: \"product\"`, `scrapedAt`\n\nPricing:\n\n- `regularPrice`, `salePrice`, `currency`\n- `listPrice` (full mode)\n- `onSale`, `priceDrop`\n- `coreCharge` when the part has a refundable core\n\nFitment and ratings:\n\n- `fitmentStatus`, `isFitted`, `fitmentApplicationDescriptions`\n- `vehicleId`, `vehicleYear`, `vehicleMake`, `vehicleModel`, `vehicleEngine` when a vehicle is selected\n- `averageRating`, `reviewAverageScore`, `reviewsCount`\n- `ratingHistogram`, `recommendationScore` (URL fallback)\n\nPhysical and handling:\n\n- `warranty`, `hazmat`, `shippable`, `storePickable`, `factoryDirectOrderable`, `excludedFromPromotions`\n- `width`, `height`, `length`, `weight`\n- `specifications` — key/value spec table\n\nMedia and availability:\n\n- `imageUrls[]`, `image`, `thumbnail` — deduplicated images, capped at 12\n- `videos[]` (`url`, `thumbnail`, `title`, `type`), `video` — first video URL\n- `availability`, `condition` — from the product page's structured data\n- `onlineInStock`, `onlineQuantity` (full mode)\n- `storeId`, `storeQuantity`, `storeStockStatus` (full mode with `storeId`)\n\nCategory-tree records (`mode=browseCategoryTree`):\n\n- `categoryId`, `categoryGroupId`, `name`, `categoryUrl`, `sourceUrl`\n- `categoryLevel`, `parentCategoryId`, `parentCategoryGroupId`, `parentName`, `childCount`\n- `recordType: \"category\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `browseByCategory` | `browseByCategory`, `browseByCategoryId`, `browseCategoryTree`, `searchByKeyword`, or `byUrl`. |\n| `category` | string | `braking` | One of 35 top-level categories (mode `browseByCategory`). |\n| `categoryIds` | array | `[]` | Numeric category IDs or full category URLs (mode `browseByCategoryId`). |\n| `searchQueries` | array | `[]` | Keywords or part numbers (mode `searchByKeyword`). |\n| `interchangePartNumber` | string | – | Find parts that interchange with this part number. Replaces free-text queries when set. |\n| `urls` | array | `[]` | Product URLs (mode `byUrl`). Canonical `-P` and older URLs both work. |\n| `brand` | string | – | Keep brands whose name contains this text. |\n| `minRating` | integer | – | Minimum average rating (1–5). |\n| `minPrice` | number | – | Minimum current price in USD. |\n| `maxPrice` | number | – | Maximum current price in USD. |\n| `saleOnly` | boolean | `false` | Keep only products flagged on sale. |\n| `availability` | string | `any` | `any`, `pickup` (free in-store pickup), or `ship` (ship to home). |\n| `fitment` | string | `any` | `any`, `exact`, or `notFitted`. |\n| `vehicleType` | string | `car` | `car` or `motorcycle` for optional vehicle fitment. |\n| `vehicleYear` | string | – | Vehicle year (e.g. `2020`). Use with make and model. |\n| `vehicleMake` | string | – | Vehicle make (e.g. `Toyota`). |\n| `vehicleModel` | string | – | Vehicle model (e.g. `Camry LE`). |\n| `vehicleEngine` | string | – | Optional engine text to disambiguate multiple engines. |\n| `sort` | string | `relevance` | `relevance`, `most_popular`, `rating_desc`, `price_asc`, `price_desc`, `name_asc`, `name_desc`. |\n| `detailLevel` | string | `overview` | `overview` (fast search data) or `full` (list price, online stock, store stock). |\n| `storeId` | string | – | Optional store ID for live store quantity in full mode. |\n| `maxItems` | integer | `100` | Hard cap on emitted records (1–100,000). |\n\n### Example: batteries on sale, cheapest first\n\n```json\n{\n  \"mode\": \"browseByCategory\",\n  \"category\": \"batteries-and-chargers\",\n  \"saleOnly\": true,\n  \"maxPrice\": 250,\n  \"sort\": \"price_asc\",\n  \"maxItems\": 200\n}\n```\n\n### Example: search several part numbers at once\n\n```json\n{\n  \"mode\": \"searchByKeyword\",\n  \"searchQueries\": [\"H6-AGM\", \"YH145305\", \"PT2298\"],\n  \"detailLevel\": \"full\",\n  \"storeId\": \"8880\",\n  \"maxItems\": 50\n}\n```\n\n### Example: browse a category by URL or ID\n\n```json\n{\n  \"mode\": \"browseByCategoryId\",\n  \"categoryIds\": [\n    \"https://shop.advanceautoparts.com/c2/brake-pads-and-shoes/81637\",\n    \"81639\"\n  ],\n  \"maxItems\": 500\n}\n```\n\n### Example: brake pads that fit a 2020 Toyota Camry LE\n\n```json\n{\n  \"mode\": \"searchByKeyword\",\n  \"searchQueries\": [\"brake pads\"],\n  \"vehicleYear\": \"2020\",\n  \"vehicleMake\": \"Toyota\",\n  \"vehicleModel\": \"Camry LE\",\n  \"fitment\": \"exact\",\n  \"maxItems\": 50\n}\n```\n\n### Example: fetch exact product URLs\n\n```json\n{\n  \"mode\": \"byUrl\",\n  \"urls\": [\n    \"https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P\"\n  ],\n  \"detailLevel\": \"full\"\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track regular, sale, and list prices across a category or a fixed set of SKUs.\n- **Price-drop tracking** — use `onSale`, `priceDrop`, `regularPrice`, `salePrice`, and `listPrice` to find real markdowns.\n- **Assortment analytics** — compare brands, ratings, fitment coverage, core charges, and specifications inside a category.\n- **Parts catalog building** — collect part numbers, interchange searches, specifications, dimensions, images, and videos.\n- **Local availability** — check online and per-store quantity for a chosen store before a purchase.\n- **Site mapping** — dump the category tree with parent/child links before targeting specific groups.\n\n## FAQ\n\n**Do I need a proxy or API key?**\nNo. The actor talks to the same product-search routes the site uses, with no login, cookies, or proxy configuration.\n\n**Why does the first page return more products than older versions?**\nThe actor now paginates the site's product search API. A top-level category with tens of thousands of products can be swept completely, subject to `maxItems`.\n\n**What is the difference between `overview` and `full`?**\n`overview` reads the search response: price, sale flags, ratings, fitment, specs, media, and dimensions. `full` adds the site's list price and online stock, plus live store quantity when `storeId` is set. `full` costs a few extra requests per 120 products.\n\n**Does `minRating` match the site's star filter exactly?**\nThe actor sends the closest star bucket to the site and then checks every record's `averageRating`, so the output never includes a product below your minimum.\n\n**Can I filter by vehicle (year/make/model)?**\nYes. Set `vehicleYear`, `vehicleMake`, and `vehicleModel` (plus optional `vehicleEngine`) and the actor resolves the vehicle through the site's public vehicle endpoint. `fitmentStatus`, `fitmentApplicationDescriptions`, and the `fitment=exact` filter then reflect that vehicle.\n\n**Why are some fields missing on some products?**\nFields are emitted only when the source publishes them. A part with no published weight or warranty simply omits that key.\n\n**Are images and videos hotlink protected?**\nThey load without cookies or a Referer using a normal browser; some command-line clients are challenged by the site's bot protection. The URLs are the site's public media URLs.\n\n**Is this affiliated with Advance Auto Parts?**\nNo. This is an independent third-party actor and is not affiliated with Advance Auto Parts.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "advance-auto-parts-fitment-and-price-drop-tracker",
      "title": "Advance Auto Parts Fitment & Price Drop Tracker",
      "description": "Scrape Advance Auto Parts by keyword, part number, category, or URL — prices, sale and price-drop status, fitment, specs, media, and optional online/store inventory.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Advance Auto Parts Fitment & Price Drop Tracker\n\nPull live product and catalog data from [shop.advanceautoparts.com](https://shop.advanceautoparts.com) — one of the largest US auto-parts retailers. Search by keyword, part number, or interchange number; sweep an entire top-level category with full pagination; browse arbitrary category IDs; map the category tree; or fetch exact product URLs. Prices, sale and price-drop flags, fitment, ratings, specifications, images, and videos come back as clean JSON.\n\n## What this actor does\n\n- **Keyword and part-number search** — free-text queries or exact part numbers. Several queries can be merged into one dataset and are deduplicated by SKU; a dedicated interchange lookup finds alternative parts.\n- **Category browsing** — all 35 top-level categories, or any numeric category ID / category URL, with full pagination up to the source catalog size (about 52,000 products in the largest category).\n- **Category tree** — returns the site's category structure with IDs, URLs, depth, parent links, and child counts. The menu levels are instant; deeper leaf groups are crawled when `maxItems` allows.\n- **Product URLs** — accepts canonical `…/12345-P` URLs and older `…/12345` URLs, plus links with tracking query strings.\n- **Native sorting** — best match, most popular, top rated, price low/high, or brand A-Z/Z-A, applied by the site itself.\n- **Filters** — brand text, minimum rating, price floor and ceiling, on-sale only, pickup/shipping availability, and exact/not-fitted fitment. The actor applies the final filter to every record, so results match the requested bounds even when the site's facet is approximate.\n- **Vehicle fitment** — optionally set year, make, model (and engine) to make `fitmentStatus` vehicle-specific and to list only parts that actually fit. The actor resolves the vehicle through the site's public vehicle endpoint; no login is needed.\n- **Full detail mode** — adds the site's list price, core charge, online stock quantity, and — when a store ID is supplied — that store's live quantity and stock status.\n- Empty fields are omitted at every depth. No `null`, no empty strings, no placeholder values.\n\n## Output per product\n\nCore identity and catalog:\n\n- `skuId`, `partNumber`, `manufacturerCode`\n- `name`, `brand`, `category`, `categoryPath`, `categoryPathIds`, `description`, `seoKeyword`\n- `sourceUrl`, `recordType: \"product\"`, `scrapedAt`\n\nPricing:\n\n- `regularPrice`, `salePrice`, `currency`\n- `listPrice` (full mode)\n- `onSale`, `priceDrop`\n- `coreCharge` when the part has a refundable core\n\nFitment and ratings:\n\n- `fitmentStatus`, `isFitted`, `fitmentApplicationDescriptions`\n- `vehicleId`, `vehicleYear`, `vehicleMake`, `vehicleModel`, `vehicleEngine` when a vehicle is selected\n- `averageRating`, `reviewAverageScore`, `reviewsCount`\n- `ratingHistogram`, `recommendationScore` (URL fallback)\n\nPhysical and handling:\n\n- `warranty`, `hazmat`, `shippable`, `storePickable`, `factoryDirectOrderable`, `excludedFromPromotions`\n- `width`, `height`, `length`, `weight`\n- `specifications` — key/value spec table\n\nMedia and availability:\n\n- `imageUrls[]`, `image`, `thumbnail` — deduplicated images, capped at 12\n- `videos[]` (`url`, `thumbnail`, `title`, `type`), `video` — first video URL\n- `availability`, `condition` — from the product page's structured data\n- `onlineInStock`, `onlineQuantity` (full mode)\n- `storeId`, `storeQuantity`, `storeStockStatus` (full mode with `storeId`)\n\nCategory-tree records (`mode=browseCategoryTree`):\n\n- `categoryId`, `categoryGroupId`, `name`, `categoryUrl`, `sourceUrl`\n- `categoryLevel`, `parentCategoryId`, `parentCategoryGroupId`, `parentName`, `childCount`\n- `recordType: \"category\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `browseByCategory` | `browseByCategory`, `browseByCategoryId`, `browseCategoryTree`, `searchByKeyword`, or `byUrl`. |\n| `category` | string | `braking` | One of 35 top-level categories (mode `browseByCategory`). |\n| `categoryIds` | array | `[]` | Numeric category IDs or full category URLs (mode `browseByCategoryId`). |\n| `searchQueries` | array | `[]` | Keywords or part numbers (mode `searchByKeyword`). |\n| `interchangePartNumber` | string | – | Find parts that interchange with this part number. Replaces free-text queries when set. |\n| `urls` | array | `[]` | Product URLs (mode `byUrl`). Canonical `-P` and older URLs both work. |\n| `brand` | string | – | Keep brands whose name contains this text. |\n| `minRating` | integer | – | Minimum average rating (1–5). |\n| `minPrice` | number | – | Minimum current price in USD. |\n| `maxPrice` | number | – | Maximum current price in USD. |\n| `saleOnly` | boolean | `false` | Keep only products flagged on sale. |\n| `availability` | string | `any` | `any`, `pickup` (free in-store pickup), or `ship` (ship to home). |\n| `fitment` | string | `any` | `any`, `exact`, or `notFitted`. |\n| `vehicleType` | string | `car` | `car` or `motorcycle` for optional vehicle fitment. |\n| `vehicleYear` | string | – | Vehicle year (e.g. `2020`). Use with make and model. |\n| `vehicleMake` | string | – | Vehicle make (e.g. `Toyota`). |\n| `vehicleModel` | string | – | Vehicle model (e.g. `Camry LE`). |\n| `vehicleEngine` | string | – | Optional engine text to disambiguate multiple engines. |\n| `sort` | string | `relevance` | `relevance`, `most_popular`, `rating_desc`, `price_asc`, `price_desc`, `name_asc`, `name_desc`. |\n| `detailLevel` | string | `overview` | `overview` (fast search data) or `full` (list price, online stock, store stock). |\n| `storeId` | string | – | Optional store ID for live store quantity in full mode. |\n| `maxItems` | integer | `100` | Hard cap on emitted records (1–100,000). |\n\n### Example: batteries on sale, cheapest first\n\n```json\n{\n  \"mode\": \"browseByCategory\",\n  \"category\": \"batteries-and-chargers\",\n  \"saleOnly\": true,\n  \"maxPrice\": 250,\n  \"sort\": \"price_asc\",\n  \"maxItems\": 200\n}\n```\n\n### Example: search several part numbers at once\n\n```json\n{\n  \"mode\": \"searchByKeyword\",\n  \"searchQueries\": [\"H6-AGM\", \"YH145305\", \"PT2298\"],\n  \"detailLevel\": \"full\",\n  \"storeId\": \"8880\",\n  \"maxItems\": 50\n}\n```\n\n### Example: browse a category by URL or ID\n\n```json\n{\n  \"mode\": \"browseByCategoryId\",\n  \"categoryIds\": [\n    \"https://shop.advanceautoparts.com/c2/brake-pads-and-shoes/81637\",\n    \"81639\"\n  ],\n  \"maxItems\": 500\n}\n```\n\n### Example: brake pads that fit a 2020 Toyota Camry LE\n\n```json\n{\n  \"mode\": \"searchByKeyword\",\n  \"searchQueries\": [\"brake pads\"],\n  \"vehicleYear\": \"2020\",\n  \"vehicleMake\": \"Toyota\",\n  \"vehicleModel\": \"Camry LE\",\n  \"fitment\": \"exact\",\n  \"maxItems\": 50\n}\n```\n\n### Example: fetch exact product URLs\n\n```json\n{\n  \"mode\": \"byUrl\",\n  \"urls\": [\n    \"https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P\"\n  ],\n  \"detailLevel\": \"full\"\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track regular, sale, and list prices across a category or a fixed set of SKUs.\n- **Price-drop tracking** — use `onSale`, `priceDrop`, `regularPrice`, `salePrice`, and `listPrice` to find real markdowns.\n- **Assortment analytics** — compare brands, ratings, fitment coverage, core charges, and specifications inside a category.\n- **Parts catalog building** — collect part numbers, interchange searches, specifications, dimensions, images, and videos.\n- **Local availability** — check online and per-store quantity for a chosen store before a purchase.\n- **Site mapping** — dump the category tree with parent/child links before targeting specific groups.\n\n## FAQ\n\n**Do I need a proxy or API key?**\nNo. The actor talks to the same product-search routes the site uses, with no login, cookies, or proxy configuration.\n\n**Why does the first page return more products than older versions?**\nThe actor now paginates the site's product search API. A top-level category with tens of thousands of products can be swept completely, subject to `maxItems`.\n\n**What is the difference between `overview` and `full`?**\n`overview` reads the search response: price, sale flags, ratings, fitment, specs, media, and dimensions. `full` adds the site's list price and online stock, plus live store quantity when `storeId` is set. `full` costs a few extra requests per 120 products.\n\n**Does `minRating` match the site's star filter exactly?**\nThe actor sends the closest star bucket to the site and then checks every record's `averageRating`, so the output never includes a product below your minimum.\n\n**Can I filter by vehicle (year/make/model)?**\nYes. Set `vehicleYear`, `vehicleMake`, and `vehicleModel` (plus optional `vehicleEngine`) and the actor resolves the vehicle through the site's public vehicle endpoint. `fitmentStatus`, `fitmentApplicationDescriptions`, and the `fitment=exact` filter then reflect that vehicle.\n\n**Why are some fields missing on some products?**\nFields are emitted only when the source publishes them. A part with no published weight or warranty simply omits that key.\n\n**Are images and videos hotlink protected?**\nThey load without cookies or a Referer using a normal browser; some command-line clients are challenged by the site's bot protection. The URLs are the site's public media URLs.\n\n**Is this affiliated with Advance Auto Parts?**\nNo. This is an independent third-party actor and is not affiliated with Advance Auto Parts.\n",
      "input": {
        "title": "Advance Auto Parts Scraper Input",
        "description": "Scrape shop.advanceautoparts.com products by keyword, part number, category, or product URL — with prices, fitment, specifications, media, and optional full price/store-inventory enrichment.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch.",
            "editor": "select",
            "enum": [
              "browseByCategory",
              "browseByCategoryId",
              "browseCategoryTree",
              "searchByKeyword",
              "byUrl"
            ],
            "enumTitles": [
              "Browse a top-level category",
              "Browse category IDs or category URLs",
              "Map the category tree",
              "Search by keyword, part number, or interchange number",
              "Fetch products by URL"
            ],
            "default": "browseByCategory",
            "prefill": "browseByCategory"
          },
          "category": {
            "title": "Top-level category (mode=browseByCategory)",
            "type": "string",
            "description": "Browse every product in this top-level category, including all subcategories.",
            "editor": "select",
            "enum": [
              "accessories",
              "air-intake",
              "alternators-and-starters",
              "apparel",
              "appearance-and-paint",
              "audio-and-video",
              "batteries-and-chargers",
              "belts-and-hoses",
              "body",
              "braking",
              "clutch-system",
              "cooling-and-climate-control",
              "drive-shafts-and-axles",
              "drivetrain",
              "electrical",
              "engine",
              "exhaust",
              "filters-and-pcv",
              "fluids-and-chemicals",
              "fuel-and-emissions-system",
              "ignition-and-tune-up",
              "interior",
              "jacks-garage-and-equipment",
              "lawn-and-garden",
              "lighting",
              "marine-and-rv",
              "motorcycle-and-atv",
              "oil-and-lubricants",
              "performance-and-racing",
              "steering-and-chassis",
              "suspension",
              "tools",
              "towing",
              "transmission",
              "wheels-and-tires"
            ],
            "enumTitles": [
              "Accessories",
              "Air Intake",
              "Alternators & Starters",
              "Apparel",
              "Appearance & Paint",
              "Audio & Video",
              "Batteries & Chargers",
              "Belts & Hoses",
              "Body",
              "Braking",
              "Clutch System",
              "Cooling & Climate Control",
              "Drive Shafts & Axles",
              "Drivetrain",
              "Electrical",
              "Engine",
              "Exhaust",
              "Filters & PCV",
              "Fluids & Chemicals",
              "Fuel & Emissions System",
              "Ignition & Tune-Up",
              "Interior",
              "Jacks, Garage & Equipment",
              "Lawn & Garden",
              "Lighting",
              "Marine & RV",
              "Motorcycle & ATV",
              "Oil & Lubricants",
              "Performance & Racing",
              "Steering & Chassis",
              "Suspension",
              "Tools",
              "Towing",
              "Transmission",
              "Wheels & Tires"
            ],
            "default": "braking",
            "prefill": "braking"
          },
          "categoryIds": {
            "title": "Category IDs or URLs (mode=browseByCategoryId)",
            "type": "array",
            "description": "Paste numeric category IDs (e.g. 81637) or full category URLs. Each category is fetched with full pagination.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "searchQueries": {
            "title": "Search queries (mode=searchByKeyword)",
            "type": "array",
            "description": "Free-text searches: part names, brands, part numbers, or interchange numbers. One query per item; results are merged and deduplicated.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "interchangePartNumber": {
            "title": "Interchange part number",
            "type": "string",
            "description": "Find parts that interchange with this part number. When set, this replaces the free-text queries and searches the site's interchange index.",
            "editor": "textfield"
          },
          "urls": {
            "title": "Product URLs (mode=byUrl)",
            "type": "array",
            "description": "Full product URLs, e.g. https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P . Both canonical -P URLs and older URLs are accepted.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "brand": {
            "title": "Brand contains",
            "type": "string",
            "description": "Keep only products whose brand name contains this text. An exact brand match is also sent to the site's brand facet to reduce downloads.",
            "editor": "textfield"
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "integer",
            "description": "Only emit products with an average rating at least this high (1-5).",
            "minimum": 1,
            "maximum": 5
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "type": "number",
            "description": "Only emit products whose current price is at least this value.",
            "minimum": 0,
            "maximum": 1000000
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "type": "number",
            "description": "Only emit products whose current price is at or below this value.",
            "minimum": 0,
            "maximum": 1000000
          },
          "saleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only emit products currently flagged as on sale.",
            "default": false,
            "prefill": false
          },
          "availability": {
            "title": "Availability",
            "type": "string",
            "description": "Filter by how the product can be fulfilled.",
            "editor": "select",
            "enum": [
              "any",
              "pickup",
              "ship"
            ],
            "enumTitles": [
              "Any availability",
              "Free in-store pickup",
              "Ship to home"
            ],
            "default": "any",
            "prefill": "any"
          },
          "fitment": {
            "title": "Fitment",
            "type": "string",
            "description": "Filter by the site's fitment flag. Exact fit means the part is confirmed for the selected vehicle context; choose Any when no vehicle is selected.",
            "editor": "select",
            "enum": [
              "any",
              "exact",
              "notFitted"
            ],
            "enumTitles": [
              "Any fitment",
              "Exact fit",
              "Not fitted"
            ],
            "default": "any",
            "prefill": "any"
          },
          "vehicleType": {
            "title": "Vehicle type (optional vehicle fitment)",
            "type": "string",
            "description": "Vehicle type used with the year/make/model fields.",
            "editor": "select",
            "enum": [
              "car",
              "motorcycle"
            ],
            "enumTitles": [
              "Car / truck",
              "Motorcycle"
            ],
            "default": "car",
            "prefill": "car"
          },
          "vehicleYear": {
            "title": "Vehicle year",
            "type": "string",
            "description": "Optional vehicle year (e.g. 2020). Fill year, make, and model together to make fitmentStatus vehicle-specific and to use the exact-fit filter.",
            "editor": "textfield"
          },
          "vehicleMake": {
            "title": "Vehicle make",
            "type": "string",
            "description": "Optional vehicle make (e.g. Toyota).",
            "editor": "textfield"
          },
          "vehicleModel": {
            "title": "Vehicle model",
            "type": "string",
            "description": "Optional vehicle model (e.g. Camry LE).",
            "editor": "textfield"
          },
          "vehicleEngine": {
            "title": "Vehicle engine (optional)",
            "type": "string",
            "description": "Optional engine text to disambiguate multiple engines for the same model (e.g. 2.5L). The first match is used when omitted.",
            "editor": "textfield"
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Order of emitted records, using the site's native sort orders.",
            "editor": "select",
            "enum": [
              "relevance",
              "most_popular",
              "rating_desc",
              "price_asc",
              "price_desc",
              "name_asc",
              "name_desc"
            ],
            "enumTitles": [
              "Best match",
              "Most popular",
              "Top rated",
              "Price: low to high",
              "Price: high to low",
              "Brand/name: A-Z",
              "Brand/name: Z-A"
            ],
            "default": "relevance",
            "prefill": "relevance"
          },
          "detailLevel": {
            "title": "Detail level",
            "type": "string",
            "description": "Overview uses one search response per 120 products. Full adds the site's list price, online stock, and (when a store ID is set) live store quantity.",
            "editor": "select",
            "enum": [
              "overview",
              "full"
            ],
            "enumTitles": [
              "Overview (fast)",
              "Full (price details and inventory)"
            ],
            "default": "overview",
            "prefill": "overview"
          },
          "storeId": {
            "title": "Store ID (detailLevel=full)",
            "type": "string",
            "description": "Optional Advance Auto Parts store ID. When set with detailLevel=full, each product includes that store's quantity and stock status. Leave blank to skip store calls.",
            "editor": "textfield"
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records. The source catalog is roughly 52,000 products in the largest category.",
            "minimum": 1,
            "maximum": 100000,
            "default": 100,
            "prefill": 3
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Advance Auto Parts Fitment & Price Drop Tracker Output",
        "description": "Dataset of Advance Auto Parts products or category-tree entries with pricing, list price, fitment, specifications, media, and optional online/store inventory.",
        "properties": {
          "items": {
            "type": "string",
            "title": "Scraped records",
            "description": "Dataset containing all scraped records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Records",
              "transformation": {
                "fields": [
                  "sourceUrl",
                  "recordType",
                  "name",
                  "scrapedAt",
                  "price",
                  "listPrice",
                  "onSale",
                  "onlineInStock",
                  "storeQuantity",
                  "brand",
                  "categoryPath"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}