# PChome 24h Product Scraper (`stone_jadex/pchome-24h-products`) Actor

PChome 24h search results with live price, original price and stock, plus a full detail tier (intro HTML/images, statement, specs text, SKUs). One result per requested Id.

- **URL**: https://apify.com/stone_jadex/pchome-24h-products.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## PChome 24h Product Scraper

PChome 24h Product Scraper gives Taiwan e-commerce pricing and catalog teams structured results from public pages. Start with keywords or product URLs and IDs and export product name, current price, reference price, stock and rating.

### What you can do

- Compare current and original prices, retaining missing reference prices rather than inventing discounts.
- Use availability and stock quantity when present to put price comparisons in product context.
- Build product comparisons using rating, image and category information alongside the price.

### Who uses it

- A Taiwan brand can compare current prices and stock across competing keyword results.
- A catalog team can request selected product IDs in detail mode to review descriptions, images and SKUs.

### Result preview

**Illustrative only:** invented examples show the shape of the data; they are not real results. A dash indicates an unavailable value.

| Product | Current price | Original price | In stock | Stock quantity |
| --- | --- | --- | --- | --- |
| Example headphones | 999 TWD | 1,299 TWD | Yes | 3 |
| Example mask | 120 TWD | — | Yes | 10 |
| Example speaker | 2,000 TWD | 2,500 TWD | No | 0 |

Fields may be absent when the source does not publish them.

### Why choose this Actor

- Keyword search results and explicit product IDs can be combined; requested IDs use the detail path.
- Detail mode adds product descriptions, introductory content and SKUs; a partial detail response can use the list event rate.

### Pricing

Prices in **USD**, verified on 4 November 2026. Check the current Pricing tab before running.

| Result type | Event price |
| --- | ---: |
| Run start | $0.001 per run |
| List product | $0.7 per 1,000 results |
| Product with details | $4 per 1,000 results |

The detail event replaces the list event for the same result; the two are not added together. For example, 1,000 results at the list product rate incur $0.7 in result-event charges, plus $0.001 for one run start, for $0.701 in event charges. This calculation covers Actor event charges. Review Pricing for any separately listed platform usage; later access to stored data follows Apify's applicable storage pricing.

### Try it in three steps

1. Enter keywords or product URLs and IDs. Set a small result limit for your first run.
2. Turn on **Detail tier** for descriptions, specifications and SKUs, or leave it off for search-list results. Explicit product IDs use detail mode. Run the Actor.
3. Inspect the dataset and export the results in your preferred available format.

### Coverage and FAQ

**What are the limits?** Reference prices and stock can be missing. Failed explicit IDs produce a status row; partial detail may be billed at the list rate. Search is capped at 100 pages per keyword.

The requested result limit defaults to 40 and can be set up to 4,000 per keyword.

**Is this a live feed?** Each run is a snapshot of available source information. Listings, prices and other details may change after collection; a requested maximum is a ceiling, not a promise of that many results.

**Can I use the data for ongoing analysis?** Yes, export it to your own workflow. Scheduling repeated runs or acting on the exported results requires your own workflow.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/pchome-24h-products/changelog.md

# Actor input Schema

## `keywords` (type: `array`):

Searched on PChome 24h. Empty input falls back to \["iphone"].

## `productUrlsOrIds` (type: `array`):

Optional. 24h.pchome.com.tw/prod/… URLs or Ids like DYAJNV-1900KFKV5. Always detail tier; exactly one output row per Id (failed Ids get an uncharged status=failed row).

## `maxItemsPerKeyword` (type: `integer`):

40 per page; PChome caps search at 100 pages.

## `scrapeDetails` (type: `boolean`):

Adds intro HTML/text/images, statement, equipment, slogans, SKUs, shipping flags. Charged as detail-item.

## `minPrice` (type: `integer`):

Optional client-side filter (filtered items are not charged).

## `maxPrice` (type: `integer`):

Optional client-side filter.

## `detailConcurrency` (type: `integer`):

Request starts stay ≥1 s apart.

## `maxRunSeconds` (type: `integer`):

Stops cleanly and writes OUTPUT.

## `requestIntervalMs` (type: `integer`):

Polite rate limit.

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

Off by default (direct works).

## Actor input object example

```json
{
  "keywords": [
    "iphone"
  ],
  "maxItemsPerKeyword": 40,
  "scrapeDetails": false,
  "detailConcurrency": 3,
  "maxRunSeconds": 3600,
  "requestIntervalMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Rows saved in the default dataset: list-tier products, detail-tier products, uncharged failed-Id rows, and an optional run-notice row when the run is truncated.

## `output` (type: `string`):

Full JSON run summary: echoed input, pricing, per-keyword search reach, pushed/failed/error counts, truncation reason, unavailable fields, and HTTP statistics.

## `runSummary` (type: `string`):

Compact JSON run summary with timings, counts, per-keyword reach, request totals, and pricing events.

# 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 = {
    "keywords": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/pchome-24h-products").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 = { "keywords": ["iphone"] }

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/pchome-24h-products").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 '{
  "keywords": [
    "iphone"
  ]
}' |
apify call stone_jadex/pchome-24h-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/pchome-24h-products"
        }
    }
}
```

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/mT0Qeq5jQSCriomqW/builds/Eryua0VBAbHDllMeV/openapi.json
