---
title: "PChome 24h API: Search | Perceptlayer"
description: "Search from PChome 24h as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/pchome/search
---

[APIs](https://perceptlayer.com/apis) / [PChome 24h](https://perceptlayer.com/apis/pchome) / 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.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 120 characters |
| `page` | integer | Optional | Any |
| `shop` | string | Optional | all, 24h, 24b, vdr, tour |
| `sort` | string | Optional | sale/dc, rnk/dc, prc/dc, prc/ac, new/dc |
| `min_price` | number | Optional | Any |
| `max_price` | number | Optional | Any |
| `brand` | string | Optional | Up 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 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/pchome?try=search#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.

| Field | Type |
| --- | --- |
| `currency` | string |
| `results` | object\[\] |
| `pagination` | object |
| `category` | object |
