# RockAuto.com Scraper (`lexis-solutions/rockauto`) Actor

Scrape auto parts data from RockAuto.com - including part names, part numbers, prices, availability, and compatibility. Ideal for parts comparison, inventory management, and market research. Fast, structured, customizable extraction.

- **URL**: https://apify.com/lexis-solutions/rockauto.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 101 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$29.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## RockAuto Scraper Actor

![RockAuto Scraper](https://i.ibb.co/p6R3z9yG/rockauto-cover.png)

### Introduction

This Apify actor scrapes auto parts data from RockAuto’s online catalog (https://www.rockauto.com/). It uses RockAuto’s search engine and “moreinfo” pages to collect detailed information about parts, including descriptions, pricing, specifications, and media links.

### Key Features

- **Flexible start URLs**: Accepts either full search URLs or direct "moreinfo" page URLs
- **Search by part number & manufacturer**: Automatically constructs search queries when `partNumber` and `manufacturer` are provided
- **Catalog search by query**: Perform depth search in RockAuto's catalog using `catalogQuery` (format: `"Make Model Year PartName"`, e.g., `"toyota corolla 2013 brake"`)
- **Configurable item limit**: Control how many parts to scrape via `maxItems`
- **Detailed output schema**: Returns comprehensive fields such as title, description, brand info, image, videos, specs, price, and warranty
- **Proxy support**: Optionally route requests through Apify Proxy

### Why This Actor Is Important

RockAuto is a leading supplier of aftermarket auto parts, but does not provide a public API for bulk data access. This actor enables:

- **Automated data collection** for integration with inventory management or pricing comparison tools
- **Real-time part availability and pricing**
- **Rapid aggregation** of part specifications for analytics, e-commerce catalogs, or research

### Who This Actor Is Suitable For

- E-commerce platforms and marketplaces wanting to list or compare RockAuto parts
- Inventory management systems needing up-to-date parts data
- Auto repair shops and parts resellers automating procurement workflows
- Data analysts and researchers compiling automotive parts databases

### Input Schema

This actor supports three different input methods:

#### 1. Direct URLs (using `startUrls`)

Provide direct search or detail page URLs:

```json
{
  "startUrls": [
    {
      "url": "https://www.rockauto.com/en/partsearch/?mfr=3M&partnum=D1S"
    },
    {
      "url": "https://www.rockauto.com/en/moreinfo.php?pk=10673760&cc=0&pt=11701&jsn=3"
    }
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### 2. Part Search (using `partNumber` and `manufacturer`)

Search by specific part number and manufacturer:

```json
{
  "partNumber": "D1",
  "manufacturer": "AAE",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### 3. Catalog Search (using `catalogQuery`)

Perform depth search in RockAuto's catalog. The format should be:

```
"Make Model Year PartName"
```

```json
{
  "catalogQuery": "toyota corolla 2013 brake",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

**Catalog Query Examples:**

- `"toyota corolla 2013 brake"` - Searches for brake parts for a 2013 Toyota Corolla
- `"ford f150 2020 engine"` - Searches for engine parts for a 2020 Ford F-150
- `"honda civic 2015 transmission"` - Searches for transmission parts for a 2015 Honda Civic

The catalog search performs a multi-stage depth search:

1. Gets search suggestions based on the query
2. Finds matching part groups
3. Expands each group to find all available parts
4. Extracts detailed information for each part

***

### Output schema

```json
{
  "id": "12397429",
  "url": "https://www.rockauto.com/en/moreinfo.php?pk=12397429&cc=0&pt=741",
  "title": "3D - L1BC0233150",
  "description": "KAGU Triple Layer Design",
  "brandName": "3D",
  "brandLogo": "https://www.rockauto.com/logos/3DLogo.png",
  "brandUrl": "https://www.3dmatsusa.com/",
  "primaryImageUrl": "https://www.rockauto.com/info/1122/L1BC02331509_v1_20140911.jpg",
  "features": "Innovative three-layer structure is engineered to protect the interior of your vehiclePatented MAXpider Bottom Layer keeps mats in place without harming original carpet, unlike Velcro, and does not leave nib marks like traditional rubber floor matsSoft foam XPE inner layer minimizes foot fatigue and provides sound barrier for a quieter rideSurface layer made of Thermoplastic Rubber in a sleek carbon fiber texture design, to enhance the style and elegance of your vehicleThree dimensional design measured to exact cabin contours of your vehicle Raised edges give maximum coverage and protectionWaterproof to effectively contain messes and spillsRetains its shape - will not curl over time!",
  "price": 45.79,
  "currency": "$",
  "partNumber": "L1BC0233150",
  "warranty": "Warranty Information:3 Years",
  "videos": [
    "https://www.youtube.com/embed/L9PsUN6BIYI?rel=0",
    "https://www.youtube.com/embed/b3CbrMDHV78?rel=0"
  ],
  "specs": [
    {
      "label": "Exterior Finish",
      "value": "Carbon Fiber Embossed Pattern"
    },
    {
      "label": "Material",
      "value": "Kagu Rubber"
    },
    {
      "label": "Non Slip Backing",
      "value": "Yes"
    },
    {
      "label": "Style",
      "value": "Molded"
    }
  ],
  "langUsed": "en",
  "isPopularBrand": false,
  "category": "Fully Coated (Maximum Protection For Rust Prone Areas)",
  "engine": "1.8l l4", // supported by catalog search only
  "treeBreakdown": [
    // supported by catalog search only
    "toyota",
    "2013",
    "corolla",
    "1.8l l4",
    "brake & wheel hub",
    "drum"
  ]
}
```

- `engine` is populated only when the request originates from a catalog search flow.
- `treeBreakdown` is populated only when the request originates from a catalog search flow.

***

👀 p.s.

Got feedback or need an extension?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

Image Credit: https://www.rockauto.com/

# Actor input Schema

## `startUrls` (type: `array`):

URLs to scrape

## `partNumber` (type: `string`):

Part number to search for

## `manufacturer` (type: `string`):

Select part manufacturer

## `catalogQuery` (type: `string`):

Catalog query in this format `Make Model Year PartName`, e.g. 'toyota corolla 2013 brake'

## `language` (type: `string`):

Choose the language to use for both input and output processing.

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

The maximum number of items to fetch

## `proxyConfiguration` (type: `object`):

Your proxy configuration from Apify

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.rockauto.com/en/partsearch/?mfr=AAE&partnum=%2A96%2A"
    }
  ],
  "language": "en",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.rockauto.com/en/partsearch/?mfr=AAE&partnum=%2A96%2A"
        }
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/rockauto").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 = {
    "startUrls": [{ "url": "https://www.rockauto.com/en/partsearch/?mfr=AAE&partnum=%2A96%2A" }],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/rockauto").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 '{
  "startUrls": [
    {
      "url": "https://www.rockauto.com/en/partsearch/?mfr=AAE&partnum=%2A96%2A"
    }
  ],
  "maxItems": 20
}' |
apify call lexis-solutions/rockauto --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/rockauto"
        }
    }
}

```

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/aljuahqih44TI4X3P/builds/WYeeIXux62BBr0j7v/openapi.json
