# SHEIN Scraper - Products, Prices, Discounts & Ratings (`abotapi/shein-product-scraper`) Actor

Scrape SHEIN product listings by keyword or from any category, sale or search link. Returns product ID, SKU, title, link, category, current price, genuine was-price and discount, star rating, review count, stock, flash-sale and clearance flags, and images. Nine regional storefronts.

- **URL**: https://apify.com/abotapi/shein-product-scraper.md
- **Developed by:** [Abot API](https://apify.com/abotapi) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 product 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/platform/actors/running/actors-in-store#pay-per-event

## 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

## SHEIN Scraper: Products, Prices, Discounts & Ratings

Scrape SHEIN product listings by keyword, or from any category, sale or search link you paste. Returns clean, structured product data including a **genuine was-price and discount**, not a guessed one.

Covers the Australian, Singapore and Canadian storefronts, each with its own catalogue and currency.

### What you get

Every product is one dataset row:

| Field | Description |
|---|---|
| `productId`, `sku`, `spu` | SHEIN's own identifiers |
| `title` | Product name |
| `url` | Direct link to the product page |
| `category`, `categoryId` | Category the product sits in |
| `price` | Current price |
| `originalPrice` | Was-price, **only present when the item is genuinely reduced** |
| `discountPercent`, `discountAmount` | Discount size, only on reduced items |
| `isOnSale` | Whether the item is genuinely reduced |
| `currency`, `priceUsd` | Storefront currency symbol, plus a USD figure for cross-market comparison |
| `rating`, `reviewsCount` | Star rating and number of reviews |
| `inStock`, `stock` | Availability and remaining units |
| `isFlashSale`, `isClearance` | Promotion flags |
| `hasVideo` | Whether the listing has a video |
| `image`, `images` | Primary image and the full image list |
| `storeCode`, `mallCode` | Seller/marketplace identifiers |
| `scrapedAt` | UTC timestamp of collection |

#### On the was-price

Most listings show the same value for retail and sale price, meaning the item is **not** discounted. This scraper leaves `originalPrice`, `discountPercent` and `discountAmount` empty in that case rather than echoing the current price back as a "was" price. When a discount is real, all three are populated. So `isOnSale` is a reliable filter.

### Input

#### Search by keyword

```json
{
  "mode": "search",
  "queries": ["summer dress", "wide leg jeans"],
  "storefront": "au",
  "maxItems": 200
}
```

#### Scrape URLs

Paste category, sale or search links:

```json
{
  "mode": "url",
  "urls": ["https://au.shein.com/RecommendSelection/Women-Clothing-sc-017172961.html"],
  "storefront": "au",
  "maxItems": 500
}
```

#### Options

| Option | Default | Notes |
|---|---|---|
| `mode` | `search` | `search` (by keyword) or `url` (paste links) |
| `queries` | (none) | Keywords, one per line. Search mode only |
| `urls` | (none) | Listing links, one per line. URL mode only |
| `storefront` | `au` | `au`, `sg`, `ca` |
| `sortBy` | `relevance` | Site default, price, rating, reviews or biggest discount |
| `minPrice`, `maxPrice` | (none) | Price range, in the storefront's currency |
| `minRating` | (none) | Minimum stars. Unrated products are excluded when set |
| `onSaleOnly` | `false` | Only genuinely reduced products |
| `includeOutOfStock` | `true` | Turn off to return only what is available |
| `maxItems` | `20` | Total cap across all keywords and links. `0` means no limit |
| `maxPages` | `0` | Listing pages per keyword or link. `0` means no limit |
| `resumeFromRunId` | (none) | Continue an interrupted run, skipping what it already returned |
| `incrementalMode` | `false` | Recurring runs return only new and changed products |
| `stateKey` | (none) | Name the saved state; derived from the search when empty |
| `emitUnchanged` | `false` | Also return unchanged products in incremental mode |
| `emitExpired` | `false` | Also return products that have disappeared |
| `proxy` | Apify proxy | Connection used to reach the site |
| `mcpConnectors` | (none) | Optionally pipe results into Notion, Linear, Airtable |

Filters apply to **both** modes, so a pasted category link can be narrowed the same way a keyword search can.

### Recurring runs and resuming

Turn on `incrementalMode` and every run after the first returns only what is **new or changed**, each row carrying `changeType`, `changedFields`, `firstSeenAt` and `lastSeenAt`. Set `emitUnchanged` to get everything each time, or `emitExpired` to be told when a product disappears.

Category and sale pages are recommendation feeds, so the products SHEIN shows rotate between visits. Expect some products to be reported as new on each run simply because the feed surfaced them this time. Price changes, by contrast, are real: SHEIN moves promotional prices frequently, and those show up as updates with `price` in `changedFields`.

Delisted products are only reported when a run reads a listing all the way through. If a run stops at `maxItems`, it cannot tell "gone" from "not reached yet", so it says nothing rather than guessing.

If a run is interrupted, pass its run ID as `resumeFromRunId` and the next run skips whatever it already returned.

### Send results into your apps (MCP connectors)

Authorize a connector under Apify, Settings, API & Integrations, then pick it in `mcpConnectors`. Notion also needs `notionParentPageUrl`. Each product is written as a readable summary; the complete record always stays in the Apify dataset. A connector problem never fails the run or changes the dataset.

### How deep can it go?

Each listing link yields up to **120 products**, which is one full page of SHEIN's own results. To collect more, pass more links: run several categories, sale pages or searches together and the totals add up, deduplicated by product.

A large category holds far more than 120 products, and this scraper does not currently walk past the first page of one. If you need deeper coverage of a single category, split it into narrower sub-categories or searches and pass those as separate links.

### Pricing

Pay per result: you are charged for each product returned, plus a one-off start fee. You are not charged for duplicates: products already returned in the same run are filtered before billing.

### Notes and limits

- There is no full-detail mode. A product's own page carries more (attributes, size and colour options, seller, the full image set), but the site serves only **one product page per session**, so fetching details would cost a fresh session per product, around 130 times the price of a listing result. Rather than ship a paid option that fails four times in five, it is left out. Everything listed above comes from the listing itself.

- Results reflect what the chosen storefront shows for that region. Prices, availability and the catalogue itself differ between storefronts.

- A keyword search returns SHEIN's own ranked results, so ordering can shift between runs.

- If a listing is temporarily unavailable, the run finishes with whatever it collected and says so in the log rather than failing outright.

# Actor input Schema

## `mode` (type: `string`):

Choose 'Search by keyword' to scrape search results, or 'Scrape URLs' to paste category, sale or search links directly.

## `queries` (type: `array`):

One keyword per line, for example 'summer dress'. Applies when Mode is 'Search by keyword'.

## `urls` (type: `array`):

Paste category, sale or search links, one per line. Each link returns up to 120 products, so paste several to collect more. Applies when Mode is 'Scrape URLs'.

## `storefront` (type: `string`):

Which regional storefront to read. This sets the catalogue, language and currency of the results.

## `sortBy` (type: `string`):

How the returned products are ordered. 'Site default' keeps SHEIN's own ranking.

## `minPrice` (type: `integer`):

Only return products at or above this price, in the storefront's own currency.

## `maxPrice` (type: `integer`):

Only return products at or below this price, in the storefront's own currency.

## `minRating` (type: `integer`):

Only return products rated at least this many stars. Products with no rating yet are excluded when this is set.

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

Only return products that are genuinely reduced, meaning the was-price is higher than the current price.

## `includeOutOfStock` (type: `boolean`):

Keep products that are sold out. Turn off to return only products currently available.

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

Stop after this many products in total, across all keywords or URLs. Set 0 for no limit.

## `maxPages` (type: `integer`):

How many listing pages to read for each keyword or URL. Set 0 for no limit.

## `resumeFromRunId` (type: `string`):

Continue an interrupted run: paste its run ID and products it already returned are skipped.

## `incrementalMode` (type: `boolean`):

For recurring runs of the same search: remembers what was seen last time and returns only new and changed products.

## `stateKey` (type: `string`):

Name the saved state used by incremental mode. Leave empty to derive one from the search itself.

## `emitUnchanged` (type: `boolean`):

In incremental mode, also return products whose details have not changed since the last run.

## `emitExpired` (type: `boolean`):

In incremental mode, also return products that were seen before but have now disappeared from the listing.

## `proxy` (type: `object`):

Connection used to reach the site. The default works for most runs.

## `mcpConnectors` (type: `array`):

Optionally send results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize one under Apify, Settings, API & Integrations, then select it here. Notion gets a page per product; other connectors get a best-effort write. Leave empty to skip. Never changes the dataset output.

## `notionParentPageUrl` (type: `string`):

URL or id of the Notion page under which product pages are created. Required to enable the Notion export; ignored by other connectors.

## `maxNotifyListings` (type: `integer`):

Cap on products written to each connector per run. Does not affect the dataset.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "summer dress"
  ],
  "urls": [
    "https://au.shein.com/RecommendSelection/Women-Clothing-sc-017172961.html"
  ],
  "storefront": "au",
  "sortBy": "relevance",
  "onSaleOnly": false,
  "includeOutOfStock": true,
  "maxItems": 20,
  "maxPages": 0,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxNotifyListings": 50
}
```

# 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 = {
    "queries": [
        "summer dress"
    ],
    "urls": [
        "https://au.shein.com/RecommendSelection/Women-Clothing-sc-017172961.html"
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/shein-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 = {
    "queries": ["summer dress"],
    "urls": ["https://au.shein.com/RecommendSelection/Women-Clothing-sc-017172961.html"],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/shein-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 '{
  "queries": [
    "summer dress"
  ],
  "urls": [
    "https://au.shein.com/RecommendSelection/Women-Clothing-sc-017172961.html"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call abotapi/shein-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abotapi/shein-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/H0iCIuDTcWMbCwgt1/builds/mZRmGpOUT0mTXJIuY/openapi.json
