# TikTok 话题详情 API (tiktok.hashtag_detail)

- Canonical page: [https://everyinfra.com/tiktok-api/hashtag_detail](https://everyinfra.com/tiktok-api/hashtag_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "hashtag_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=hashtag_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| hashtag | not declared | yes | not declared | 话题：名字（如 nasa，可带 #）、话题链接 https://www.tiktok.com/tag/<名字>，或纯数字的话题编号。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| hashtag_id | 话题 ID（hashtag_search、trending_hashtags）。 |
| hashtag_name | 话题名，不带 #（hashtag_search、trending_hashtags）。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| video_count | 视频数。 |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| cover_image_url | 视频封面图链接（带签名，会过期）。 |
| is_commercial | 是否 TikTok 商用曲库里的音乐（music_search / music_chart）。 |
| announcement | 话题页顶上的公告文字（hashtag_detail）；没有公告的没有这个字段。 |
| 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": "hashtag_detail",
  "params": {
    "hashtag": "fyp"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-11-21T07:21:31Z. `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": "tiktok",
  "action": "hashtag_detail",
  "results": {
    "hashtag_id": "229207",
    "hashtag_name": "fyp",
    "url": "https://www.tiktok.com/tag/fyp",
    "video_count": 9551698607,
    "view_count": 132213607992265,
    "platform": "tiktok"
  },
  "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
