# Shopee 商品详情 API (shopee.product_detail)

- Canonical page: [https://everyinfra.com/shopee-api/product_detail](https://everyinfra.com/shopee-api/product_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "shopee", "action": "product_detail", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

Shopee 商品详情按商品链接读取一件商品的完整资料：名称、商品描述全文、现价与原价及币种、折扣说明、库存、销量、评分与评价数、规格变体、主图，以及店铺名称和所在地。它回答「这件竞品怎么定价、卖得如何、从哪里发货」，适合东南亚和拉美市场的跨境卖家拆解对手商品、大促前核对价格，或者同步自己的商品库。

Shopee 每个国家站是独立的商城，币种各不相同，`price`、`original_price` 要和 `currency` 一起读，不同站点的数字不能直接比。站点从链接自动识别，`country` 一般不传，只在要覆盖识别结果时设置。`review_count` 为 null 只说明 Shopee 没有公开评价数，并不是没人评价。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=shopee&action=product_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Shopee 商品完整链接，支持标准 i.店铺ID.商品ID 或 /product/店铺ID/商品ID 路径；不是店铺主页。 |
| country | enum: br / id / mx / my / ph / sg / th / vn | no | not declared | 可选商城覆盖值，支持 br/id/th/my/sg/ph/vn/mx；通常应省略并由商品 URL 自动识别。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| price | 价格数值，不含货币符号；币种见 currency。商品详情（product_detail）缺价格时这次调用不扣费，其余数据照常返回。 |
| original_price | 原价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| discount | 折扣说明。 |
| stock | 库存。 |
| sold_count | 销量。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| shop_name | 店铺名。 |
| shop_location | 店铺所在地。跨境店和本地店的物流时效差很多。 |
| variants | 规格变体。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "shopee",
  "action": "product_detail",
  "params": {
    "url": "https://shopee.co.id/Puppy-Casing-Hp-Untuk-IPhone-11-12-13-14-15-16-Pro-Max-XR-X-XS-Max-Case-Kucing-Petelur-Luxury-Leather-Colorful-Painted-Protective-Phone-Cover-i.1003966504.53252749487"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "shopee",
        "action": "product_detail",
        "params": {
            "url": "https://shopee.co.id/Puppy-Casing-Hp-Untuk-IPhone-11-12-13-14-15-16-Pro-Max-XR-X-XS-Max-Case-Kucing-Petelur-Luxury-Leather-Colorful-Painted-Protective-Phone-Cover-i.1003966504.53252749487",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "shopee",
  "action": "product_detail",
  "results": {
    "id": "•••",
    "url": "https://shopee.co.id/Puppy-Casing-Hp-Untuk-IPhone-11-12-13-14-15-16-Pro-Max-XR-X-XS-Max-Case-Kucing-Petelur-Luxury-Leather-Colorful-Painted-Protective-Phone-Cover-i.1003966504.53252749487",
    "name": "Puppy Casing Hp Untuk IPhone ••• Pro Max XR X XS Max Case Kucing Petelur Luxury Leather Colorful Painted Protective Phone Cover",
    "text": "1.Perfect fit for your phone model\n\n2.Material------high quality silicone,No peculiar smell,make your phone Classic Elegant.\n\n3.Green environmental protection,fashion cartoon design\n\n4.According to the real mobile phone opening shape,perfect access design for speaker,buttons,came…",
    "price": 14999,
    "original_price": 100000,
    "currency": "IDR",
    "discount": 85,
    "rating": 4.6,
    "shop_name": "akcaseno.1",
    "shop_location": "KAB. TANGERANG",
    "variants": [
      {
        "modelId": "•••",
        "name": "Black#3,For iPhone 16 Pro",
        "tierIndex": [
          2,
          18
        ],
        "imageUrl": "https://down-id.img.susercontent.com/file/sg-11134201-81zws-mmjqi7n2jrid12"
      },
      {
        "modelId": "•••",
        "name": "Black,For iPhone 11",
        "tierIndex": [
          0,
          3
        ],
        "imageUrl": "https://down-id.img.susercontent.com/file/sg-11134201-822zx-mhzwvtds3ifc90"
      },
      {
        "modelId": "•••",
        "name": "Pink,For iPhone X & XS",
        "tierIndex": [
          3,
          0
        ],
        "imageUrl": "https://down-id.img.susercontent.com/file/sg-11134201-822z1-mhzwvvc6xjpded"
      }
    ],
    "image_url": "https://down-id.img.susercontent.com/file/sg-11134201-822yq-mhzwvmkjwgsge2",
    "platform": "shopee",
    "rating_scale": 5
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `url` 支持哪些链接格式？

支持路径里同时带店铺 ID 和商品 ID 的完整商品链接：一种以 i.<店铺ID>.<商品ID> 结尾，例如本页示例的 shopee.co.id 链接；另一种的路径是 /product/<店铺ID>/<商品ID>。店铺首页不是商品链接，在这里读不到。

### 价格字段应该怎么读？

`price` 是当前售价的纯数字，`original_price` 是折扣前的价格，`discount` 是 Shopee 页面上的折扣文案。两个价格的币种都写在 `currency` 里，它为 null 时不要自行假定；商品有多个规格时，报价前先看 `variants`。

### 为什么要关注 `shop_location`？

它是店铺所在地。跨境店和本地店的物流时效相差很大，标价相同的两件商品，买家的等待时间可能完全不同。比较竞品的价格和 `sold_count` 之前，先按所在地把跨境卖家和本地卖家分成两组。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=shopee
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
