# 抖音 热点宝话题热榜 API (douyin.billboard_topic_hot)

- Canonical page: https://everyinfra.com/douyin-api/billboard_topic_hot
- Endpoint: POST /api/v1/social with {"platform": "douyin", "action": "billboard_topic_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

热点宝话题热榜的每一行是一个话题：话题 ID `hashtag_id`、话题名 `hashtag_name`（不带 #）、时间窗内的热度分 `hot_value`、累计播放量 `total_view_count`、累计作品数 `total_video_count`，以及话题下作品的平均播放量 `average_view_count`。累计数从话题创建起算，热度分只算所选时间窗，两者不要混着读。

`keyword` 限定话题名里要含的词，例如 美食；`time_window` 决定热度分按哪个时间窗算，默认 `1d`，即最近 24 小时。`daily_trend` 给这个话题最多 14 天的逐日热度，日期按中国时间。每个榜最多约 1000 个话题，每页 50 个。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=douyin&action=billboard_topic_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（每个榜最多约 1000 个）。 |
| 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 是热点宝榜单名次（翻页接着往下数）。 |
| hashtag_id | 话题 ID（纯数字字符串）；作为 hashtag_detail 的 hashtag_id 传回可读这个话题的累计数据。 |
| hashtag_name | 话题名，不带 #。 |
| hot_value | 热度值，抖音自有指标，只在同一榜单、同一时间窗内可比：trending 是热榜热度（热点榜 hotspot 的行上常常为空）；热点宝视频榜（billboard_video_hot 等）是榜单热度分，行按它从高到低排；billboard_search_hot 是这个词在时间窗里的搜索热度；billboard_rise_list、billboard_challenge_hot 是热点热度，billboard_topic_hot 是话题在时间窗里的热度分。 |
| total_view_count | 话题累计播放量（hashtag_detail、billboard_topic_hot），从话题创建起算，是平台给的话题统计。 |
| total_video_count | 话题下累计作品数（billboard_topic_hot）。 |
| average_view_count | 榜单快照内的平均视频播放量；话题榜（billboard_topic_hot）是话题下作品的平均播放量。 |
| cover_image_url | 封面图链接：search / user_posts 是作品封面，music_search / music_detail 是音乐封面，billboard_topic_hot 是话题配图。 |
| created_at | 创建时间，格式同 posted_at。 |
| daily_trend | 这个话题的逐日热度（billboard_topic_hot）：[{date（YYYY-MM-DD，中国日期）, value}]，从早到晚，最多 14 天。 |
| next_page_token | 翻页令牌（search / user_posts / comments / comment_replies / billboard_video_hot / billboard_low_fan_explosion / billboard_high_completion / billboard_account_search / music_search / billboard_rise_list / billboard_topic_hot）：作为下一次请求的 page_token 原样传回取下一页（其余参数不变，24 小时内有效）；同一页每行的值相同，响应顶层也有同一个 next_page_token。没有该字段即到底。评论翻页逐页覆盖全部顶层评论。 |
| 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_topic_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_topic_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_topic_hot",
  "results": [
    {
      "rank": …,
      "hashtag_id": …,
      "hashtag_name": …,
      "hot_value": …,
      "total_view_count": …,
      "total_video_count": …,
      "average_view_count": …,
      "cover_image_url": …,
      "created_at": …,
      "daily_trend": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 榜上的话题怎么接着读详情？

把 `hashtag_id` 作为话题详情的 `hashtag_id` 传回去，就能读到这个话题的累计数据。`hashtag_id` 是纯数字字符串，不是话题名，`hashtag_name` 只用来展示。

### 最多能翻到第几个话题？

约 1000 个。每个榜最多约 1000 个话题，按每页 50 个往下翻，到这个数就到底了；`limit` 传了也不起作用。

### `total_view_count` 和 `average_view_count` 有什么差别？

`total_view_count` 是话题从创建起累计的播放量，是平台给的话题统计；`average_view_count` 是话题下作品的平均播放量。前者看话题整体有多大，后者看一条作品通常能拿到多少播放。`hot_value` 则是所选时间窗里的热度分。

## 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
