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

# Extract an existing TikTok caption track

> Use this operation to extract an existing tiktok caption track. Authenticate with Authorization: Bearer <AGENTBODY_API_KEY>. Use this existing-caption operation before any separately billed transcription. A 422 means captions are unavailable; select another resource or obtain explicit approval for an alternative, and do not retry unchanged. Correct a 400 invalid-input error; do not retry unchanged. Retry only declared 502, 503, or 504 responses with backoff.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/tiktok/transcript
openapi: 3.1.0
info:
  description: >-
    Direct authenticated APIs for public social data, people data, transcripts,
    documents, text, and SEO. Send an API key as a Bearer token. Responses never
    include provider credentials or raw provider payloads.
  license:
    name: Proprietary
    url: https://agentbody.io
  title: AgentBody API
  version: '2026-08-19'
servers:
  - url: https://api.agentbody.io
security:
  - bearerAuth: []
paths:
  /v1/tiktok/transcript:
    get:
      tags:
        - tiktok
      summary: Extract an existing TikTok caption track
      description: >-
        Use this operation to extract an existing tiktok caption track.
        Authenticate with Authorization: Bearer <AGENTBODY_API_KEY>. Use this
        existing-caption operation before any separately billed transcription. A
        422 means captions are unavailable; select another resource or obtain
        explicit approval for an alternative, and do not retry unchanged.
        Correct a 400 invalid-input error; do not retry unchanged. Retry only
        declared 502, 503, or 504 responses with backoff.
      operationId: get_v1_tiktok_transcript
      parameters:
        - $ref: '#/components/parameters/VideoURL'
        - $ref: '#/components/parameters/Language'
      responses:
        '200':
          $ref: '#/components/responses/TranscriptSuccess'
        '400':
          content:
            application/json:
              example:
                error:
                  code: INVALID_ARGUMENT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: INVALID_ARGUMENT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Correct the input; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '401':
          content:
            application/json:
              example:
                error:
                  code: UNAUTHENTICATED
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UNAUTHENTICATED
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Configure a valid API key; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '422':
          content:
            application/json:
              example:
                error:
                  code: TRANSCRIPT_UNAVAILABLE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: TRANSCRIPT_UNAVAILABLE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Caption track unavailable; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '502':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_INVALID_RESPONSE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_INVALID_RESPONSE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '503':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_UNAVAILABLE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_UNAVAILABLE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '504':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_TIMEOUT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_TIMEOUT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
components:
  parameters:
    VideoURL:
      description: >-
        A publicly reachable HTTPS URL. Do not submit private, authenticated,
        redirect-only, or user-specific URLs.
      example: https://www.youtube.com/watch?v=dQw4w9WgXcQ
      in: query
      name: url
      required: true
      schema:
        format: uri
        type: string
    Language:
      description: >-
        Optional BCP 47 language preference, such as en. Omit it to accept the
        source language.
      example: en
      in: query
      name: language
      schema:
        maxLength: 35
        type: string
  responses:
    TranscriptSuccess:
      content:
        application/json:
          example:
            caption_type: manual
            language: example_value
            segments: []
            text: example_value
            video_id: example_value
          schema:
            $ref: '#/components/schemas/TranscriptResult'
      description: Existing captions or explicitly requested audio transcription.
      headers:
        X-Request-Id:
          description: Gateway request identifier for support and audit.
          schema:
            format: uuid
            type: string
  schemas:
    TranscriptResult:
      additionalProperties: false
      properties:
        caption_type:
          enum:
            - manual
            - auto
            - transcribed
          type: string
        language:
          type: string
        segments:
          items:
            additionalProperties: false
            properties:
              end_ms:
                format: int64
                type: integer
              start_ms:
                format: int64
                type: integer
              text:
                type: string
            required:
              - start_ms
              - end_ms
              - text
            type: object
          type: array
        text:
          type: string
        video_id:
          type: string
      required:
        - video_id
        - language
        - caption_type
        - text
        - segments
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````