> ## 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.

# Download TikTok sound as MP3

> Use this operation to save the sound of one public TikTok video or photo post as a retained MP3 file with a permanent download URL and normalized sound metadata. Pass a full tiktok.com link, a vm.tiktok.com or vt.tiktok.com short link, or a bare video ID. This is separately billed.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/tiktok/audio/download
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-10-09.1
servers:
  - url: https://api.agentbody.io
security:
  - bearerAuth: []
paths:
  /v1/tiktok/audio/download:
    post:
      tags:
        - tiktok
      summary: Download TikTok sound as MP3
      description: >-
        Use this operation to save the sound of one public TikTok video or photo
        post as a retained MP3 file with a permanent download URL and normalized
        sound metadata. Pass a full tiktok.com link, a vm.tiktok.com or
        vt.tiktok.com short link, or a bare video ID. This is separately billed.
      operationId: post_v1_tiktok_audio_download
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TikTokAudioDownloadRequest'
        required: true
      responses:
        '200':
          $ref: '#/components/responses/TikTokAudioDownloadSuccess'
        '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
        '409':
          content:
            application/json:
              example:
                error:
                  code: CONFLICT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: CONFLICT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Follow the documented Idempotency-Key behavior before retrying.
          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:
    IdempotencyKey:
      description: Optional key for safely retrying a billable write request.
      example: request-20260819-001
      in: header
      name: Idempotency-Key
      required: false
      schema:
        maxLength: 255
        minLength: 1
        type: string
  schemas:
    TikTokAudioDownloadRequest:
      additionalProperties: false
      properties:
        url:
          description: >-
            Public TikTok video or photo-post URL (tiktok.com/@user/video/{id},
            tiktok.com/@user/photo/{id}, vm.tiktok.com or vt.tiktok.com short
            link, or bare video ID) whose sound is saved as MP3.
          type: string
      required:
        - url
      type: object
    TikTokAudioDownloadResult:
      additionalProperties: false
      properties:
        artist:
          description: Sound author reported upstream.
          type: string
        audio_url:
          description: Retained permanent MP3 file URL.
          format: uri
          type: string
        duration_seconds:
          description: Sound duration in seconds.
          type: number
        file_name:
          type: string
        file_size_bytes:
          format: int64
          type: integer
        is_original_sound:
          type: boolean
        sound_title:
          type: string
        video_url:
          description: The source TikTok video URL the sound was extracted from.
          format: uri
          type: string
      required:
        - video_url
        - audio_url
      type: object
  responses:
    TikTokAudioDownloadSuccess:
      content:
        application/json:
          example:
            artist: Khabane lame
            audio_url: >-
              https://api.apify.com/v2/key-value-stores/example/records/khabylame-original-sound.mp3
            duration_seconds: 26
            file_name: khabylame-original-sound.mp3
            file_size_bytes: 418524
            is_original_sound: true
            sound_title: original sound
            video_url: https://www.tiktok.com/@khaby.lame/video/7689510970292489502
          schema:
            $ref: '#/components/schemas/TikTokAudioDownloadResult'
      description: Retained TikTok sound MP3 file URL and normalized track metadata.
      headers:
        X-Request-Id:
          description: Gateway request identifier for support and audit.
          schema:
            format: uuid
            type: string
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.