# Taiwan Price Drop Monitor (PChome 24h) (`chun_yung_lo/taiwan-price-drop-monitor`) Actor

Watch PChome 24h products for price drops, restocks and target prices, and get new listings for keywords. Schedule it and send the changed rows to email, Slack or a webhook. Built for people and AI agents (MCP).

- **URL**: https://apify.com/chun_yung_lo/taiwan-price-drop-monitor.md
- **Developed by:** [Chun-Yung Yong Lo](https://apify.com/chun_yung_lo) (community)
- **Categories:** E-commerce, Automation, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 product or keyword checkeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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

## Taiwan Price Drop Monitor (PChome 24h)

Watch products on **PChome 24h**, one of Taiwan's largest online shops, and find out when a price drops, an item comes back in stock, or a price reaches your target. You can also watch keywords and get products that newly appear in the results.

The Actor remembers the previous run (in a key-value store in **your own** Apify account), so every row tells you what changed since last time. Schedule it, then send the rows to email, Slack, Google Sheets or a webhook with Apify integrations.

### What you get

One row per product checked:

| field | meaning |
|---|---|
| `price`, `listPrice` | current price and list price in NT$ |
| `previousPrice`, `priceChange`, `priceChangePct` | compared with the last run of the same watch list |
| `priceDropped` | price fell by at least `minDropPercent` |
| `backInStock` | was out of stock last run, in stock now |
| `belowTarget` | price is at or below `targetPrice` |
| `lowestSeenPrice`, `isLowestSeen` | lowest price this watch list has seen |
| `firstCheck` | first time this product is checked (no comparison yet) |
| `status` | `ok`, `invalid_input`, `not_found` or `blocked` |

Keyword watching adds `new_listing` rows (product id, name, URL, price) for products that were not on the first results page before.

### Input example

```json
{
  "productUrls": [
    "https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1"
  ],
  "watchKeywords": ["藍牙耳機"],
  "targetPrice": 1500,
  "minDropPercent": 5,
  "watchName": "my-headphones"
}
```

### Output example

```json
{
  "type": "product", "source": "pchome", "id": "DYAQ0A-A900JNBL1",
  "name": "Soundcore R60i NC 主動降噪真無線藍牙耳機", "url": "https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1",
  "status": "ok", "price": 1490, "listPrice": 2300, "inStock": true,
  "previousPrice": 1690, "priceChange": -200, "priceChangePct": -11.83,
  "priceDropped": true, "backInStock": false, "belowTarget": true,
  "lowestSeenPrice": 1490, "isLowestSeen": true, "firstCheck": false, "changed": true, "currency": "TWD"
}
```

### For AI agents (MCP)

This Actor also runs as an MCP server (Standby mode, path `/mcp`) with one tool. Pass the same JSON as above. Every call returns plain rows with explicit `status` values, so an agent can tell "no change" from "could not read". Use a distinct `watchName` per conversation or user so comparisons stay separate.

### Pricing

US$0.003 per result row (a product checked, a keyword checked, or a new listing found). Watching 20 products once a day costs about US$1.80 a month.

### Limits and good manners

- Up to 200 products and 20 keywords per run. Requests are sent one at a time with a pause.
- Only public product and search pages are read. No login, and no attempt to get around blocking: if a shop refuses the request, the row says `blocked`.
- momo is not supported yet (it refuses requests from servers outside Taiwan). Shopee is not supported (its data is not publicly accessible without signed requests).
- Prices are what the shop shows to a visitor without coupons or member discounts.

### 繁體中文說明

監控 **PChome 24h** 的商品，降價、補貨、到達目標價時就能知道；也可以監看關鍵字，回報新上架的商品。

每次執行都會和上一次比較（紀錄存在**你自己的** Apify 帳號），每列結果直接告訴你變了什麼。建議設定排程（例如每天一次），再用 Apify 的整合功能把結果寄到 Email、Slack、Google 試算表或 Webhook。

- `productUrls`：PChome 商品網址，最多 200 個
- `watchKeywords`：要監看新上架的關鍵字（可用中文，例如「藍牙耳機」），第一次執行只建立基準
- `targetPrice`：目標價（新台幣），價格低於等於目標價時 `belowTarget` 為 true
- `minDropPercent`：降幅達到這個百分比才標記 `priceDropped`
- `watchName`：監控清單名稱，同名的執行共用比價紀錄

費用：每列結果 US$0.003。只讀取公開頁面，不登入，也不繞過任何封鎖；momo 和蝦皮目前不支援。

### Credits

Written from scratch. Uses only the Python standard library plus the Apify SDK.

# Actor input Schema

## `productUrls` (type: `array`):

PChome 24h product URLs (24h.pchome.com.tw/prod/...), up to 200. Short form pchome:<id> also works. momo is not supported yet.

## `watchKeywords` (type: `array`):

Optional, up to 20. Each run reports products that newly appear on the first results page for the keyword (Traditional Chinese works, e.g. 藍牙耳機). The first run only records a baseline.

## `sources` (type: `array`):

Which shops to search for watchKeywords. Currently only pchome.

## `targetPrice` (type: `integer`):

Optional. Rows at or below this price get belowTarget true.

## `minDropPercent` (type: `number`):

priceDropped is true only when the price fell by at least this percentage since the last run.

## `watchName` (type: `string`):

Runs with the same name share their memory of previous prices (stored in your own Apify account). Use different names for separate watch lists.

## Actor input object example

```json
{
  "productUrls": [
    "https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1"
  ],
  "sources": [
    "pchome"
  ],
  "minDropPercent": 0,
  "watchName": "default"
}
```

# Actor output Schema

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

One row per processed input

# 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 = {
    "productUrls": [
        "https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chun_yung_lo/taiwan-price-drop-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 = { "productUrls": ["https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1"] }

# Run the Actor and wait for it to finish
run = client.actor("chun_yung_lo/taiwan-price-drop-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 '{
  "productUrls": [
    "https://24h.pchome.com.tw/prod/DYAQ0A-A900JNBL1"
  ]
}' |
apify call chun_yung_lo/taiwan-price-drop-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,chun_yung_lo/taiwan-price-drop-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/vek92ahN6HEpTZ1eg/builds/nTaVQ0J5Bn2osaOMa/openapi.json
