# 抖音 热点宝搜索热榜 API (douyin.billboard_search_hot)

- Canonical page: https://everyinfra.com/douyin-api/billboard_search_hot
- Endpoint: POST /api/v1/social with {"platform": "douyin", "action": "billboard_search_hot", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of 50 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

热点宝搜索热榜返回的是搜索词，不是视频，也不是话题：每行有一个上榜的搜索词（字段 `keyword`）、名次 `rank` 和这个词在时间窗里的搜索热度 `hot_value`。请求里同名的 `keyword` 参数用来筛词，例如 美食，不传就是全站搜索热榜；`time_window` 在 `1h`、`1d`、`3d`、`7d` 之间切换，默认 `1d`。

`search_trend` 给这个词逐日的搜索热度，日期从早到晚，最后一天是最近一个完整日（中国时间），最多 14 天，新上榜的词更短。默认的 `1d` 下，最后一天的数值等于 `hot_value`。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | no | not declared | 只看含这个词的搜索词（可选），例如 美食；不传是全站搜索热榜。 |
| page_token | not declared | no | not declared | 翻页令牌。不传是第 1 页（前 50 个词）；之后把上一页响应里的 next_page_token 原样传回取下一页，其余参数不变。每页最多 50 个词、算一次调用；令牌 24 小时内有效；翻到底时没有 next_page_token。 |
| time_window | enum: 1d / 1h / 3d / 7d | no | not declared | 统计时间窗：1h 最近 1 小时 / 1d 最近 24 小时（默认）/ 3d 最近 3 天 / 7d 最近 7 天。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 名次（从 1 开始）：trending 是热榜排名，xingtu_creator_rankings 是星图榜单里的名次，billboard_search_hot 是搜索热榜名次，search_suggest 是联想词在抖音搜索框里的顺序；billboard_rise_list、billboard_challenge_hot、billboard_topic_hot 是热点宝榜单名次（翻页接着往下数）。 |
| keyword | 关键词：trending 是热点词，billboard_search_hot 是上榜的搜索词，search_suggest 是抖音给出的联想搜索词。 |
| hot_value | 热度值，抖音自有指标，只在同一榜单、同一时间窗内可比：trending 是热榜热度（热点榜 hotspot 的行上常常为空）；热点宝视频榜（billboard_video_hot 等）是榜单热度分，行按它从高到低排；billboard_search_hot 是这个词在时间窗里的搜索热度；billboard_rise_list、billboard_challenge_hot 是热点热度，billboard_topic_hot 是话题在时间窗里的热度分。 |
| search_trend | 这个搜索词的逐日搜索热度（billboard_search_hot）：[{date（YYYY-MM-DD）, value}]，日期从早到晚、最后一天是最近一个完整日（中国时间），最多 14 天（新上榜的词更短）；默认时间窗 1d 下最后一天的 value 等于 hot_value。 |
| 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": "douyin",
  "action": "billboard_search_hot",
  "params": {}
}'
```

```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": "douyin",
        "action": "billboard_search_hot",
        "params": {},
    },
    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": "douyin",
  "action": "billboard_search_hot",
  "results": [
    {
      "rank": …,
      "keyword": …,
      "hot_value": …,
      "search_trend": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `time_window` 该选哪个？

`1h` 是最近 1 小时，`1d` 是最近 24 小时，`3d` 是最近 3 天，`7d` 是最近 7 天，默认 `1d`。`hot_value` 是这个词在所选时间窗里的搜索热度，只在同一榜单、同一时间窗内可比，换了时间窗就要重新取，不能和上一次的数混着排名。

### `search_trend` 为什么有的词只有几天？

`search_trend` 最多 14 天，新上榜的词历史更短，天数自然少。日期按中国时间算，最后一天是最近一个完整日。画折线图时按日期对齐不同的词，不要按序号对齐。

### 搜索热榜和话题热榜怎么分工？

搜索热榜看人们在搜什么词，返回词本身和逐日搜索热度；话题热榜看话题，返回话题 ID、累计播放量和作品数。先用搜索热榜发现词，再用话题热榜或话题搜索，看这个词有没有对应的话题。

## Also

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