# 抖音 热点宝账号搜索 API (douyin.billboard_account_search)

- Canonical page: https://everyinfra.com/douyin-api/billboard_account_search
- Endpoint: POST /api/v1/social with {"platform": "douyin", "action": "billboard_account_search", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of up to 30 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- 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` 找抖音账号，例如 美食，每个账号返回 `user_id`、昵称 `nickname`、主页链接 `url`、头像 `avatar_url`，以及粉丝数 `follower_count`、获赞数 `like_count` 和作品数 `video_count`。它和上升热点榜同属热点宝，但返回的是账号，不是热点，没有名次和热度字段。

`follower_count` 和 `like_count` 为 null 表示不公开，不等于 0，筛选时不要把 null 当成没有粉丝。每页最多 30 个账号，有时少一两个，短页不代表到底，响应里没有 `next_page_token` 才是翻完；`avatar_url` 带尺寸参数，可能有时效。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 账号关键词，例如 美食；返回相关的抖音账号和它们的粉丝数、获赞数、作品数。 |
| page_token | not declared | no | not declared | 翻页令牌。不传是第 1 页；之后把上一页响应里的 next_page_token 原样传回取下一页，其余参数不变。每页最多 30 个账号（有时少一两个，不代表到底）、算一次调用；令牌 24 小时内有效；翻到底时没有 next_page_token。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | 用户在原平台的唯一 ID。 |
| nickname | 昵称。 |
| url | 该记录在原平台上的可访问链接。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| video_count | 视频数：profile、billboard_account_search 是账号的作品数，trending、billboard_rise_list、billboard_challenge_hot 是这个热点下的相关视频数。 |
| 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_account_search",
  "params": {
    "keyword": "美食"
  }
}'
```

```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_account_search",
        "params": {
            "keyword": "美食",
        },
    },
    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_account_search",
  "results": [
    {
      "user_id": …,
      "nickname": …,
      "url": …,
      "avatar_url": …,
      "follower_count": …,
      "like_count": …,
      "video_count": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 一页不满 30 个，是不是翻到底了？

不是。每页最多 30 个账号，有时会少一两个，短页不代表到底。只有响应里不再带 `next_page_token`，才算翻完；`limit` 能传但不起作用，每页算一次调用。

### 账号的粉丝数是 null 怎么处理？

`follower_count` 为 null 表示账号不公开，不等于 0；`like_count` 为 null 同理，表示接口不公开这项数据。按粉丝量筛选账号时，把 null 单独归为「未知」，不要放进「粉丝很少」。

### 怎么缩小账号的范围？

`keyword` 填账号相关的词，例如 美食，接口返回相关的抖音账号，带粉丝数、获赞数和作品数。这个接口除了 `keyword` 只有翻页令牌，没有粉丝区间之类的筛选参数，缩小范围只能换更具体的词，或者拿到结果后按 `follower_count` 自己过滤。

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