# Ralph Lauren Product Scraper (`axlymxp/ralphlauren-product-scraper`) Actor

Scrape Ralph Lauren products from the US or Canada store: price, sale flag, promotions, rating, colors, sizes and stock, plus per-variant UPC/EAN and stock levels. Search by keyword, category, product IDs or the full catalog. Pay only for results.

- **URL**: https://apify.com/axlymxp/ralphlauren-product-scraper.md
- **Developed by:** [axly](https://apify.com/axlymxp) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 dataset items

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/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 Product Scraper

Export Ralph Lauren's online catalog as clean JSON: prices, sale status, active promotions, ratings, colors and sizes in
stock, stock levels and, optionally, every variant with its **UPC/EAN barcode and stock count**. Search by keyword, pick
categories, paste product IDs or URLs, or export the **full catalog** of the US or Canada store.

Built for resellers and price-comparison sites tracking Ralph Lauren prices, brand and retail analysts watching
assortment, markdowns and stock-outs, and marketplaces that need to match products by barcode.

### What you get

| Field | Description |
| --- | --- |
| `productId` | Ralph Lauren product id (e.g. `583006`) |
| `name`, `brand` | Product name and label (Polo Ralph Lauren, Purple Label, RLX, Big & Tall, ...) |
| `price`, `priceMax`, `currency` | Lowest and highest current price across colors and sizes |
| `onSale`, `promotions`, `badge` | Sale flag, active promotion callouts (e.g. "ENJOY 30% OFF"), product badge |
| `rating`, `reviewCount`, `fitRating` | Customer rating, number of reviews, fit rating |
| `category`, `productType`, `fit`, `fabric`, `tags` | Merchandising attributes |
| `description`, `details` | Product copy and bullet-point details (size measurements, materials) |
| `colors`, `colorsInStock`, `sizes`, `sizesInStock` | Every color/size and the ones currently orderable |
| `variantCount`, `orderable`, `stockLevel` | Number of variants, orderable flag, units available (capped at 99 by Ralph Lauren) |
| `mainImage`, `images` | Product images (Scene7 CDN) |
| `variants` | With **Include variant details**: `variantId`, `color`, `size`, `price`, `orderable`, `stockLevel`, `upc`, `ean` |
| `colorImages` | With **Include variant details**: the image gallery for each color |
| `country`, `source`, `scrapedAt` | Store, which input produced the row, UTC timestamp |

### Use cases

- **Price monitoring and markdown tracking**: schedule a daily run on a category and catch price drops and new
  promotions as they happen.
- **Reselling and marketplace matching**: map Ralph Lauren items to your listings by UPC/EAN, size and color.
- **Stock-out and assortment analysis**: see which sizes and colors sell out, and how many styles each label carries.
- **Competitive research**: compare Ralph Lauren's pricing with other premium brands on the same schedule.

### Input

| Field | What it does |
| --- | --- |
| `searchQueries` | Keywords, each searched separately (e.g. `oxford shirt`, `cable knit sweater`) |
| `categories` | Category ids or URLs, e.g. `men-clothing-polo-shirts`, `women-clothing-dresses`, `https://www.ralphlauren.com/men-clothing-sweaters`; top level: `men`, `women`, `kids`, `home`, `sale` |
| `productIds` | Product ids or product page URLs ending in `<id>.html`; product sets are expanded into their member products |
| `scrapeFullCatalog` | Walk every product in the store (about 9,000-10,000 in the US) |
| `country` | `US` (USD) or `CA` (CAD) |
| `sort` | `best-sellers`, `new-arrivals`, `price-low`, `price-high`, `top-rated` |
| `onSaleOnly` | Only sale items |
| `brands` | Label filter, exact names: `Polo Ralph Lauren`, `Purple Label`, `RLX`, `Big & Tall`, ... |
| `includeVariantDetails` | Add per-variant price, UPC/EAN, stock and per-color images (slower) |
| `maxItems` | Maximum products in total; `0` = no limit |
| `proxyConfiguration` | Apify Proxy (on by default; needed for large runs) |

Example input:

```json
{
    "categories": ["men-clothing-polo-shirts"],
    "onSaleOnly": true,
    "includeVariantDetails": true,
    "maxItems": 50,
    "proxyConfiguration": {"useApifyProxy": true}
}
```

Example output row (trimmed):

```json
{
    "productId": "100007278",
    "name": "Custom Slim Fit Stretch Mesh Polo Shirt",
    "brand": "Polo Ralph Lauren",
    "price": 89.99,
    "priceMax": 118.0,
    "currency": "USD",
    "onSale": true,
    "promotions": [
        "ENJOY 30% OFF"
    ],
    "rating": null,
    "reviewCount": null,
    "category": "men-clothing-polo-shirts",
    "fit": "CUSTOM SLIM",
    "fabric": [
        "Mesh"
    ],
    "colorsInStock": [
        "White",
        "Pale Cream",
        "Andover Heather"
    ],
    "sizesInStock": [
        "XS",
        "S",
        "M",
        "L",
        "XL",
        "XXL"
    ],
    "stockLevel": 99,
    "variants": [
        {
            "variantId": "0077532463",
            "color": "White",
            "size": "L",
            "price": 118.0,
            "orderable": true,
            "stockLevel": 99,
            "upc": "197748514200",
            "ean": "3616536207102"
        }
    ],
    "country": "US",
    "scrapedAt": "2026-11-09T03:30:03Z"
}
```

### Scheduling and integrations

Run it on an Apify schedule (for example daily at 06:00) and send new results to Google Sheets, Slack, a webhook or your
own database through Apify integrations. The run resumes where it stopped if it is interrupted, without duplicate rows.

### Use with AI assistants (MCP)

The actor can be called from Claude, ChatGPT and other MCP clients through the Apify MCP server
(`https://mcp.apify.com`): ask for "Ralph Lauren polo shirts on sale in size M" and the assistant runs the actor and reads
the dataset.

### FAQ

**How fresh is the data?** Every run reads the live store, so prices, promotions and stock are current at run time.

**Why is stock capped at 99?** Ralph Lauren reports at most 99 available units per item. Lower numbers are exact, so
low-stock and sold-out sizes are visible.

**Does it get review texts?** No. It returns the rating, review count and fit rating for each product.

**Which countries?** The United States and Canada stores. Other regions are not supported.

**Is a proxy required?** Small runs work without one. Ralph Lauren limits how many requests one IP can make, so for runs
of more than a few hundred products keep Apify Proxy enabled: the actor rotates sessions automatically.

**Is this legal?** The actor collects publicly visible product information (no personal data). Check that your use
complies with Ralph Lauren's terms and the laws that apply to you.

# Actor input Schema

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

Keywords to search the Ralph Lauren catalog, e.g. 'oxford shirt' or 'cable knit sweater'. Each keyword is searched separately.

## `categories` (type: `array`):

Category ids or ralphlauren.com category URLs, e.g. 'men-clothing-polo-shirts', 'women-clothing-dresses' or 'https://www.ralphlauren.com/men-clothing-sweaters'. Top-level ids: men, women, kids, home, sale, gifts-holiday.

## `productIds` (type: `array`):

Ralph Lauren product ids (e.g. '583006', '401480-P') or product page URLs ending in '<id>.html'. Product sets ('-P' / '-C' ids) are expanded into their member products.

## `scrapeFullCatalog` (type: `boolean`):

Walk every product in the store (about 9,000-10,000 in the US). Combine with 'Max products' = 0 for a complete export.

## `country` (type: `string`):

Which Ralph Lauren online store to read: prices and stock differ per store.

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

Order of search and category results. Matters when 'Max products' cuts the list short.

## `onSaleOnly` (type: `boolean`):

Only return products marked as on sale.

## `brands` (type: `array`):

Optional label filter for search and category results, exact names as shown on the site, e.g. 'Polo Ralph Lauren', 'Purple Label', 'RLX', 'Big & Tall'.

## `includeVariantDetails` (type: `boolean`):

Adds a 'variants' list to each product: every color/size combination with its price, UPC/EAN barcode and stock level (capped at 99 by Ralph Lauren). Slower: about one extra request per 24 variants.

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

Maximum number of products to return in total. 0 = no limit. You are charged per product.

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

Ralph Lauren's bot protection limits each IP to roughly 100 requests per 10 minutes, so the actor rotates Apify Proxy sessions. Keep Apify Proxy on for runs above a few hundred products.

## Actor input object example

```json
{
  "searchQueries": [
    "polo shirt"
  ],
  "scrapeFullCatalog": false,
  "country": "US",
  "sort": "best-sellers",
  "onSaleOnly": false,
  "includeVariantDetails": false,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchQueries": [
        "polo shirt"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("axlymxp/ralphlauren-product-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 = {
    "searchQueries": ["polo shirt"],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("axlymxp/ralphlauren-product-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 '{
  "searchQueries": [
    "polo shirt"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call axlymxp/ralphlauren-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axlymxp/ralphlauren-product-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/vQnDxDJFGWthZamMJ/builds/91WTKkBFe1dyJs7ot/openapi.json
