# Shein Store Popularity (`pintostudio/shein-store-popularity`) Actor

An Apify actor that extracts real-time popularity indicators and social proof data from SHEIN store pages, including recent purchases, follows, browsing activity, and store statistics.

- **URL**: https://apify.com/pintostudio/shein-store-popularity.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 3 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 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/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 Store Popularity Actor

An Apify actor that extracts real-time popularity indicators and social proof data from SHEIN store pages, including recent purchases, follows, browsing activity, and store statistics.

### Overview

This actor scrapes SHEIN store pages to collect popularity metrics and social proof elements that SHEIN displays to create urgency and trust signals. The data includes recent purchases, follower activity, current browsing indicators, and store performance statistics.

### Features

- Extract real-time purchase notifications
- Collect follower activity data
- Capture browsing indicators
- Retrieve store performance metrics (sales, repurchases)
- Support for multiple SHEIN regional sites
- JSON output format for easy integration

### Input Parameters

#### Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `storeUrl` | string | The SHEIN store URL to scrape popularity data from |

#### Optional Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `countryCode` | string | `"us"` | Two-letter country code for SHEIN regional site |

#### Supported Country Codes

The actor supports the following SHEIN regional sites:

- `us` - United States
- `de` - Germany
- `fr` - France
- `it` - Italy
- `ch` - Switzerland
- `pl` - Poland
- `pt` - Portugal
- `es` - Spain
- `se` - Sweden
- `uk` - United Kingdom
- `ca` - Canada
- `mx` - Mexico
- `br` - Brazil
- `ae` - UAE
- `sa` - Saudi Arabia
- `ru` - Russia
- `jp` - Japan
- `kr` - South Korea
- `cn` - China
- `tw` - Taiwan
- `hk` - Hong Kong
- `au` - Australia
- `in` - India
- `id` - Indonesia
- `ph` - Philippines
- `my` - Malaysia
- `sg` - Singapore
- `tr` - Turkey
- `nl` - Netherlands
- `be` - Belgium
- `at` - Austria
- `dk` - Denmark
- `no` - Norway
- `fi` - Finland
- `ie` - Ireland
- `vn` - Vietnam
- `th` - Thailand
- `il` - Israel

### Input Example

```json
{
  "storeUrl": "https://pt.shein.com/store/home?ici=PageGoodsDetail&main_cate_id=12478&main_goods_id=69536888&rule_poskey=DetailShopItemList&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780&src_module=DetailBrand&src_tab_page_id=page_goods_detail1749203412328&store_code=3276656780&tab=home",
  "countryCode": "pt"
}
```

### Output Format

The actor returns a JSON object containing popularity tips and completion timestamp:

```json
{
  "results": {
    "tips": [
      {
        "tipIcon": "string|null",
        "popType": "string",
        "memberId": "string|null",
        "saleTime": "string",
        "goodsId": "string|null",
        "clickUrl": "string|null",
        "saleTip": "string",
        "nameTip": "string|null",
        "timeTip": "string|null"
      }
    ]
  },
  "completedAt": "ISO_DATE_STRING"
}
```

#### Output Fields Description

| Field | Type | Description |
|-------|------|-------------|
| `tipIcon` | string/null | URL to the icon associated with the popularity tip |
| `popType` | string | Type identifier for the popularity notification |
| `memberId` | string/null | Anonymized member ID (when applicable) |
| `saleTime` | string | Unix timestamp of the activity (when applicable) |
| `goodsId` | string/null | Product ID associated with the activity |
| `clickUrl` | string/null | Relative URL for clicking through to product details |
| `saleTip` | string | Complete text of the popularity notification |
| `nameTip` | string/null | Name portion of the notification |
| `timeTip` | string/null | Time portion of the notification |

#### Popularity Types

The actor captures different types of popularity indicators:

- **Sales Notifications** (`popType: "3878"`): Recent purchases by other users
- **Follow Activity** (`popType: "4456"`): Users following the store
- **Browsing Activity** (`popType: "4569"`): Users currently viewing the store
- **Store Statistics** (`popType: "4562"`): Total sales metrics
- **Repurchase Data** (`popType: "4563"`): Customer retention metrics

### Output Example

