---
title: "TikTok 字幕接口：按链接取文字和时间 · SocialToAI"
canonical: https://socialtoai.com/zh/tiktok-transcript-api/
updated: 2026-11-06
---

# TikTok 字幕接口

用链接或视频编号取公开 TikTok 视频里说的话：一段全文，以及每一段的开始和结束时间。它是 TikTok 详情调用加上 `include=transcript`，每条 2 积分（约 ¥0.05），失败不扣。可以用 HTTP 调用，也可以让 AI 通过 MCP 调用。

- 页面：https://socialtoai.com/zh/tiktok-transcript-api/
- 最近更新：2026-11-06

## 能拿到什么

每个视频一个对象。返回里不标字幕的语言，需要的话让 AI 按文字判断。

| 字段 | 类型 | 含义 |
| --- | --- | --- |
| `fields.text` | string | 全文。 |
| `fields.segments` | array | 带时间的分段：start、end、text。 |

## 请求

**cURL**

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

**Python**

```
import os
import uuid
import requests

response = requests.post(
    "https://api.socialtoai.com/v1/detail",
    headers={
        "Authorization": f"Bearer {os.environ['SOCIALTOAI_API_KEY']}",
        # A new key for each request; the same one again retries it without paying twice.
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "platform": "tiktok",
        "id": "7665840565958872333",
        "include": "transcript",
    },
)
print(response.json())
```

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

```
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T18:47:26.000Z",
  "action": "detail",
  "platform": "tiktok",
  "status": "ok",
  "items": [
    {
      "platform": "tiktok",
      "id": "…",
      "ref": "…",
      "approx": [],
      "type": "entry",
      "entry_type": "transcript",
      "title": null,
      "url": null,
      "rank": null,
      "heat": null,
      "fields": {
        "lang": null,
        "text": "…",
        "segments": [
          {
            "start": 1.14,
            "end": 2.76,
            "text": "…"
          },
          {
            "start": 3.06,
            "end": 4.98,
            "text": "…"
          }
        ]
      }
    }
  ],
  "unavailable": ["fields.lang"],
  "warnings": [],
  "applied_params": {
    "id": "7665840565958872333",
    "include": "transcript"
  },
  "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
}
```

## TikTok 官方 API 能给什么

TikTok 的 Research API 只给通过审核的学术和非营利研究者，Display API 展示的是登录你应用的用户授权的内容。每一部分能给什么，见下表，每行带来源。

| 官方 API | 谁能用 | 费用 | 限制 | 来源 |
| --- | --- | --- | --- | --- |
| Research API | 符合地区要求、经审核通过的学术和非营利研究者，限非商业研究。 | 官方页面没有写价格，要申请。 | 能大范围读公开内容，但不能商用。 | [developers.tiktok.com](https://developers.tiktok.com/products/research-api/)，核对于 2026-10-17 |
| Display API | 用户登录并授权的应用。 | 官方页面没有写价格。 | 只能读授权用户本人的资料和公开视频。 | [developers.tiktok.com](https://developers.tiktok.com/products/research-api/)，核对于 2026-10-17 |

## 在 AI 客户端里

通过 [MCP](https://socialtoai.com/zh/mcp.md) 把 SocialToAI 接一次，然后把链接给 AI，让它取字幕或做总结。

| 提问 | 积分 |
| --- | --- |
| 读一下这条 TikTok 视频：7665840565958872333 | 2 |

## 花多少

每条 2 积分：按第一档约 $0.0067（约 ¥0.05），一千条约 $6.67。失败不扣；一批要花多少，用[成本估算](https://socialtoai.com/zh/free-tools/api-cost-estimator.md) 算一下。注册送 100 积分，不用绑卡。

## 常见问题

### 任意公开的 TikTok 视频都能取字幕吗？

用链接或视频编号，每条 2 积分（约 ¥0.05）。没有人声的视频没有内容可返回；调用失败不扣。

### 有时间戳吗？

有：除了全文，每一段都带开始和结束时间。

### 要 TikTok 账号或研究资格吗？

不用。只要一把 SocialToAI 的 Key，或在 AI 客户端里登录；不用你的 TikTok 账号。

### Claude 或 ChatGPT 能读 TikTok 字幕吗？

能。通过 MCP 接上 SocialToAI 后，把链接给它，让它取文字或做总结。

- [TikTok 详情接口](https://socialtoai.com/zh/tiktok-detail-api.md)：完整的调用、参数和字段。
- [各平台字幕接口](https://socialtoai.com/zh/transcript-api.md)：哪些平台能取字幕、多少积分。
- [YouTube 字幕接口](https://socialtoai.com/zh/youtube-transcript-api.md)：任意公开 YouTube 视频的完整字幕。
- [TikTok MCP 服务器](https://socialtoai.com/zh/mcp/tiktok.md)：让你的 AI 读 TikTok。
