# Advance Auto Parts Fitment & Price Drop Tracker (`vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker`) Actor

Browse Advance Auto Parts categories or fetch specific product pages for pricing, sale status, fitment confirmation, ratings, and images. Filter by brand, rating, price, or sale status.

- **URL**: https://apify.com/vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Advance Auto Parts Fitment & Price Drop Tracker

Pull 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.

### What this actor does

- **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.
- **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).
- **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.
- **Product URLs** — accepts canonical `…/12345-P` URLs and older `…/12345` URLs, plus links with tracking query strings.
- **Native sorting** — best match, most popular, top rated, price low/high, or brand A-Z/Z-A, applied by the site itself.
- **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.
- **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.
- **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.
- Empty fields are omitted at every depth. No `null`, no empty strings, no placeholder values.

### Output per product

Core identity and catalog:

- `skuId`, `partNumber`, `manufacturerCode`
- `name`, `brand`, `category`, `categoryPath`, `categoryPathIds`, `description`, `seoKeyword`
- `sourceUrl`, `recordType: "product"`, `scrapedAt`

Pricing:

- `regularPrice`, `salePrice`, `currency`
- `listPrice` (full mode)
- `onSale`, `priceDrop`
- `coreCharge` when the part has a refundable core

Fitment and ratings:

- `fitmentStatus`, `isFitted`, `fitmentApplicationDescriptions`
- `vehicleId`, `vehicleYear`, `vehicleMake`, `vehicleModel`, `vehicleEngine` when a vehicle is selected
- `averageRating`, `reviewAverageScore`, `reviewsCount`
- `ratingHistogram`, `recommendationScore` (URL fallback)

Physical and handling:

- `warranty`, `hazmat`, `shippable`, `storePickable`, `factoryDirectOrderable`, `excludedFromPromotions`
- `width`, `height`, `length`, `weight`
- `specifications` — key/value spec table

Media and availability:

- `imageUrls[]`, `image`, `thumbnail` — deduplicated images, capped at 12
- `videos[]` (`url`, `thumbnail`, `title`, `type`), `video` — first video URL
- `availability`, `condition` — from the product page's structured data
- `onlineInStock`, `onlineQuantity` (full mode)
- `storeId`, `storeQuantity`, `storeStockStatus` (full mode with `storeId`)

Category-tree records (`mode=browseCategoryTree`):

- `categoryId`, `categoryGroupId`, `name`, `categoryUrl`, `sourceUrl`
- `categoryLevel`, `parentCategoryId`, `parentCategoryGroupId`, `parentName`, `childCount`
- `recordType: "category"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `browseByCategory` | `browseByCategory`, `browseByCategoryId`, `browseCategoryTree`, `searchByKeyword`, or `byUrl`. |
| `category` | string | `braking` | One of 35 top-level categories (mode `browseByCategory`). |
| `categoryIds` | array | `[]` | Numeric category IDs or full category URLs (mode `browseByCategoryId`). |
| `searchQueries` | array | `[]` | Keywords or part numbers (mode `searchByKeyword`). |
| `interchangePartNumber` | string | – | Find parts that interchange with this part number. Replaces free-text queries when set. |
| `urls` | array | `[]` | Product URLs (mode `byUrl`). Canonical `-P` and older URLs both work. |
| `brand` | string | – | Keep brands whose name contains this text. |
| `minRating` | integer | – | Minimum average rating (1–5). |
| `minPrice` | number | – | Minimum current price in USD. |
| `maxPrice` | number | – | Maximum current price in USD. |
| `saleOnly` | boolean | `false` | Keep only products flagged on sale. |
| `availability` | string | `any` | `any`, `pickup` (free in-store pickup), or `ship` (ship to home). |
| `fitment` | string | `any` | `any`, `exact`, or `notFitted`. |
| `vehicleType` | string | `car` | `car` or `motorcycle` for optional vehicle fitment. |
| `vehicleYear` | string | – | Vehicle year (e.g. `2020`). Use with make and model. |
| `vehicleMake` | string | – | Vehicle make (e.g. `Toyota`). |
| `vehicleModel` | string | – | Vehicle model (e.g. `Camry LE`). |
| `vehicleEngine` | string | – | Optional engine text to disambiguate multiple engines. |
| `sort` | string | `relevance` | `relevance`, `most_popular`, `rating_desc`, `price_asc`, `price_desc`, `name_asc`, `name_desc`. |
| `detailLevel` | string | `overview` | `overview` (fast search data) or `full` (list price, online stock, store stock). |
| `storeId` | string | – | Optional store ID for live store quantity in full mode. |
| `maxItems` | integer | `100` | Hard cap on emitted records (1–100,000). |

#### Example: batteries on sale, cheapest first

```json
{
  "mode": "browseByCategory",
  "category": "batteries-and-chargers",
  "saleOnly": true,
  "maxPrice": 250,
  "sort": "price_asc",
  "maxItems": 200
}
```

#### Example: search several part numbers at once

```json
{
  "mode": "searchByKeyword",
  "searchQueries": ["H6-AGM", "YH145305", "PT2298"],
  "detailLevel": "full",
  "storeId": "8880",
  "maxItems": 50
}
```

#### Example: browse a category by URL or ID

```json
{
  "mode": "browseByCategoryId",
  "categoryIds": [
    "https://shop.advanceautoparts.com/c2/brake-pads-and-shoes/81637",
    "81639"
  ],
  "maxItems": 500
}
```

#### Example: brake pads that fit a 2020 Toyota Camry LE

```json
{
  "mode": "searchByKeyword",
  "searchQueries": ["brake pads"],
  "vehicleYear": "2020",
  "vehicleMake": "Toyota",
  "vehicleModel": "Camry LE",
  "fitment": "exact",
  "maxItems": 50
}
```

#### Example: fetch exact product URLs

```json
{
  "mode": "byUrl",
  "urls": [
    "https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P"
  ],
  "detailLevel": "full"
}
```

### Use cases

- **Price monitoring** — track regular, sale, and list prices across a category or a fixed set of SKUs.
- **Price-drop tracking** — use `onSale`, `priceDrop`, `regularPrice`, `salePrice`, and `listPrice` to find real markdowns.
- **Assortment analytics** — compare brands, ratings, fitment coverage, core charges, and specifications inside a category.
- **Parts catalog building** — collect part numbers, interchange searches, specifications, dimensions, images, and videos.
- **Local availability** — check online and per-store quantity for a chosen store before a purchase.
- **Site mapping** — dump the category tree with parent/child links before targeting specific groups.

### FAQ

**Do I need a proxy or API key?**
No. The actor talks to the same product-search routes the site uses, with no login, cookies, or proxy configuration.

**Why does the first page return more products than older versions?**
The 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`.

