# PChome Product API Documentation

<p><strong>PChome Product API</strong> opens one product. Send the product id from search, or a product url.</p><p>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.</p>

- **Documentation:** [https://scrappa.co/docs/pchome-api/pchome_product](https://scrappa.co/docs/pchome-api/pchome_product)
- **API group:** PChome 24h API
- **Endpoint:** `GET https://scrappa.co/api/pchome/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Product id from search, for example DYAJKE-A900FVZ88. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
