> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok 视频字幕

> 从公开 TikTok 视频中提取视频字幕。

# TikTok 视频字幕

```json theme={"system"}
{"urls": ["https://www.tiktok.com/@creator/video/VIDEO_ID"], "language": "en"}
```

## 与 MCP 一起使用

| 接口          | 值                                                      |
| ----------- | ------------------------------------------------------ |
| REST        | `POST /v1/tiktok/video-transcript`                     |
| Compact MCP | `socq_execute` 与 `endpoint: "tiktok/video-transcript"` |
| Typed MCP   | `socq_tiktok_video_transcript`                         |
| CLI         | `socq tiktok video-transcript`                         |

`language` 是可选的。没有可用语音或字幕的视频可能不会返回任何结果。


## OpenAPI

````yaml zh/api-manual/agent-api/agent-api.json POST /v1/tiktok/video-transcript
openapi: 3.1.0
info:
  title: SocQ Agent API 中文版
  version: v1-82a413bb5c3c
  description: 根据 SocQ 能力目录生成的异步社交数据 API。
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/tiktok/video-transcript:
    post:
      tags:
        - tiktok
      summary: TikTok 视频字幕
      description: 从公开 TikTok 视频中提取视频字幕。
      operationId: socq_tiktok_video_transcript
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                language:
                  type: string
                  minLength: 1
                  description: 语言代码或语言筛选条件。
                urls:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  description: 公开内容、主页或商品 URL 列表。每个 URL 分别应用结果数量上限，至少提供 1 项。
              required:
                - urls
      responses:
        '200':
          description: 任务已受理
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
          description: HTTP 业务状态码。
        data:
          type: object
          properties:
            task_id:
              type: string
              description: 任务 ID，用于查询任务状态和结果。
            status:
              type: string
              description: 任务当前状态。
            created_time:
              type:
                - string
                - 'null'
              description: 任务创建时间。
            idempotent_replay:
              type: boolean
              description: 是否复用了由相同 Idempotency-Key 创建的已有任务。false 表示新任务，true 表示重复提交返回原任务。
          required:
            - task_id
            - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '使用 `Authorization: Bearer <token>` 请求头进行身份验证。'
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 也可以通过 `x-api-key` 请求头提供 API Key。

````