# Shopee Flash Sale & Price Drop Monitor (`fanndev/shopee-flash-sale-monitor`) Actor

Track every Shopee Flash Sale across 11 country sites. Returns the session calendar plus each item's flash price, original price, saving, discount percent, remaining stock and units sold - as plain numbers, no currency symbols. Schedule it and diff on itemId. No login.

- **URL**: https://apify.com/fanndev/shopee-flash-sale-monitor.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Shopee Flash Sale & Price Drop Monitor

Track every Shopee Flash Sale across **11 country sites**, with prices you can
actually put in a spreadsheet.

Returns the session calendar — which sale is live now, which starts tonight —
and every item inside a session with its flash price, original price, saving,
discount percent, remaining stock and lifetime units sold.

No login, no cookies, no API key.

### What you get

```json
{
  "_country": "MY",
  "sessionName": "[CFS] Shocking Sale 20 Sep Slot 5 (4pm - 8pm)",
  "sessionIsOngoing": true,
  "name": "SKINTIFIC Cover Glow Perfect Pink Cushion Foundation",
  "currency": "MYR",
  "price": 25.84,
  "priceBeforeDiscount": 99.0,
  "savingAmount": 73.16,
  "discountPercent": 74.0,
  "flashSaleStock": 20,
  "stockRemainingPercent": 0.14,
  "historicalSold": 14506,
  "shopId": 1457622087,
  "itemId": 44421234179,
  "url": "https://shopee.com.my/product-i.1457622087.44421234179"
}
```

**Money is a number, never a string.** Shopee quotes prices as integers scaled
by 100,000 (`45955000000` means `459550`). This Actor divides them out, so
`price` is `25.84` — no currency symbol, no thousands separator, nothing to
clean up before you sum a column. The currency lives in its own field.

### Modes

| Mode | Requests | What you get |
| --- | --- | --- |
| `monitor` | 1 per country + 1 per session | Sessions **and** every item — the price-tracking mode |
| `sessions` | 1 per country | Just the calendar. Use it to decide when to run `monitor` |
| `reference` | 1–2 per country | Probes each site and reports what answered |

### Using it as a price monitor

Schedule `monitor` and diff consecutive datasets on `itemId`:

- `price` moving down on a competitor's `shopId` is a price cut.
- `stockRemainingPercent` falling fast is a product selling out — the urgency
  signal a flash sale is built around.
- `historicalSold` rising between runs is real sales velocity.

Pair it with Apify's webhooks to fire when a watched `itemId` drops below a
threshold.

### Coverage, measured

Sessions verified live on 2026-09-20:

| Country | Site | Sessions |
| --- | --- | --- |
| Indonesia | `shopee.co.id` | 3 |
| Singapore | `shopee.sg` | 4 |
| Malaysia | `shopee.com.my` | 5 |
| Philippines | `shopee.ph` | 4 |
| Vietnam | `shopee.vn` | 5 |
| Thailand | `shopee.co.th` | 4 |
| Brazil | `shopee.com.br` | 2 |

Taiwan, Mexico, Colombia and Chile are configured and accepted but were not
verified in that run.

Items per session: **42–53** measured. `itemsPerSession: 100` returns the whole
session in one request; lowering it saves rows, not requests.

### What this Actor deliberately does not claim

Shopee gates most of its API at the load balancer. Measured the same day, plain
HTTP, no browser:

| Endpoint | Result |
| --- | --- |
| `search/search_items` | **403** |
| `item/get_ratings` (reviews) | **403** |
| `shop/get_shop_seo` | **403** |
| product page HTML | 200 / 848 KB with **zero** product data |
| product Q\&A — every documented path | **404**, no public API exists |
| **`flash_sale/get_all_sessions`** | **200** ✅ |
| **`flash_sale/flash_sale_get_items`** | **200** ✅ |

The refusal is identical every time (`error 90309999`, `sgw-errmsg: Status
generated by alb`) and **no `Set-Cookie` is ever issued**, so there is no
session warm-up that unlocks it. This Actor uses the two endpoints that sit
outside that gate, and when one of them is refused it emits a `GATED` record
naming the endpoint rather than an empty result. Those are very different
things and a scraper that conflates them is lying to you.

If `GATED` records appear, switch on `proxyConfiguration` with a residential
group — the gate is IP-sensitive.

### Input example

```json
{
  "mode": "monitor",
  "countries": ["ID", "MY", "VN"],
  "ongoingOnly": true,
  "itemsPerSession": 100,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

# Actor input Schema

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

monitor = sessions plus every item in them (the price-tracking mode). sessions = the session calendar only, 1 request per country. reference = probe each country and report what answered.

## `countries` (type: `array`):

ISO codes. ID SG MY PH VN TH BR TW MX CO CL. Sessions verified live on ID, SG, MY, PH, VN, TH and BR.

## `ongoingOnly` (type: `boolean`):

On: skip upcoming sessions, which cuts the run to the flash sale that is actually live. Off: pull upcoming sessions too, so you can see tomorrow's line-up before it starts.

## `itemsPerSession` (type: `integer`):

One request per session regardless. 100 returns the whole session (measured 42-53 items); lowering this does not save requests, only rows.

## `concurrency` (type: `integer`):

How many country sites to work on at once.

## `tlsProfile` (type: `string`):

Optional. The flash-sale endpoints answered on all four during recon.

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

Recommended for scheduled runs. Shopee gates most of its API at the load balancer; if you start seeing GATED records, a residential exit IP is the first thing to try.

## Actor input object example

```json
{
  "mode": "monitor",
  "countries": [
    "ID"
  ],
  "ongoingOnly": false,
  "itemsPerSession": 100,
  "concurrency": 3,
  "tlsProfile": "chrome124",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Every flash-sale item, session, gated and error record from this run.

# 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 = {
    "countries": [
        "ID"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/shopee-flash-sale-monitor").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 = {
    "countries": ["ID"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/shopee-flash-sale-monitor").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 '{
  "countries": [
    "ID"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fanndev/shopee-flash-sale-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/shopee-flash-sale-monitor"
        }
    }
}
```

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/C0P8tb6ho0t0VMb0i/builds/IghZHMzSadAcxpktG/openapi.json