```json
{
  "results": {
    "tips": [
      {
        "tipIcon": "https://img.shein.com/images3/2025/03/17/ef/17421942022976df269211ef75be1c3e5de0d1a4e5.png",
        "popType": "4562",
        "memberId": null,
        "saleTime": "",
        "goodsId": null,
        "clickUrl": null,
        "saleTip": "999K+ sold recently",
        "nameTip": null,
        "timeTip": null
      },
      {
        "tipIcon": "https://img.shein.com/images3/2025/03/17/fe/1742194324c912904c94193176ff1fae002c6c8020.png",
        "popType": "4563",
        "memberId": null,
        "saleTime": "",
        "goodsId": null,
        "clickUrl": null,
        "saleTip": "999K+ repurchase",
        "nameTip": null,
        "timeTip": null
      },
      {
        "tipIcon": null,
        "popType": "3878",
        "memberId": "4515734048",
        "saleTime": "1749625619",
        "goodsId": "34720769",
        "clickUrl": "/goods_details/goods_details?data=%7B%22aod_id%22%3Anull%2C%22goods_id%22%3A%2234720769%22%7D",
        "saleTip": "a***9 paid 10 minutes ago",
        "nameTip": "a***9 paid",
        "timeTip": "10 minutes ago"
      },
      {
        "tipIcon": null,
        "popType": "4456",
        "memberId": "1208783871",
        "saleTime": "1749623931",
        "goodsId": null,
        "clickUrl": null,
        "saleTip": "n***a followed 30 minutes ago",
        "nameTip": "n***a followed",
        "timeTip": "30 minutes ago"
      },
      {
        "tipIcon": null,
        "popType": "4569",
        "memberId": "4507489968",
        "saleTime": "",
        "goodsId": null,
        "clickUrl": null,
        "saleTip": "p***7 is browsing",
        "nameTip": "p***7 is browsing",
        "timeTip": ""
      }
    ]
  },
  "completedAt": "2025-06-11T07:31:08.266Z"
}
```

### Usage

1. **Set up the input**: Provide a valid SHEIN store URL and optionally specify the country code
2. **Run the actor**: The actor will extract all available popularity indicators from the store page
3. **Process results**: Use the structured JSON output for analysis, monitoring, or integration with other systems

### Use Cases

- **Market Research**: Monitor competitor store performance and popularity
- **Social Proof Analysis**: Analyze how SHEIN uses social proof elements
- **E-commerce Intelligence**: Track store activity patterns and customer engagement
- **Business Intelligence**: Gather insights on store performance metrics
- **Academic Research**: Study social proof mechanisms in e-commerce

### Error Handling

The actor includes error handling for:

- Invalid store URLs
- Network connectivity issues
- Missing required parameters
- Regional site accessibility problems

### Data Storage

Results are stored in two locations:

- **Dataset**: Individual popularity tips for detailed analysis
- **Key-Value Store**: Complete results with metadata under the key `"output"`

### Support

If you have any questions or encounter any issues, please consult the Apify documentation or reach out to us through one of the following channels:

- **Telegram**: [@pintoflow](https://t.me/pintoflow)
- **Email**: <pintoflowpt@gmail.com>
- **Apify Platform**: You can also contact us directly through this platform.

***

# Actor input Schema

## `storeUrl` (type: `string`):

The store Url (e.g., 'https://pt.shein.com/store/home?ici=PageGoodsDetail\&main_cate_id=12478\&main_goods_id=69536888\&rule_poskey=DetailShopItemList\&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780\&src_module=DetailBrand\&src_tab_page_id=page_goods_detail1749203412328\&store_code=3276656780\&tab=home').

## `countryCode` (type: `string`):

Two-letter country code for SHEIN regional site

## Actor input object example

```json
{
  "storeUrl": "https://pt.shein.com/store/home?ici=PageGoodsDetail&main_cate_id=12478&main_goods_id=69536888&rule_poskey=DetailShopItemList&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780&src_module=DetailBrand&src_tab_page_id=page_goods_detail1749203412328&store_code=3276656780&tab=home",
  "countryCode": "us"
}
```

# 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 = {
    "storeUrl": "https://pt.shein.com/store/home?ici=PageGoodsDetail&main_cate_id=12478&main_goods_id=69536888&rule_poskey=DetailShopItemList&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780&src_module=DetailBrand&src_tab_page_id=page_goods_detail1749203412328&store_code=3276656780&tab=home",
    "countryCode": "us"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/shein-store-popularity").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 = {
    "storeUrl": "https://pt.shein.com/store/home?ici=PageGoodsDetail&main_cate_id=12478&main_goods_id=69536888&rule_poskey=DetailShopItemList&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780&src_module=DetailBrand&src_tab_page_id=page_goods_detail1749203412328&store_code=3276656780&tab=home",
    "countryCode": "us",
}

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/shein-store-popularity").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 '{
  "storeUrl": "https://pt.shein.com/store/home?ici=PageGoodsDetail&main_cate_id=12478&main_goods_id=69536888&rule_poskey=DetailShopItemList&src_identifier=on%3Dstore%60cn%3DSHEIN%20LUNE%60hz%3D0%60ps%3D1_1%60jc%3DthirdPartyStoreHome_3276656780&src_module=DetailBrand&src_tab_page_id=page_goods_detail1749203412328&store_code=3276656780&tab=home",
  "countryCode": "us"
}' |
apify call pintostudio/shein-store-popularity --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pintostudio/shein-store-popularity"
        }
    }
}
```

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/BA3uoAfVxinTtS7Bf/builds/ov5PDjAzvDwrdgyJx/openapi.json
