---
title: "抖音 sec_uid 是什么，怎么拿 · SocialToAI"
canonical: https://socialtoai.com/zh/can-ai-read/douyin-sec-uid/
published: 2026-11-06
updated: 2026-11-06
---

# 抖音 sec_uid 是什么，怎么拿？

抖音的 sec_uid 是标识账号的那一长串，`MS4wLjABAAAA` 开头，在主页网页链接的 `/user/` 后面。要拿到它，从这条链接里复制；或把任意主页链接、分享文字交给账号资料调用，2 积分，看返回里的 `id`。它不是主页上的抖音号，也不是星图达人编号。

- 页面：https://socialtoai.com/zh/can-ai-read/douyin-sec-uid/
- 发布于：2026-11-06
- 最近更新：2026-11-06

## 在哪里拿

| 你手里有 | 长什么样 | 怎么拿 |
| --- | --- | --- |
| 主页的网页链接 | https://www.douyin.com/user/MS4wLjABAAAAZ0aPDJzFhBrs0q3wVsp2a9WWrBuAUMsVyygoaO0bCw8 | 复制 `/user/` 后面的部分，到 `?` 为止 |
| App 的分享链接 | https://v.douyin.com/… | 交给下面的调用，返回里的 `id` 就是 |
| 只有名字 |  | 先用 `search` 搜，从结果里取账号；要星图数据就搜星图 |

## 别和这些搞混

| 编号 | 是什么 | 谁要它 |
| --- | --- | --- |
| sec_uid | MS4w 开头的长串，每个抖音账号都有 | [账号资料](https://socialtoai.com/zh/douyin-user-profile-api.md)、[账号作品](https://socialtoai.com/zh/douyin-user-posts-api.md) |
| 抖音号 | 主页上显示的那个号，本人可以改 | 这里不当编号用，用搜索 |
| 星图达人编号 | 一串数字，星图（平台的达人商单平台）上的编号 | [星图接口](https://socialtoai.com/zh/douyin-kol-search-api.md) |

## 一次真实的请求

**cURL**

```
curl https://api.socialtoai.com/v1/user_profile \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "douyin",
    "id": "MS4wLjABAAAAZ0aPDJzFhBrs0q3wVsp2a9WWrBuAUMsVyygoaO0bCw8"
  }'
```

**一次录制的返回（名称和正文已去掉）**

```
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T19:01:22.000Z",
  "action": "user_profile",
  "platform": "douyin",
  "status": "ok",
  "items": [
    {
      "platform": "douyin",
      "id": "…",
      "ref": "…",
      "approx": [],
      "type": "account",
      "username": "…",
      "name": "…",
      "url": "https://example.com/…",
      "bio": "…",
      "verified": true,
      "followers": 4022,
      "following": 115,
      "posts_count": 1094
    }
  ],
  "unavailable": [],
  "warnings": [],
  "applied_params": {
    "id": "MS4wLjABAAAAZ0aPDJzFhBrs0q3wVsp2a9WWrBuAUMsVyygoaO0bCw8"
  },
  "cost_credits": 2,
  "billing": {
    "cost_credits": 2,
    "balance_credits": 98,
    "today_spend_credits": 2,
    "daily_limit_credits": null,
    "daily_remaining_credits": null,
    "display": "本次 2 积分（约 $0.0067），余额 98 积分（约 $0.33）"
  },
  "replayed": false
}
```

## 常见问题

### 为什么 sec_uid 开头都一样？

`MS4wLjABAAAA` 是格式的固定前缀，区分账号的是后面的部分。这是我们从编号里看到的，不是抖音的说明。

### 它会变吗？

就我们所见它跟着账号不变，不像抖音号本人可以改。存它，不要存名字。

### 要登录抖音吗？

不用。不用你的账号，不会牵连你的账号。

- [抖音账号资料接口](https://socialtoai.com/zh/douyin-user-profile-api.md)：完整的调用、参数和字段。
- [抖音 API](https://socialtoai.com/zh/platforms/douyin.md)：抖音上的每个调用和积分。
