# 视频文案提取 - 实时数据

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/realtime/video/captions:
    get:
      summary: 视频文案提取 - 实时数据
      deprecated: false
      description: >-
        **接口整体描述**

        这是视频字幕提取接口，当前按 `video_id`
        提取字幕/口播文本，重点不是视频经营数据，而是把视频内容转成文字。返回就是一段完整的字幕文本，已经接近可以直接拿去读或二次处理的内容形式，因此它的核心价值是把视频内容转写成可分析文字。


        **接口用途推荐**

        - 适合做脚本拆解

        - 字幕归档

        - 语言分析

        - 卖点提炼、AIGC 二次创作参考


        **注意事项**

        - 字幕提取结果受视频是否自带字幕、音质和语音识别质量影响，并不是每条视频都能返回完整文本

        - 实时接口可能遇到风控，如果接口返回code=500，请继续重试（code=500不消耗当前调用额度）
      tags:
        - 视频
      parameters:
        - name: video_id
          in: query
          description: ''
          required: true
          example: '7563511121240395022'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                msg: success
                code: 0
                data:
                  - data: >
                      WEBVTT



                      00:00:00.060 --> 00:00:03.500

                      It's Thursday, which means it's time to take care of the
                      bathrooms.


                      00:00:03.501 --> 00:00:05.781

                      Wipe those mirrors down, clean your toilet,


                      00:00:05.782 --> 00:00:08.341

                      bath sink, vacuum and mop the floor.


                      00:00:08.342 --> 00:00:09.781

                      Stock up on toilet paper. Oh,


                      00:00:09.782 --> 00:00:12.781

                      I need to do that. Replace towels and rugs,


                      00:00:12.782 --> 00:00:15.021

                      empty the trash, clean mirrors,


                      00:00:15.022 --> 00:00:19.781

                      and check for spills. Those are your tasks for the day.
                      Again,


                      00:00:19.782 --> 00:00:22.241

                      I love this planner.


                      00:00:22.300 --> 00:00:25.940

                      If you struggle with all of your word cleaning tasks on
                      the weekend,


                      00:00:25.941 --> 00:00:28.781

                      you gotta get the ADHD cleaning planner.


                      00:00:28.782 --> 00:00:30.681

                      This has been a lifesaver.


                      00:00:30.780 --> 00:00:35.137

                      Do a few tasks every day and you'll have a clean house.
                    lang: eng-US
          headers: {}
          x-apifox-name: 成功
      security:
        - basic: []
      x-apifox-folder: 视频
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7319100/apis/api-375107003-run
components:
  schemas: {}
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: ''
    description: 正式环境
security: []

```
