# Shein Scraper: Products, Prices, Sizes & Stock (`memo23/shein-scraper`) Actor

Scrape Shein products by search term, product id or link in 15 stores: price, list price, discount, rating, reviews, fit, colours and store. Add every size with its own price and stock, colour variants, attributes and the size chart. Searches go thousands of products deep.

- **URL**: https://apify.com/memo23/shein-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 88.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 products

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

## Shein Scraper: Products, Prices, Sizes & Stock

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/UftwoAYARbgxJV3vP/records/logo" alt="Shein Scraper" width="140"></p>

**Shein products as clean rows, from search to every size.** Search Shein by keyword, or look up products by id or link in 15 stores, and get each product's price, list price, discount, rating, review count, fit feedback, colour count, store and category. US searches go thousands of products deep. Turn on full details for every size with its own price, stock and SKU, the price before promotions, colour variants, attributes such as fabric and neckline, the size chart and all images.

### Why Use This Scraper?

- **Deep US searches.** A keyword is read page after page, thousands of products deep, in Shein's order.
- **15 stores.** Product pages from the US, global, UK, Germany, France, Spain, Italy, the Netherlands, Poland, Portugal, Sweden, Türkiye, Saudi Arabia, the UAE and Kuwait, in each store's currency.
- **Every size priced.** Each size with its own price, list price, stock and SKU code.
- **Honest prices.** Shein tests different promotional prices on different shoppers; each row says whether the test discount is in the price, and gives the price before promotions that is the same for everyone.
- **Fit feedback.** The share of buyers who found it true to size, small or large.
- **Category search.** Keep a US search inside one Shein category.
- **Cheap price refresh.** "Price and stock only" re-checks known products for their current price and stock, at the price of a plain row.

### Overview

This actor is for fashion brands and retailers tracking Shein's prices and assortment, resellers and dropshippers sourcing products, market researchers following trends and discounts, and price-comparison sites.

You give it search terms, product ids or links. It returns one row per product in Shein's order, with full details when asked for. The dataset exports as JSON, CSV, Excel or through the API, and a `RUN_SUMMARY` record lists what each input delivered.

### Supported Inputs

| What you give | What you get |
|---|---|
| A search term, e.g. `summer dress` | Shein's results in order; thousands deep in the US store, the top 40 in the global, Saudi, UAE and Kuwait stores |
| A search link, e.g. `https://us.shein.com/pdsearch/summer dress/` | The same |
| A product link from any of the 15 stores, e.g. `…-p-387752092.html` | That product with full details, in that store |
| A product id, e.g. `387752092` | That product in the chosen store |
| A category id with a search term (US store) | Search results inside that category |

### Use Cases

- **Price monitoring:** prices, discounts and promotions for a category or a list of products.
- **Stock tracking:** which sizes sell out and how much stock is left.
- **Trend research:** what ranks first for a keyword, with ratings and review counts.
- **Cross-store comparison:** the same product's price in up to 15 stores.
- **Sourcing:** attributes, colour variants and size charts for product research.

### How It Works

![How it works](https://api.apify.com/v2/key-value-stores/UftwoAYARbgxJV3vP/records/how-it-works)

1. **Pick a store and add search terms, ids or links.**
2. **Each search is read in Shein's order,** up to your limit.
3. **Full details are added** when you turn them on.
4. **Products become rows,** duplicates dropped.
5. **Export** the dataset as JSON, CSV or Excel, or read it through the API.

### Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | array | none | What a shopper would type on Shein. |
| `market` | string | `us` | The store. Search works in the US, global, Saudi, UAE and Kuwait stores; product ids work in all 15. |
| `startUrls` | array | none | Product links from any store, or search links. |
| `productIds` | array | none | Product numbers, each with full details. |
| `categoryId` | string | none | Keep a US search inside one category, e.g. 1727. |
| `maxProductsPerSearch` | integer | `100` | Upper limit per search, up to 5,000. |
| `includeDetails` | boolean | `false` | Sizes with prices and stock, variants, attributes, size chart. |
| `priceCheckOnly` | boolean | `false` | For product ids and links: price and stock only, charged as a plain product row. |

#### 1,000 summer dresses from the US store

```json
{ "searchTerms": ["summer dress"], "market": "us", "maxProductsPerSearch": 1000 }
```

#### One product in the UK store, in full

```json
{ "productIds": ["387752092"], "market": "uk" }
```

#### A daily price and stock check of known products

```json
{ "productIds": ["387752092", "45200924"], "market": "us", "priceCheckOnly": true }
```

### Output Overview

One row per product: `productId`, `name`, `brand`, `storeName`, `price`, `listPrice`, `discountPercent`, `currency`, `priceText`, `inStock`, `rating`, `reviewCount`, `colorCount`, `trueToSizePercent`, `runsSmallPercent`, `runsLargePercent`, `category`, `categoryId`, `clearance`, `promotions`, `priceTestApplied`, `sku`, `spu`, `imageUrl`, `videoUrl`, `url`, `market`, `searchInput`, `position`, `scrapedAt`.

With "Price and stock only": `productId`, `price`, `listPrice`, `basePrice`, `promotionDiscount`, `discountPercent`, `currency`, `priceTestApplied`, `inStock`, `totalStock`, `stockIsMinimum`, `url`, `market` and `priceCheck: true`.

With full details: `basePrice`, `promotionDiscount`, `totalStock`, `stockIsMinimum`, `onSale`, `color`, `sizes` (each with `size`, `localSize`, `inStock`, `stock`, `skuCode`, `price`, `listPrice`, `basePrice`), `sizeCount`, `sizesInStock`, `colorVariants`, `attributes`, `description`, `sizeChart`, `images`.

### Output Samples

```json
{
  "productId": "387752092",
  "name": "Aloruh Women's Elegant Light Yellow Halter Tie Mini Dress",
  "brand": "Aloruh",
  "price": 20.25,
  "listPrice": 27.19,
  "discountPercent": 26,
  "currency": "USD",
  "basePrice": 21.09,
  "priceTestApplied": false,
  "totalStock": 120,
  "stockIsMinimum": true,
  "sizeCount": 7,
  "sizesInStock": 6,
  "category": "Women Dresses",
  "attributes": [{ "name": "Neckline", "value": "Halter" }],
  "market": "us",
  "detailsIncluded": true
}
```

### Key Output Fields

- `price`, `listPrice`, `discountPercent`: what the product costs now and its crossed-out price.
- `basePrice`, `priceTestApplied`: the price before promotions, and whether a test discount is in `price`.
- `sizes`, `totalStock`: stock and price per size.
- `rating`, `reviewCount`, `trueToSizePercent`: what buyers think, and how it fits.

### FAQ

**Why does the same product show different prices on different days or runs?**
Shein tests promotional prices on different shoppers. `basePrice` is the price before any promotion and is the same for everyone; use it to follow price changes.

**How deep do searches go?**
The US store reads page after page, thousands of products per keyword. The global, Saudi, UAE and Kuwait stores give their top 40 per search. The European stores and Türkiye work with product ids and links.

**What does a stock of 20 mean?**
Shein shows stock up to 20 per size; `stockIsMinimum: true` means "this many or more".

**What does the free Apify plan get?**
Up to 20 products from the first input per run. Any paid Apify plan removes the limit.

**How much does it cost?**
$0.01 per run start, $0.0015 per product ($1.50 per 1,000) and $0.003 more per product with full details ($3.00 per 1,000). 1,000 products cost $1.51, or $4.51 with full details. A price and stock check costs the same as a plain product row, $0.0015. Duplicates and the run summary are never charged. Set "Max cost per run" in the run options and the run stops by itself at that amount.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/shein-scraper/issues) with your run link and input.

