# TikTok 商品详情 API (tiktok.shop_product_detail)

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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| product_id | not declared | yes | not declared | TikTok Shop 商品 ID，纯数字；或 shop.tiktok.com 的 /pdp/ 商品链接。 |
| country | not declared | no | not declared | 商品所在商城地区代码：US（默认）、MX、SG、MY、PH、TH、VN、ID、JP；别的地区（如巴西 BR）返回 422、不扣费。商品不存在、已下架或不在这个地区卖时，返回 200 和空结果，empty_reason 为 item_not_found，不扣费。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| image_urls | 图文（轮播）作品的每张图片地址（video_download、photos、playlist_videos、user_reposts、user_stories；photos、user_stories 里和 images 是同一批图，按作品里的顺序）；商品的全部主图地址（shop_search、shop_category_products、shop_products），shop_search 里第一张同 cover_url。 |
| brand_name | 商品的品牌名（shop_search、shop_category_products、shop_products）；商品没标品牌时没有这个字段。top_ads 里是广告主的品牌名；TikTok 没显示品牌时没有这个字段。 |
| category_ids | 商品所在类目的编号，从大类到小类（shop_product_detail）。 |
| category_names | 商品所在类目的名称，和 category_ids 一一对应，用那个站的语言（shop_product_detail）。 |
| shop_id | 店铺 ID（shop_search、shop_products），可以直接传给 shop_products 的 shop_id。 |
| shop_name | 小店名称（TikTok Shop 用）。 |
| shop | 卖这件商品的店铺：shop_id、shop_name、url、logo_url 等，平台给了才有（shop_product_detail）。 |
| is_in_stock | 商品现在有没有货（shop_product_detail）。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_count | 参与评分的人数。null 表示不公开，不等于 0。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| sold_count | 销量。 |
| rating_distribution | 各星级的评分人数，键是 1 到 5（shop_product_detail）。 |
| skus | 各规格：sku_id、price、original_price、stock（库存）、purchase_limit（每单限购）、specs（规格名和值）（shop_product_detail）。 |
| variant_labels | 商品页上默认选中的规格名（shop_product_detail）。 |
| variant_options | 可选的规格项：每项有 name 和 values，values 里每个值可带 image_url（shop_product_detail）。 |
| specs | 商品参数表，键是参数名、值是参数值，用那个站的语言（shop_product_detail）。 |
| description | 简介或描述，通常比 text 短。 |
| shipping_fee | 默认配送的运费，当地币种，免运费是 0（shop_product_detail）。 |
| shipping_method | 默认配送方式的名称（shop_product_detail）。 |
| shipping_days_min | 默认配送最快几天送到（shop_product_detail）。 |
| shipping_days_max | 默认配送最慢几天送到（shop_product_detail）。 |
| ai_summary | 平台给的评价摘要，平台没给时没有这个字段（shop_product_detail）。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "tiktok",
  "action": "shop_product_detail",
  "params": {
    "product_id": "1730991511457465439",
    "country": "MY"
  }
}'
```

```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": "tiktok",
        "action": "shop_product_detail",
        "params": {
            "product_id": "1730991511457465439",
            "country": "MY",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "shop_product_detail",
  "results": {
    "id": …,
    "name": …,
    "url": …,
    "country": …,
    "price": …,
    "original_price": …,
    "currency": …,
    "image_url": …,
    "image_urls": …,
    "brand_name": …,
    "category_ids": …,
    "category_names": …,
    "shop_id": …,
    "shop_name": …,
    "shop": …,
    "is_in_stock": …,
    "rating": …,
    "rating_scale": …,
    "rating_count": …,
    "review_count": …,
    "sold_count": …,
    "rating_distribution": …,
    "skus": …,
    "variant_labels": …,
    "variant_options": …,
    "specs": …,
    "description": …,
    "shipping_fee": …,
    "shipping_method": …,
    "shipping_days_min": …,
    "shipping_days_max": …,
    "ai_summary": …,
    "collected_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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