# John Lewis Products Details Crawler (`alkausari_mujahid/john-lewis-products-details-crawler`) Actor

Extract full product details from John Lewis — prices, specs, images, descriptions, and weight-based cost addition — Automatically calls the John Lewis Listings Crawler to discover all variant URLs, then scrapes each one at speed using CheerioCrawler. Connect to Google Sheets or Make and Shopify.

- **URL**: https://apify.com/alkausari\_mujahid/john-lewis-products-details-crawler.md
- **Developed by:** [Alkausari M](https://apify.com/alkausari_mujahid) (community)
- **Categories:** E-commerce, Automation, Integrations
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## John Lewis Products Details Crawler/Scraper

Extract complete product details from any John Lewis listing or brand page — prices, specs, images, descriptions, size variants, and shipping cost estimates — delivered as **JSON or CSV**, ready to connect to Google Sheets or Make.

---

### Who Is This For?

- **Retailers & resellers** who need full product data to build listings on other platforms
- **Price monitoring tools** tracking current and previous prices across John Lewis ranges
- **E-commerce teams** building product feeds with specs, images, and category data
- **Dropshippers** who need weight-based shipping cost estimates alongside product prices

No coding required. Paste your listing URLs, add your Apify token, and get a complete dataset back.

---

### How It Works — Why Two Scrapers?

John Lewis listing pages load their product grids dynamically using JavaScript, which means a standard scraper cannot see the products without rendering the page in a real browser. To handle this efficiently, this Actor is split into two steps:

````

Step 1 — John Lewis Listings Crawler (Playwright)
↓  Renders listing pages in a real browser
↓  Collects every product and colour variant URL

Step 2 — John Lewis Products Details Crawler (CheerioCrawler) ← you are here
↓  Receives the variant URLs from Step 1
↓  Extracts full product details from each page at high speed
↓  Saves structured results to dataset

````

**You only need to configure this Actor.** It automatically calls the John Lewis Listings Crawler internally using your Apify token and Actor ID, collects all variant URLs, then scrapes each product detail page for you — all in a single run.

This split design means the detail extraction step uses the lightweight and fast **CheerioCrawler** (no browser overhead) while the dynamic listing discovery is handled correctly by Playwright where it's actually needed.

---

### Input

```json
{
  "actorID": "your-listings-actor-id",
  "apifyToken": "your-apify-token",
  "listingsUrls": [
    { "url": "https://www.johnlewis.com/brand/flexlux/_/N-pze9" }
  ],
  "lastPageNum": 5,
  "maxRequestsPerCrawl": 100,
  "pricePerKG": 9,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
````

| Field | Type | Required | Description |
|---|---|---|---|
| `actorID` | String | ✅ | The Apify Actor ID of the **John Lewis Listings Crawler** |
| `apifyToken` | String | ✅ | Your Apify API token — used to call the Listings Crawler internally |
| `listingsUrls` | Array | ✅ | One or more John Lewis category, brand, or search page URLs |
| `lastPageNum` | Number | ✅ | How many listing pages to crawl per URL |
| `maxRequestsPerCrawl` | Number | ❌ | Cap on total product detail pages to scrape |
| `pricePerKG` | Number | ❌ | Your shipping rate in £ per kg — used to calculate `weightPrice` and `finalPrice` |
| `proxyConfiguration` | Object | ✅ | Proxy settings — Apify Residential proxy strongly recommended |

**Tip:** You can add multiple brand or category URLs to `listingsUrls` to pull data from several ranges in one run.

***

### Output

Each row in the dataset is one fully detailed product variant:

```json
{
  "type": "product",
  "brand": "Apple",
  "color": "Midnight",
  "size": null,
  "name": "2026 Apple MacBook Air 13.6\", M5 Processor, 16GB RAM, 512GB SSD",
  "stockStatus": "In Stock",
  "previousPrice": null,
  "currentPrice": "£999.00",
  "promotions": null,
  "reviewsCount": "2 Reviews",
  "reviewsStars": "5.00 out of 5",
  "breadcrumbs": ["Homepage", "Electricals", "Laptops & MacBooks"],
  "categoryPath": "Homepage > Electricals > Laptops & MacBooks",
  "mainCategory": "Electricals",
  "subCategory": "Laptops & MacBooks",
  "images": [
    { "mediaContentType": "IMAGE", "originalSource": "https://media.johnlewiscontent.com/..." }
  ],
  "mainImage": "https://media.johnlewiscontent.com/...",
  "url": "https://www.johnlewis.com/.../midnight/p115096196",
  "productId": "115096196",
  "productCode": "86014610",
  "description": "MacBook Air with the M5 chip...",
  "descriptionHtml": "<p>MacBook Air with the M5 chip...</p>",
  "specifications": {
    "processor_type": "Apple M5",
    "memory_ram": "16GB",
    "screen_size_measured_diagonally": "13.60\"",
    "weight": "1.23 kg",
    "operating_system": "macOS",
    "guarantee": "2 year guarantee included"
  },
  "weight": { "unit": "kg", "value": 1.23 },
  "weightPrice": "£11.07",
  "finalPrice": 1010.07,
  "scrapedAt": "2026-04-11T16:47:23.363Z"
}
```

#### Full list of extracted fields

| Field | Description |
|---|---|
| `name` | Full product title |
| `brand` | Brand name |
| `color` | Colour variant |
| `size` | Size variant (if applicable) |
| `currentPrice` | Current selling price |
| `previousPrice` | Original price if on sale |
| `promotions` | Any active promotions |
| `stockStatus` | In Stock / Out of Stock |
| `reviewsCount` | Number of customer reviews |
| `reviewsStars` | Average star rating |
| `breadcrumbs` | Full category path as an array |
| `categoryPath` | Category path as a readable string |
| `mainCategory` | Top-level category |
| `subCategory` | Sub-category |
| `images` | All product images and video thumbnails |
| `mainImage` | Primary product image URL |
| `description` | Full description as plain text |
| `descriptionHtml` | Full description as HTML |
| `specifications` | All product specs as a key/value map |
| `productId` | John Lewis product ID |
| `productCode` | John Lewis product code |
| `weight` | Product weight with unit |
| `weightPrice` | Shipping cost estimate (`weight × pricePerKG`) |
| `finalPrice` | `currentPrice + weightPrice` combined |
| `url` | Full product variant URL |
| `scrapedAt` | Timestamp of when the record was scraped |

Results can be downloaded as **JSON** or **CSV** from the Apify dataset viewer.

***

### Integrations

- **Google Sheets** — send results automatically to a spreadsheet using the Apify Google Sheets integration
- **Make (Integromat)** — trigger workflows the moment a run completes to push data to any tool in your stack
- **Zapier** — connect to thousands of apps via the Apify Zapier integration
- **Direct download** — export as JSON or CSV from the Apify console at any time

***

### Notes

- Residential proxies are strongly recommended — John Lewis actively blocks datacenter IPs
- `weightPrice` and `finalPrice` are only calculated when `pricePerKG` is provided and the product page includes weight data
- This Actor requires the **John Lewis Listings Crawler** to be published and accessible in your Apify account
- Product specification field names reflect John Lewis's own attribute keys and may vary across categories

# Actor input Schema

## `listingsUrls` (type: `array`):

URLs to start with.

## `lastPageNum` (type: `integer`):

Last Page Number to Crawl

## `pricePerKG` (type: `integer`):

Enter a number that you want to set as price per kg. It will be applied to products weight if exist.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of requests that can be made by this crawler.

## `apifyToken` (type: `string`):

The APIFY Key of the account where the scraper is based

## `actorID` (type: `string`):

The ID of the actor which this script to call

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

Proxy settings to use during crawling.

## Actor input object example

```json
{
  "lastPageNum": 1,
  "pricePerKG": 5,
  "maxRequestsPerCrawl": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "proxyUrls": []
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "proxyUrls": []
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("alkausari_mujahid/john-lewis-products-details-crawler").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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "proxyUrls": [],
    } }

