# PChome Offers API Documentation

<p><strong>PChome Offers API</strong> lists variant offers for one product. Each offer has the original price, sale price and lowest price as TWD numbers, the stock, availability and sale state.</p><p>Costs 1 credit per successful request. Empty results and failed requests are free.</p>

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

## 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 DYAJ2X-1900J84C5. |

## Example response

```json
{
    "data": {
        "offers": [
            {
                "price": 32900,
                "stock": 0,
                "currency": "TWD",
                "offer_id": "DYAJ2X-1900J84C5-000",
                "button_type": "OrderRefill",
                "availability": "out_of_stock",
                "lowest_price": 31400,
                "original_price": 32900,
                "discount_percent": null
            }
        ],
        "currency": "TWD",
        "product_id": "DYAJ2X-1900J84C5"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "offers"
    },
    "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)
