# 抖音 主页或对象详情 API (douyin.profile)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| user_id | not declared | yes | not declared | 抖音用户的 secUid（通常以 MS4w 开头），用于读取账号资料；该动作不接受 since 筛选账号。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | 用户在原平台的唯一 ID。 |
| douyin_id | 抖音号（用户自定义的可搜索 ID）。 |
| nickname | 昵称。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| url | 该记录在原平台上的可访问链接。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| following_count | 关注数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| video_count | 视频数：profile、billboard_account_search 是账号的作品数，trending、billboard_rise_list、billboard_challenge_hot 是这个热点下的相关视频数。 |
| gender | 性别。 |
| ip_location | IP 属地（平台强制展示，非用户填写）。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| uid | 数字用户 ID（profile / creator_search）；user_id 是 secUid，两者是同一账号的两种 ID。 |
| background_image_url | 主页背景图链接。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| language | 内容语言代码（如 zh、en），由平台判定，可能不准。 |
| is_live | 账号在采集时是否正在直播；属于时点状态。 |
| likes_given_count | 主页公开的「喜欢」数（该账号点过赞的作品数）。 |
| has_shop | 账号是否开通商品橱窗。 |
| age | 账号主人年龄（profile；公开了才有）。 |
| has_series | 账号是否开通了合集/系列（profile）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| verify_reason | 认证说明原文（profile / creator_search），企业认证或个人认证的文字；未认证的账号为空或没有这个字段。 |

## 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": "profile",
  "params": {
    "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS"
  }
}'
```

```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": "profile",
        "params": {
            "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS",
        },
    },
    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": "douyin",
  "action": "profile",
  "results": {
    "user_id": "MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS",
    "douyin_id": "•••",
    "nickname": "•••",
    "bio": "📚英语爱好者\n🧸努力学习英语中\n❤️好好吃饭💛好好睡觉💚好好生活\n🎇文本群里分享视频的文本，有需要的小伙伴可以进群",
    "url": "https://www.iesdouyin.com/xg/user/1929015166249580",
    "follower_count": 48341,
    "following_count": 21,
    "like_count": 91585,
    "video_count": 210,
    "gender": "•••",
    "ip_location": "•••",
    "is_verified": true,
    "avatar_url": "https://p26.douyinpic.com/•••",
    "platform": "douyin"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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