Skip to content
Scrappa Get API key
PChome 24h API 1 credit / request

PChome Product API Documentation

GET https://scrappa.co/api/pchome/product

PChome Product API opens one product. Send the product id from search, or a product url.

The answer has the title, TWD sale price, original price, lowest price, full-size image url and the upstream variant ids. The product source has no brand or seller. An original price of zero is reported as null. Costs 1 credit per successful request. Empty results and failed requests are free.

PChome Product API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/pchome/product
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "url": "https://24h.pchome.com.tw/prod/DYAJKE-A900FVZ88",
        "image": "https://d.ecimg.tw/abc.jpg",
        "price": 10580,
        "title": "iPhone",
        "currency": "TWD",
        "product_id": "DYAJKE-A900FVZ88",
        "variant_ids": [
            "DYAJKE-A900FVZ88-000"
        ],
        "lowest_price": null,
        "original_price": null
    },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

id string Required

Product id from search, for example DYAJKE-A900FVZ88.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "url": "https://24h.pchome.com.tw/prod/DYAJKE-A900FVZ88",
        "image": "https://d.ecimg.tw/abc.jpg",
        "price": 10580,
        "title": "iPhone",
        "currency": "TWD",
        "product_id": "DYAJKE-A900FVZ88",
        "variant_ids": [
            "DYAJKE-A900FVZ88-000"
        ],
        "lowest_price": null,
        "original_price": null
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "A search text is required."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

The source could not be reached. This response is not billable. Retry shortly.

{
    "meta": {
        "credits": 0,
        "billable": false,
        "retryable": true,
        "endpoint_family": "product"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The source could not be reached."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.