# Ralph Lauren Scraper (`aboo.script/ralphlauren-scraper`) Actor

Ralph Lauren scraper that works on PerimeterX-protected pages. No login, no API key. Scrape ralphlauren.com (US) and ralphlauren.ca (Canada) products from category, search or product URLs: prices, sale prices, colors, sizes with stock, materials, details, images and ratings.

- **URL**: https://apify.com/aboo.script/ralphlauren-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 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.
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

## Ralph Lauren Scraper

![Ralph Lauren Scraper](https://i.ibb.co/7xQqcw4K/ralphlauren-banner.png)

**Ralph Lauren Scraper** extracts product data from the official [Ralph Lauren](https://www.ralphlauren.com/) online store into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a Ralph Lauren category, search, or product URL, or type a few keywords, and get the name, item number, price, sale price, colors, sizes with availability, materials, details, images, and ratings of every product. Works on the United States and Canada stores, with no account or login required.

### Introduction

[Ralph Lauren](https://www.ralphlauren.com/) is the American luxury fashion house behind Polo Ralph Lauren, Purple Label, Lauren Ralph Lauren, RRL, and Ralph Lauren Home. Its online store lists clothing, shoes, bags, accessories, kids' wear, and home decor with prices, colors, and sizes, which makes it a useful reference for fashion analysts, retailers, resellers, and brand watchers.

This actor collects the same public product information you see in your browser and turns it into a ready-to-use dataset. It works on pages protected by PerimeterX. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from Ralph Lauren?

- 🏷️ Product name, product ID, item number, brand line (Polo Ralph Lauren, Purple Label, RLX, ...) and category path
- 💲 Price, original price and sale flag for marked-down items, price range when colors have different prices, and currency
- 📦 Availability of the product and of each size
- 🎨 Selected color and every color option, with its own link, price, availability, and image when the store shows them
- 📏 Sizes of the selected color, with an available flag for each size
- 🧵 Description, full list of product details (fit, measurements, care) and material composition
- 🖼️ Image gallery and product video
- ⭐ Average rating and number of reviews
- 🌎 Store market (United States or Canada)

### Use Cases

- 📈 **Market research**: follow Ralph Lauren collections, new arrivals, and price points across product lines.
- 🕵️ **Price and stock monitoring**: track markdowns, sale prices, sold out sizes, and items that come back in stock.
- 🛍️ **Retail and resale**: build product sheets with item numbers, materials, colors, sizes, and images.
- 🌎 **Cross-border pricing**: compare US and Canadian prices for the same products.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Ralph Lauren step by step

1. Paste one or more Ralph Lauren URLs into **Start URLs**, or type keywords into **Search queries**.
2. Set **Max results** to how many products you want per URL or per query.
3. Keep the default **Proxy configuration** (residential).
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Ralph Lauren URLs from ralphlauren.com (United States) or ralphlauren.ca (Canada). Supported pages: category pages (for example `https://www.ralphlauren.com/men-clothing-sweaters` or `https://www.ralphlauren.com/women-sale`), search pages (such as `https://www.ralphlauren.com/search?q=cashmere`), and single product pages. Filters and sorting you apply on the website, and the page number, are kept. Prices and currency follow the store of the URL.
- **Search queries**: keywords to search on ralphlauren.com (United States), one per line, such as `polo shirt` or `cashmere sweater`. Each query is scraped separately.
- **Max results**: how many products to collect for each start URL or search query. Set `0` for no limit.
- **Proxy configuration**: residential proxies are required, because the store blocks datacenter IPs. If you do not choose a country, each store uses a proxy in its own country (United States or Canada), so prices and stock match that market.

You can use start URLs, search queries, or both in the same run.

### Input Examples

Scrape a Ralph Lauren category page and search by keyword:

```json
{
  "startUrls": [
    { "url": "https://www.ralphlauren.com/men-clothing-sweaters" }
  ],
  "searchQueries": ["polo shirt"],
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Scrape the Canadian women's sale page:

```json
{
  "startUrls": [
    { "url": "https://www.ralphlauren.ca/women-sale" }
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Output

Each product is saved as one item in the dataset. Here is an example of a single item (lists shortened):

```json
{
  "url": "https://www.ralphlauren.com/men-clothing-sweaters/cable-knit-quarter-zip-sweater/625234.html",
  "productId": "625234",
  "itemNumber": "625234",
  "name": "Cable-Knit Quarter-Zip Sweater",
  "brand": "Polo Ralph Lauren",
  "market": "US",
  "categories": [
    "Men",
    "Clothing",
    "Sweaters"
  ],
  "price": 185,
  "originalPrice": null,
  "priceMin": null,
  "priceMax": null,
  "currency": "USD",
  "onSale": false,
  "availability": "In Stock",
  "color": "Andover Cream",
  "colors": [
    {
      "name": "Andover Cream",
      "url": "https://www.ralphlauren.com/men-clothing-sweaters/cable-knit-quarter-zip-sweater/0045907383.html",
      "price": 185,
      "availability": "In Stock",
      "image": "https://dtcralphlauren.scene7.com/is/image/PoloGSI/s7-1450553_lifestyle"
    },
    {
      "name": "Camel Melange",
      "url": "https://www.ralphlauren.com/men-clothing-sweaters/cable-knit-quarter-zip-sweater/0045907664.html",
      "price": 185,
      "availability": "In Stock",
      "image": "https://dtcralphlauren.scene7.com/is/image/PoloGSI/s7-1450570_lifestyle"
    }
  ],
  "sizes": [
    {
      "size": "XS",
      "available": false
    },
    {
      "size": "S",
      "available": true
    },
    {
      "size": "M",
      "available": true
    }
  ],
  "description": "This quarter-zip sweater combines a wool-and-cashmere blend from Italy with our iconic cable-knit design.",
  "details": [
    "Regular Fit: wider at the chest while still maintaining a modern silhouette.",
    "Size medium has a 26.75\" body length (front and back), a 17.75\" shoulder, a 41.5\" chest, and a 25.5\" sleeve length.",
    "Rib-knit mockneck. Quarter-zip placket with a suede zipper pull. Zipper pull custom-developed with a “Polo” logo."
  ],
  "material": "90% wool, 10% cashmere.",
  "images": [
    "https://dtcralphlauren.scene7.com/is/image/PoloGSI/s7-1450553_alternate10",
    "https://dtcralphlauren.scene7.com/is/image/PoloGSI/s7-1450553_lifestyle"
  ],
  "videoUrl": "https://dtcralphlauren.scene7.com/is/content/PoloGSI/s7-1450553_rlvideo",
  "rating": 3.98,
  "reviewCount": 52
}
```

### Notes

- Only the United States (ralphlauren.com) and Canada (ralphlauren.ca) stores are supported. URLs from other Ralph Lauren country sites, and pages such as the cart, account, or store locator, are skipped with a warning.
- Landing pages such as `/men` or `/women` show editorial content instead of a product grid. Use a category page such as `/men-clothing` instead.
- Sizes and their availability are those of the color selected on the product page. Other colors are listed in `colors`.
- For some products the store only shows color names, so `url`, `price`, `availability`, and `image` inside `colors` are `null`.
- Made-to-order products (custom designs) have no catalog data and are skipped.
- `originalPrice` is filled only for marked-down products; `priceMin` and `priceMax` only when colors have different prices.
- Product pages are large, so runs take longer than on simple stores. Keep **Max results** small for quick checks.

### Why use the Ralph Lauren Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🛡️ **Works on PerimeterX-protected pages**: no blocked pages or empty results to deal with.
- 🎯 **Keeps your filters**: paste any category or search URL from your browser and get the same products you see there.
- 🎨 **Full product picture**: colors, sizes with availability, materials, details, images, video, and ratings in one row.
- 🧹 **Clean data**: prices are real numbers, availability is readable text, and descriptions are free of HTML.
- 💸 **Pay for what you need**: set a result limit per URL or query and keep every run small.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

You can set any number in **Max results**, or `0` for no limit. The actor keeps going until it reaches your limit or runs out of products in the category or search.

#### Do I need a Ralph Lauren account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Why is a residential proxy required?

The store blocks traffic from data centers. Residential proxies make the run look like a regular shopper in the United States or Canada and keep prices accurate for that market.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh prices and availability automatically.

#### Can I request a new feature or filter?

Yes. Right now the actor supports start URLs and search queries for the US and Canada stores. If you need other countries, filters, or inputs, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Ralph Lauren](https://www.ralphlauren.com/)

# Actor input Schema

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

Ralph Lauren category, search or product URLs from ralphlauren.com (United States) or ralphlauren.ca (Canada). Filters and sorting in the URL are kept.

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

Keywords to search on ralphlauren.com (United States), for example "cashmere sweater".

## `maxResults` (type: `integer`):

Maximum number of products per start URL or search query. Set 0 for no limit.

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

Residential proxy is required: the site blocks datacenter IPs. Without a chosen country, each storefront uses a proxy in its own country (United States or Canada) so prices and stock match that market.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.ralphlauren.com/men-clothing-sweaters"
    }
  ],
  "searchQueries": [
    "polo shirt"
  ],
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.ralphlauren.com/men-clothing-sweaters"
        }
    ],
    "searchQueries": [
        "polo shirt"
    ],
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/ralphlauren-scraper").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.ralphlauren.com/men-clothing-sweaters" }],
    "searchQueries": ["polo shirt"],
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/ralphlauren-scraper").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.ralphlauren.com/men-clothing-sweaters"
    }
  ],
  "searchQueries": [
    "polo shirt"
  ],
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call aboo.script/ralphlauren-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/ralphlauren-scraper"
        }
    }
}
```

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/KuUlUFCPuXHeW4p7n/builds/HLDYCovOUn1KpgCvA/openapi.json