# Run the Actor and wait for it to finish
run = client.actor("alkausari_mujahid/john-lewis-products-details-crawler").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "proxyUrls": []
  }
}' |
apify call alkausari_mujahid/john-lewis-products-details-crawler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=alkausari_mujahid/john-lewis-products-details-crawler",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "John Lewis Products Details Crawler",
        "description": "Extract full product details from John Lewis — prices, specs, images, descriptions, and weight-based cost addition — Automatically calls the John Lewis Listings Crawler to discover all variant URLs, then scrapes each one at speed using CheerioCrawler. Connect to Google Sheets or Make and Shopify.",
        "version": "0.0",
        "x-build-id": "Gprbns3g34bKbuD0v"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/alkausari_mujahid~john-lewis-products-details-crawler/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-alkausari_mujahid-john-lewis-products-details-crawler",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/alkausari_mujahid~john-lewis-products-details-crawler/runs": {
            "post": {
                "operationId": "runs-sync-alkausari_mujahid-john-lewis-products-details-crawler",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/alkausari_mujahid~john-lewis-products-details-crawler/run-sync": {
            "post": {
                "operationId": "run-sync-alkausari_mujahid-john-lewis-products-details-crawler",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "listingsUrls": {
                        "title": "JL Products Listings URLs",
                        "type": "array",
                        "description": "URLs to start with.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "lastPageNum": {
                        "title": "Last Page Number to Crawl",
                        "type": "integer",
                        "description": "Last Page Number to Crawl",
                        "default": 1
                    },
                    "pricePerKG": {
                        "title": "Price per KG",
                        "type": "integer",
                        "description": "Enter a number that you want to set as price per kg. It will be applied to products weight if exist.",
                        "default": 5
                    },
                    "maxRequestsPerCrawl": {
                        "title": "Max Requests per Crawl",
                        "type": "integer",
                        "description": "Maximum number of requests that can be made by this crawler.",
                        "default": 100
                    },
                    "apifyToken": {
                        "title": "APIFY Token",
                        "type": "string",
                        "description": "The APIFY Key of the account where the scraper is based"
                    },
                    "actorID": {
                        "title": "Actor ID",
                        "type": "string",
                        "description": "The ID of the actor which this script to call"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings to use during crawling.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "proxyUrls": []
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
