# TikTok 电商商品搜索 API (tiktok.shop_search)

- Canonical page: https://everyinfra.com/tiktok-api/shop_search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "shop_search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- 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_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的公开视频关键词；shop_search 则搜索 TikTok Shop 商品，两者不是同一数据集。 |
| country | not declared | no | not declared | shop_search / shop_creator 的商城地区代码，默认 US/us；不是视频作者国籍或全站内容地区过滤。支持的市场以目录为准。 |
| page | integer | no | not declared | 仅 shop_search 使用的商品搜索页码，整数，从 1 开始，默认 1；不会翻页视频评论或作者视频。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| sold_count | 销量。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| shop_name | 小店名称（TikTok Shop 用）。 |
| 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": "tiktok",
  "action": "shop_search",
  "params": {
    "keyword": "coffee"
  }
}'
```

```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_search",
        "params": {
            "keyword": "coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "shop_search",
  "results": [
    {
      "id": "•••",
      "url": "https://shop.tiktok.com/us/pdp/coffee-cup-perfect-for-espresso-cappuccino-lovers-durable-design/1732307512139747336",
      "name": "coffee cup",
      "price": "$1.00",
      "currency": "USD",
      "sold_count": 2,
      "review_count": 0,
      "shop_name": "A&R things",
      "image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/72efa53dd7d6465e86f8b6afda3e8dbc~tplv-fhlh96nyum-crop-webp:600:600.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=a6e80448&idc=useast5&from=2378011839",
      "platform": "tiktok"
    },
    {
      "id": "•••",
      "url": "https://shop.tiktok.com/us/pdp/coffee-table-by-handcrafted-designs-unique-artisan-style-table/1729468442804392307",
      "name": "coffee table",
      "price": "$32.00",
      "currency": "USD",
      "sold_count": 24,
      "review_count": 0,
      "shop_name": "KramerD",
      "image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/5fe2c6ae084e40d995c17828996d6d28~tplv-fhlh96nyum-crop-webp:1200:1200.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=a6e80448&idc=useast5&from=2378011839",
      "platform": "tiktok"
    }
  ],
  "count": 20,
  "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