**What is the difference between `overview` and `full`?**
`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.

**Does `minRating` match the site's star filter exactly?**
The 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.

**Can I filter by vehicle (year/make/model)?**
Yes. 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.

**Why are some fields missing on some products?**
Fields are emitted only when the source publishes them. A part with no published weight or warranty simply omits that key.

**Are images and videos hotlink protected?**
They 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.

**Is this affiliated with Advance Auto Parts?**
No. This is an independent third-party actor and is not affiliated with Advance Auto Parts.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `category` (type: `string`):

Browse every product in this top-level category, including all subcategories.

## `categoryIds` (type: `array`):

Paste numeric category IDs (e.g. 81637) or full category URLs. Each category is fetched with full pagination.

## `searchQueries` (type: `array`):

Free-text searches: part names, brands, part numbers, or interchange numbers. One query per item; results are merged and deduplicated.

## `interchangePartNumber` (type: `string`):

Find parts that interchange with this part number. When set, this replaces the free-text queries and searches the site's interchange index.

## `urls` (type: `array`):

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.

## `brand` (type: `string`):

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.

## `minRating` (type: `integer`):

Only emit products with an average rating at least this high (1-5).

## `minPrice` (type: `number`):

Only emit products whose current price is at least this value.

## `maxPrice` (type: `number`):

Only emit products whose current price is at or below this value.

## `saleOnly` (type: `boolean`):

Only emit products currently flagged as on sale.

## `availability` (type: `string`):

Filter by how the product can be fulfilled.

## `fitment` (type: `string`):

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.

## `vehicleType` (type: `string`):

Vehicle type used with the year/make/model fields.

## `vehicleYear` (type: `string`):

Optional vehicle year (e.g. 2020). Fill year, make, and model together to make fitmentStatus vehicle-specific and to use the exact-fit filter.

## `vehicleMake` (type: `string`):

Optional vehicle make (e.g. Toyota).

## `vehicleModel` (type: `string`):

Optional vehicle model (e.g. Camry LE).

## `vehicleEngine` (type: `string`):

Optional engine text to disambiguate multiple engines for the same model (e.g. 2.5L). The first match is used when omitted.

## `sort` (type: `string`):

Order of emitted records, using the site's native sort orders.

## `detailLevel` (type: `string`):

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.

## `storeId` (type: `string`):

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.

## `maxItems` (type: `integer`):

Hard cap on emitted records. The source catalog is roughly 52,000 products in the largest category.

## Actor input object example

```json
{
  "mode": "browseByCategory",
  "category": "braking",
  "categoryIds": [],
  "searchQueries": [],
  "urls": [],
  "saleOnly": false,
  "availability": "any",
  "fitment": "any",
  "vehicleType": "car",
  "sort": "relevance",
  "detailLevel": "overview",
  "maxItems": 3
}
```

# Actor output Schema

## `items` (type: `string`):

Dataset containing all scraped records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "browseByCategory",
    "category": "braking",
    "categoryIds": [],
    "searchQueries": [],
    "urls": [],
    "saleOnly": false,
    "availability": "any",
    "fitment": "any",
    "vehicleType": "car",
    "sort": "relevance",
    "detailLevel": "overview",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "browseByCategory",
    "category": "braking",
    "categoryIds": [],
    "searchQueries": [],
    "urls": [],
    "saleOnly": False,
    "availability": "any",
    "fitment": "any",
    "vehicleType": "car",
    "sort": "relevance",
    "detailLevel": "overview",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "browseByCategory",
  "category": "braking",
  "categoryIds": [],
  "searchQueries": [],
  "urls": [],
  "saleOnly": false,
  "availability": "any",
  "fitment": "any",
  "vehicleType": "car",
  "sort": "relevance",
  "detailLevel": "overview",
  "maxItems": 3
}' |
apify call vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/advance-auto-parts-fitment-and-price-drop-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hUciFSBKM9B09AUn9/builds/h2kycKRwNJp1MeYmg/openapi.json
