# Temu 关键词搜索 API (temu.search)

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

Temu 关键词搜索按 `keyword` 检索 Temu 商品，返回商品 ID、标题、价格与原价、折扣百分比、评分和评价条数、销量和销量展示文本、店铺 ID 和商品图。它回答「这个品类在 Temu 上卖什么、什么价、卖得怎样」，适合跨境选品、低价竞品监测和价格带分析。

用 `sort` 按相关度、销量、最新上架或价格升降排序。`sold_text` 是页面上的销量展示（如 10K+ sold），是区间不是精确值；`discount_pct` 结合 `original_price` 看促销力度。Temu 会按地区限制访问，某些地区或时段可能搜不到结果，没有返回数据的调用不扣费。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的商品关键词；部分地区可能没有结果。 |
| sort | enum: newest / popular / price_asc / price_desc / relevance | no | not declared | search 的结果排序：relevance 相关度、popular 销量优先、newest 最新上架、price_asc 价格从低到高、price_desc 价格从高到低。 |
| limit | integer (1–100) | no | 40 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| product_id | 商品 ID。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价。 |
| discount_pct | 折扣百分比。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| sold_count | 销量数值。 |
| sold_text | 销量展示文本（如 "10K+ sold"），是区间不是精确值。 |
| shop_id | 店铺 ID。 |
| 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": "temu",
  "action": "search",
  "params": {
    "keyword": "desk organizer"
  }
}'
```

```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": "temu",
        "action": "search",
        "params": {
            "keyword": "desk organizer",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "temu",
  "action": "search",
  "results": [
    {
      "product_id": 601103459446466,
      "title": "Multi-Tier Desk Organizer & Drawer Storage - Double Layer Desktop Shelf For Office Supplies, Stationery, Cosmetics | Space-Saving Cabinet For Bedroom, Office, Dorm Room Decor",
      "url": "https://www.temu.com/goods.html?goods_id=601103459446466",
      "price": 7.29,
      "original_price": 13.68,
      "discount_pct": 47,
      "currency": "USD",
      "rating": 0,
      "review_count": 0,
      "sold_count": 10000,
      "sold_text": "10K+ sold",
      "shop_id": 634418216917875,
      "image_url": "https://img.kwcdn.com/product/fancy/5157d76e-20ef-4da8-9586-03977bf19dbe.jpg",
      "platform": "temu",
      "rating_scale": 5
    },
    {
      "product_id": 601099651743804,
      "title": "360° Rotating Makeup Organizer - 1pc Plastic Cosmetic Storage with 5 Compartments - Multi-Functional Holder for Brushes, Lipsticks, Skin Care Products, and Stationery - Durable Unscented Desk Caddy with Stripe Design",
      "url": "https://www.temu.com/goods.html?goods_id=601099651743804",
      "price": 3.8,
      "currency": "USD",
      "rating": 0,
      "review_count": 0,
      "sold_count": 100000,
      "sold_text": "1M+ sold",
      "shop_id": 634418217537057,
      "image_url": "https://img.kwcdn.com/product/fancy/27e0e961-68f3-4c47-8dfe-fed8d3db6ecd.jpg",
      "platform": "temu",
      "rating_scale": 5
    }
  ],
  "count": 40,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 销量数字准确吗？

`sold_text` 是页面上的销量展示文本，例如 10K+ sold，是区间而不是精确值；`sold_count` 是对应的数值。比较商品时把它们当作量级参考，不要当成精确销量。

### 为什么有时搜不到结果？

Temu 的数据会受地区访问限制影响，目录里有这个能力不代表当前地区一定能取到数据，遇到限制时可能没有结果。没有返回数据的调用不扣费，可以换个时间再试。

### 怎么找出促销力度大的商品？

看 `discount_pct` 折扣百分比，再对照 `original_price` 和 `price`；按 `price_asc` 排序可以先看低价商品。价格不带货币符号，币种看 `currency`。

## Also

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