APIs / PChome 24h / Variants

PChome 24h: Variants

Variants from PChome 24h as JSON. 1 credit per successful call.

GET /v1/pchome/variants

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
idstringRequiredUp to 120 characters

Example request

PChome 24h
GET/v1/pchome/variants?id=DYAJKE-A900FVZ88
{
  "success": true,
  "data": {
    "product_id": "DYAJKE-A900FVZ88",
    "variants": [
      {
        "variant_id": "DYAJKE-A900FVZ88-002",
        "name": "【福利品】Apple iPhone 12 128G 全機9成新 6.1吋 台灣公司貨",
        "spec": "白色",
        "group": "DYAJKE-A900FVZ88",
        "sequence": 34863808,
        "stock": 3,
        "availability": "in_stock",
        "is_preorder": false
      },
      {
        "variant_id": "DYAJKE-A900FVZ88-003",
        "name": "【福利品】Apple iPhone 12 128G 全機9成新 6.1吋 台灣公司貨",
        "spec": "黑色",
        "group": "DYAJKE-A900FVZ88",
        "sequence": 34863809,
        "stock": 4,
        "availability": "in_stock",
        "is_preorder": false
      },
      {
        "variant_id": "DYAJKE-A900FVZ88-005",
        "name": "【福利品】Apple iPhone 12 128G 全機9成新 6.1吋 台灣公司貨",
        "spec": "綠色",
        "group": "DYAJKE-A900FVZ88",
        "sequence": 34863811,
        "stock": 2,
        "availability": "in_stock",
        "is_preorder": false
      }
    ]
  },
  "meta": {
    "endpoint_family": "variants"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 30 Nov 2026 and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.variants has these 8 fields, read from a recorded call that returned 3 items. The recording leaves out fields that were empty, so a live call can return more.

FieldType
variant_idstring
namestring
specstring
groupstring
sequenceinteger
stockinteger
availabilitystring
is_preorderboolean