# TikTok 粉丝数量 API (tiktok.followers)

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

TikTok 粉丝数量按 `username` 读一个公开账号的几个汇总计数：`follower_count` 粉丝数、`following_count` 关注数、`like_count` 点赞数、`post_count` 发布内容总数，外加 `connection_count` 和精确度标记 `precision`。它回答「这个账号现在有多少粉丝」，适合联系达人之前先核体量，也适合定期读同一个账号，自己存涨粉曲线。

返回单个对象。`username` 可带 @，不要放抖音的 secUid 或完整主页链接；`channel` 是兼容输入，同时传时以 `username` 为准。简介、外链、认证状态、头像和创建时间这里没有，用主页详情那一页读。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | 公开 TikTok 用户短名，可带 @，不要把抖音 secUid 或完整主页 URL 塞入此字段。followers 只取粉丝数量；shop_creator 查询指定市场的带货达人信息。 |
| channel | not declared | no | not declared | followers 的账号兼容输入，优先级低于 username；不用于 TikTok Shop 商品搜索。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| username | 用户名（@handle）。 |
| url | 该记录在原平台上的可访问链接。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| following_count | 关注数。null 表示不公开，不等于 0。 |
| post_count | 发布内容总数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| connection_count | 关联数。 |
| precision | 数据精确度标记。 |
| 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": "followers",
  "params": {
    "username": "nasa"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `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": "followers",
  "results": {
    "id": "nasa",
    "username": "nasa",
    "url": "https://www.tiktok.com/@nasa",
    "follower_count": 1823149,
    "following_count": 23,
    "post_count": 48,
    "like_count": 9593329,
    "precision": "exact",
    "platform": "tiktok"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 只想要粉丝数，用这一项还是主页详情？

只要计数就用粉丝数量，它返回的字段少，还带 `id`、`post_count`、`connection_count` 和 `precision` 这四个主页详情没有的字段。要看简介、外链、认证状态、头像或创建时间，改用主页详情，粉丝数在两边都有。

### `channel` 参数什么时候用？

平时用不到。它是账号的兼容输入，优先级低于 `username`，两个都传时只看 `username`。它也不用于 TikTok Shop 的商品搜索，查商品不要走这里。

### `follower_count` 是 null 能当 0 吗？

不能。`follower_count`、`following_count` 和 `post_count` 为 null，都表示这项数据不公开，不等于 0。`precision` 是数据精确度标记，存档时和计数一起保存，回头对比两次读数时才知道它们的精确度是否一致。

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