# 抖音 话题详情 API (douyin.hashtag_detail)

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

话题详情读一个抖音话题的累计数据：按 `hashtag_id` 返回话题名 `hashtag_name`（不带 #）、累计播放量 `total_view_count`、参与过的用户数 `participant_count`、创建时间 `created_at` 和话题链接 `url`。累计播放量从话题创建起算，是平台给的话题统计，用来判断话题整体有多大。

`hashtag_id` 是纯数字，如 1767586897793101，取自话题搜索或热点宝话题热榜行里的 `hashtag_id`，不能填话题名。最近 7 天的热度和作品数不在这个接口里，用话题搜索读。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| hashtag_id | not declared | yes | not declared | 话题 ID，纯数字（例如 1767586897793101），取自 hashtag_search 返回行的 hashtag_id；不是话题名。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| hashtag_id | 话题 ID（纯数字字符串）；作为 hashtag_detail 的 hashtag_id 传回可读这个话题的累计数据。 |
| hashtag_name | 话题名，不带 #。 |
| total_view_count | 话题累计播放量（hashtag_detail、billboard_topic_hot），从话题创建起算，是平台给的话题统计。 |
| participant_count | 参与过这个话题的用户数（hashtag_detail），累计值。 |
| created_at | 创建时间，格式同 posted_at。 |
| url | 该记录在原平台上的可访问链接。 |
| 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": "hashtag_detail",
  "params": {
    "hashtag_id": "1767586897793101"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "hashtag_detail",
  "results": {
    "hashtag_id": "1767586897793101",
    "hashtag_name": "美食",
    "total_view_count": 895250240978,
    "participant_count": 66198080,
    "created_at": "2023-06-02T10:37:18+00:00",
    "url": "https://www.iesdouyin.com/share/challenge/1767586897793101/?u_code=0&from_ssr=1",
    "platform": "douyin"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 只有话题名，怎么拿到 `hashtag_id`？

先用话题搜索，把话题名里的词作关键词，结果行里的 `hashtag_id` 就是要的纯数字 ID；热点宝话题热榜的行里也有。把它原样传给话题详情，话题名不能直接传。

### `total_view_count` 是最近的播放量吗？

不是。它从话题创建起累计，是平台给的话题统计，没有时间窗；创建时间在 `created_at`，格式和作品的发布时间一致。要看最近 7 天的数据，用话题搜索，它带最近 7 天的热度、作品数、点赞和播放。

### `participant_count` 和作品数是一回事吗？

不是。`participant_count` 数的是参与过这个话题的用户，是累计值，不是作品数。这个接口不返回作品数；热点宝话题热榜有累计作品数，话题搜索有最近 7 天的作品数。

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