APIs / PChome 24h / Search

PChome 24h: Search

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

GET /v1/pchome/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 120 characters
pageintegerOptionalAny
shopstringOptionalall, 24h, 24b, vdr, tour
sortstringOptionalsale/dc, rnk/dc, prc/dc, prc/ac, new/dc
min_pricenumberOptionalAny
max_pricenumberOptionalAny
brandstringOptionalUp to 120 characters

Example request

PChome 24h
GET/v1/pchome/search?query=iphone
{
  "success": true,
  "data": {
    "query": "iphone",
    "currency": "TWD",
    "results": [
      {
        "product_id": "DYAJKE-A900FVZ88",
        "title": "【福利品】 iPhone 12 128G 6.1吋 全機9成新 台灣公司貨",
        "brand": "Apple",
        "price": 10580,
        "original_price": 10580,
        "discount_percent": 0,
        "currency": "TWD",
        "seller": "PChome 24h",
        "is_official": true,
        "category_id": "DYAJKE",
        "image": "https://d.ecimg.tw/items/DYAJKEA900FVZ88/000001_1734420200.jpg",
        "url": "https://24h.pchome.com.tw/prod/DYAJKE-A900FVZ88"
      },
      {
        "product_id": "DYAJ2X-1900J84C5",
        "title": "iPhone 17 (256G)",
        "brand": "Apple",
        "price": 32900,
        "original_price": 32900,
        "discount_percent": 0,
        "currency": "TWD",
        "seller": "PChome 24h",
        "is_official": true,
        "category_id": "DYAJ2X",
        "image": "https://d.ecimg.tw/items/DYAJ2X1900J84C5/000001_1761212935.jpg",
        "url": "https://24h.pchome.com.tw/prod/DYAJ2X-1900J84C5"
      },
      {
        "product_id": "DYAJ2S-A900GTR0K",
        "title": "【福利品】 iPhone 14PRO 256G 6.1吋 台灣公司貨",
        "brand": "Apple",
        "price": 26990,
        "original_price": 26990,
        "discount_percent": 0,
        "currency": "TWD",
        "seller": "PChome 24h",
        "is_official": true,
        "category_id": "DYAJ2S",
        "image": "https://d.ecimg.tw/items/DYAJ2SA900GTR0K/000001_1734416924.png",
        "url": "https://24h.pchome.com.tw/prod/DYAJ2S-A900GTR0K"
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 20,
      "has_next": true,
      "total_results": 48870,
      "filtered_out": 0
    },
    "category": {}
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_42f0c389d0b8416d80bc9c9d8f388c41",
    "credits_charged": 1,
    "credits_remaining": 4874
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

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

Response fields

data has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
currencystring
resultsobject[]
paginationobject
categoryobject