# PChome Taiwan Product Scraper - 24h Prices & Ratings (`mystical_filament/pchome-taiwan-product-scraper`) Actor

Scrape PChome 24h (pchome.com.tw), Taiwan's largest online retailer. Export products with current price, original price, discount %, brand, rating, review count and image. Uses PChome's public JSON search endpoint - no login, no browser, no proxy required.

- **URL**: https://apify.com/mystical_filament/pchome-taiwan-product-scraper.md
- **Developed by:** [kukuku](https://apify.com/mystical_filament) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## PChome Taiwan Product Scraper

Scrape **PChome 24h** (`pchome.com.tw`), Taiwan's largest online retailer with 7.6 million listed products.
Export live prices, list prices, discounts, ratings and stock flags straight to JSON or CSV — no login, no browser,
no proxy needed, because the storefront is backed by a public JSON search endpoint.

### What it scrapes

PChome's public product search (`ecshweb.pchome.com.tw/search/v4.3/all/results`) for any keyword you provide,
page by page, ordered by relevance, best-selling, price or recency.

Fields per product:

| Field | Meaning |
|---|---|
| `productId` | PChome SKU (e.g. `DYAJO0-1900KFKUU`) |
| `url` | Product page on 24h.pchome.com.tw |
| `name` / `description` | Product title + marketing blurb |
| `priceTwd` | Current selling price in TWD |
| `originPriceTwd` | List / MSRP price in TWD |
| `discountPct` | Computed discount (null when not discounted) |
| `currency` | Always `TWD` |
| `brand`, `categoryId` | Brand string when PChome exposes it + category tree id |
| `ratingValue`, `reviewCount` | Customer rating + number of reviews |
| `is24h` | Product is in PChome's own 24h-warehouse stock (ships same day) |
| `imageUrl` | Main product image |
| `searchQuery`, `searchPage`, `searchSort` | Which query/page/sort produced the row |
| `scrapedAt` | UTC timestamp |

Only public catalogue data — no user accounts, reviews' authors, or seller personal data.

### Use cases

- **Taiwan market entry / pricing** — check the real street price of any SKU in Taiwan before you import or list.
- **Competitor price monitoring** — re-run on a schedule and diff `priceTwd` by `productId`.
- **Cross-border arbitrage** — PChome vs Rakuten-TW vs Shopee-TW vs Chinese listings.
- **Product research** — best-selling SKUs per keyword, with rating + review-count as a demand proxy.
- **Promo tracking** — `onlyDiscounted` + `discountPct` surfaces the deepest current markdowns.
- **Catalogue enrichment** — pull 20–2,000 SKUs per niche into your own PIM or spreadsheet.

### Input

Defaults are deliberately small: **1 query, 1 page, max 20 products** (a single HTTP request).

```json
{
  "searchQueries": ["iphone", "nike", "葉黃素"],
  "maxItems": 20,
  "maxPages": 1,
  "sortBy": "sale/dc",
  "minPriceTwd": 500,
  "maxPriceTwd": 50000,
  "onlyDiscounted": false,
  "requestDelaySecs": 2
}
```

- `searchQueries` — one or more keywords (Chinese or English). `"*"` browses the whole catalogue.
- `maxItems` — hard stop for the dataset (cost control).
- `maxPages` — PChome returns 20 products per page.
- `sortBy` — `rnk/dc` relevance, `sale/dc` best-selling, `prc/a` price ↑, `prc/d` price ↓, `new/dc` newest.
- `minPriceTwd` / `maxPriceTwd` — price filters.
- `onlyDiscounted` — keep only products cheaper than their list price.
- `requestDelaySecs` — politeness delay between pages (default 2 s).
- `proxyConfiguration` — optional; not required for PChome.

### Output example

```json
{
  "productId": "DYAJO0-1900KFKUU",
  "url": "https://24h.pchome.com.tw/prod/DYAJO0-1900KFKUU",
  "name": "Apple 蘋果 iPhone 18 Pro Max (256GB)",
  "description": "4800 萬像素融合主相機具備可變光圈 A20 Pro 晶片 電池續航力大舉躍升",
  "priceTwd": 48900,
  "originPriceTwd": 49900,
  "discountPct": 2.0,
  "currency": "TWD",
  "brand": null,
  "categoryId": "141001002001000",
  "ratingValue": 5,
  "reviewCount": 253,
  "is24h": true,
  "imageUrl": "https://cs-a.ecimg.tw/items/DYAJO01900KFKUU/000001_1789718233.jpg",
  "searchQuery": "iphone",
  "searchPage": 1,
  "searchSort": "rnk/dc",
  "scrapedAt": "2026-11-05T02:18:45+00:00"
}
```

The dataset offers an **Overview** view and a **Price watch** view.

### Pricing

Pay per result — only products actually saved are charged.

- **$2.50 per 1,000 products** on the free plan
- $2.30 / 1,000 (Bronze), $2.10 / 1,000 (Silver), $1.90 / 1,000 (Gold and above)
- plus a tiny Actor-start event ($0.00005) per run

Example: 5,000 products across a few keywords ≈ **$12.50**.

### Notes & limits

- One HTTP request returns 20 products; `maxPages` × 20 × number of queries is your request budget.
- `brand` is only present when PChome fills it in its search payload (most consumer electronics leave it empty —
  use `name` or `categoryId` for grouping).
- Prices are TWD integers exactly as PChome returns them; no currency conversion is done.
- Uses only `pchome.com.tw` public search (`robots.txt`: `User-agent: * / Allow: /`).

### Suggestions / bug reports

Open an issue on the Actor page — fixes usually ship the same day.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on PChome 24h (Chinese or English, e.g. iphone, 葉黃素, nike, 電風扇). Use "\*" to browse the whole catalogue.

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

Stop after this many products have been saved.

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

PChome returns 20 products per page.

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

How PChome should order the search results.

## `minPriceTwd` (type: `integer`):

Drop products cheaper than this. Leave empty for no filter.

## `maxPriceTwd` (type: `integer`):

Drop products more expensive than this. Leave empty for no filter.

## `onlyDiscounted` (type: `boolean`):

Keep only products whose current price is below the list price.

## `requestDelaySecs` (type: `integer`):

Polite pause between search requests.

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

PChome's JSON API is usually reachable without a proxy.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "maxItems": 20,
  "maxPages": 1,
  "sortBy": "rnk/dc",
  "onlyDiscounted": false,
  "requestDelaySecs": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `priceWatch` (type: `string`):

No description

## `results` (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 = {
    "searchQueries": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mystical_filament/pchome-taiwan-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 = { "searchQueries": ["iphone"] }

# Run the Actor and wait for it to finish
run = client.actor("mystical_filament/pchome-taiwan-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 '{
  "searchQueries": [
    "iphone"
  ]
}' |
apify call mystical_filament/pchome-taiwan-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mystical_filament/pchome-taiwan-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/lcW1VxIQNtn6hLbGv/builds/nOXV44h26i6Xci1tv/openapi.json