### Additional Services

Need a scheduled price feed or a custom export? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Poshmark Scraper**](https://apify.com/memo23/poshmark-scraper): resale fashion listings, for sale and sold.
- [**Sephora Scraper**](https://apify.com/memo23/sephora-scraper): beauty products, shades and reviews.

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/shein-scraper`).

**Purpose:** Shein products by search term, product id or link in 15 stores, with optional sizes, stock, variants and attributes.

**Minimal input:**

```json
{ "searchTerms": ["linen pants"], "market": "us", "maxProductsPerSearch": 50 }
```

**Output:** one row per product: productId, name, brand, price, listPrice, discountPercent, currency, rating, reviewCount, colorCount, category, url, market; with `includeDetails`: basePrice, sizes\[] with price and stock, totalStock, colorVariants, attributes, sizeChart, images.

**Behaviors an agent should know:**

- Search depth: thousands in `market: "us"`, 40 elsewhere; product ids work in all 15 stores.
- `maxProductsPerSearch` bounds each search and so the cost.
- `priceCheckOnly: true` with product ids returns price and stock only, charged as one `product` each.
- Billing: $0.01 per run start, one `product` charge per product ($0.0015), one `product-details` charge per product with details ($0.003).

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Shein. All trademarks mentioned are the property of their respective owners.

It returns publicly available product information. It does not access accounts or content behind a login. Users are responsible for making sure their use complies with Shein's terms, applicable law and their own contractual obligations.

### SEO Keywords

shein scraper, shein api, shein product data, shein price tracker, shein product scraper, shein sizes and stock, shein search scraper, fast fashion data, shein price monitoring, shein dropshipping research, shein export to csv

# Actor input Schema

## `searchTerms` (type: `array`):

What a shopper would type on Shein, e.g. summer dress, men hoodie. Search works in the US, global, Saudi, UAE and Kuwait stores.

## `market` (type: `string`):

Prices come in the store's currency. Links use their own store.

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

Product links (…-p-387752092.html) from any of the 15 stores, or search links (…/pdsearch/summer dress/) from the US, global, Saudi, UAE and Kuwait stores.

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

The number in a product link, e.g. 387752092. Each comes back with full details.

## `categoryId` (type: `string`):

Keep search results inside one category: the number in a category link, e.g. 1727 from …-c-1727.html, or the link itself.

## `maxProductsPerSearch` (type: `integer`):

Each search term stops here. The US store goes thousands of products deep; the global, Saudi, UAE and Kuwait stores give their top 40 per search.

## `includeDetails` (type: `boolean`):

Adds every size with its own price, stock and SKU, total stock, the price before promotions, colour variants, attributes (fabric, neckline, fit and more), the size chart and all images. Charged as a separate event per product. Product ids and product links always come with details.

## `priceCheckOnly` (type: `boolean`):

For product ids and product links: only the current price, list price, the price before promotions, discount and stock, at the price of a plain product row instead of a full product page. Made for refreshing a list of products you already know.

## Actor input object example

```json
{
  "searchTerms": [
    "summer dress"
  ],
  "market": "us",
  "maxProductsPerSearch": 100,
  "includeDetails": false,
  "priceCheckOnly": false
}
```

# Actor output Schema

## `products` (type: `string`):

All rows in the default dataset.

## `summary` (type: `string`):

What each input delivered or could not read.

# 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 = {
    "searchTerms": [
        "summer dress"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/shein-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 = { "searchTerms": ["summer dress"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/shein-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 '{
  "searchTerms": [
    "summer dress"
  ]
}' |
apify call memo23/shein-scraper --silent --output-dataset

```

## MCP server setup

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