# OReillyAuto.com Scraper (`lexis-solutions/oreillyauto`) Actor

Scrape product data from OReillyAuto.com - including part names, SKUs, prices, availability, compatibility info, and images. Ideal for market research, price monitoring, and inventory analytics. Fast, structured, and customizable extraction.

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

## Pricing

from $1.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/running/actors-in-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

## 🛠️ O’Reilly Auto Scraper

![O'Reilly Auto Scraper](https://i.ibb.co/sJpTK9qb/oreillyauto-cover.png)

This actor is designed to scrape product listings and detailed item pages from OReillyAuto.com, one of the largest auto parts retailers in the U.S. Whether you're targeting search result pages, category listings, or individual product detail pages, this scraper extracts structured product information like title, brand, pricing, and specifications.

***

### 🚀 Key Features

- ✅ Extracts products from **search pages**, **categories**, and **direct product URLs**
- ✅ Retrieves **dynamic price data**, availability, brand, and fitment info
- ✅ Supports multiple start URLs (search queries, categories, or item pages)
- ✅ Full proxy support for stable and geo-aware scraping

***

### 👤 Who Is This Actor For?

This actor is perfect for:

- 🔧 **Auto part resellers** tracking market prices and availability
- 🧾 **eCommerce analysts** building databases of SKU information
- 🔍 **SEO professionals** researching content structure and metadata
- 🔄 **Price aggregators** collecting comparable offers
- 📦 **Inventory planners** validating brand and stock listings programmatically

***

### ❓ Why Is This Actor Important?

O’Reilly Auto Parts sells a massive catalog of vehicle parts and tools. Much of its data — such as dynamic pricing and real-time availability — is rendered on the client side and not easily accessible via simple HTTP requests. This actor:

- Extracts clean and structured data from **various entry points** (search/category/product)
- Saves you hours of manual data collection or reverse-engineering

***

### Tech Notes

- It is recommended to set the actor memory to at least 4GB to avoid performance issues.

***

### Input Schema

Here’s an example input you can pass to the actor:

```json
{
  "startUrls": [
    {
      "url": "https://www.oreillyauto.com/search?q=Slime+Chome&page=3"
    },
    {
      "url": "https://www.oreillyauto.com/shop/b/air-conditioning---heating/blend-door/e500a52c2f93"
    },
    {
      "url": "https://www.oreillyauto.com/detail/c/slime/slime-inner-tubes/sli0/30011"
    }
  ],
  "query": "Conductor",
  "enrich": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### `enrich` behavior

- **`enrich: false` (default)**: Scrapes **listing/search/category pages only** and outputs the data available there (title, price, image, basic specs shown in the listing). It **does not open product detail pages**, so fields like `description`, `brandInformation`, and full `images` will typically be `null` / empty.
- **`enrich: true`**: After collecting listing items, the actor **enqueues and visits each product detail page** and outputs the **fully enriched product object** (description, brand info, additional images/specs, etc.). This is **slower** and more likely to hit anti-bot protections without proxies, but gives the richest output.

### Output Schema

#### Example output (`enrich: false`)

```json
{
  "id": "716281000942",
  "mpn": "30011",
  "sku": null,
  "title": "Slime Inner Tubes",
  "url": "https://www.oreillyauto.com/detail/c/slime/slime-inner-tubes/sli0/30011",
  "type": "Product",
  "brand": null,
  "brandInformation": null,
  "price": 20.99,
  "manufacturer": null,
  "primaryImageUrl": "https://images.oreillyauto.com/parts/img/extralarge/sli/30011_front.jpg",
  "description": null,
  "descriptionHTML": null,
  "images": [
    "https://images.oreillyauto.com/parts/img/extralarge/sli/30011_front.jpg",
    null
  ],
  "line": "SLI",
  "specs": [
    { "key": "Material", "value": "Rubber" }
  ]
}
```

#### Example output (`enrich: true`)

```json
{
  "id": "716281000942",
  "mpn": "30011",
  "sku": "716281000942",
  "title": "Slime Inner Tubes",
  "description": "Upgrade from an inner tube to a Smart Tube and enjoy two years of flat tire protection. Smart Tube: An inner tube with Slime Inside. Seeks out and seals punctures up to 1/8 Inch. 6 Inch. Backed by the Slime Satisfaction Guarantee.",
  "descriptionHTML": "Tire Tube; 6 Inch; <p>Upgrade from an inner tube to a Smart Tube and enjoy two years of flat tire protection. Smart Tube: An inner tube with Slime Inside. Seeks out and seals punctures up to 1/8 Inch. 6 Inch. Backed by the Slime Satisfaction Guarantee.<\\/p>",
  "url": "https://www.oreillyauto.com/detail/c/slime/slime-inner-tubes/sli0/30011",
  "type": "Product",
  "brand": "Slime",
  "brandInformation": "The first bottles of Slime tire sealant were blended by hand with a power drill and a drywall blade in a garage on the Central Coast of California...",
  "price": 20.99,
  "manufacturer": "Slime",
  "primaryImageUrl": "https://images.oreillyauto.com/parts/img/extralarge/sli/30011_front.jpg",
  "images": [
    "https://images.oreillyauto.com/parts/img/extralarge/sli/30011_front.jpg",
    "https://images.oreillyauto.com/parts/img/extralarge/sli/30011_back.jpg"
  ],
  "line": "SLI",
  "specs": [
    { "key": "Material", "value": "Rubber" },
    { "key": "Rim Diameter (in)", "value": "6 Inch" }
  ]
}
```

***

👀 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: OReillyAuto.com

# Actor input Schema

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

URLs to scrape

## `query` (type: `string`):

Query to search for products in OreillyAuto

## `enrich` (type: `boolean`):

Whether to enrich the detail page with additional information. Will slow down the scraping process.

## `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.oreillyauto.com/search?q=conductor"
    }
  ],
  "query": "Conductor",
  "enrich": false,
  "maxItems": 10,
  "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.oreillyauto.com/search?q=conductor"
        }
    ],
    "query": "Conductor",
    "enrich": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/oreillyauto").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.oreillyauto.com/search?q=conductor" }],
    "query": "Conductor",
    "enrich": False,
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/oreillyauto").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.oreillyauto.com/search?q=conductor"
    }
  ],
  "query": "Conductor",
  "enrich": false
}' |
apify call lexis-solutions/oreillyauto --silent --output-dataset

```

## MCP server setup

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

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/7hTdarxtK1cvGJZSE/builds/bAxVIIxYho1fFCPbW/openapi.json
