Download TikTok music

Download a TikTok music track with optional signed URL and inline delivery.

← All TikTok endpoints · Capability overview

GET/v1/tiktok/music/download

https://api.vee3.io/v1/tiktok/music/download

10 tokens

Download a TikTok music track with optional signed URL and inline delivery.

Authorization

Send your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

MCP

The same capability is available as an MCP tool on Vee3 hosted MCP.

Tool name

download_tiktok_music
Parameters3 fields
music_idstringOptional

TikTok music id.

max length 64

music_urlstringOptional

TikTok music page URL.

max length 2048

return_mode"url" | "file" | "both"Optional

How to deliver the result. 'url' returns a signed download URL only. 'file' returns inline base64 when the file is under 10 MB. 'both' returns the signed URL plus inline base64 when small enough.

Default: "both"

Response5 fields
download_idstring

Unique download identifier, prefix td_.

return_modeenum

Echo of the requested delivery mode.

playstring

Signed download URL for the music file.

file_size_bytesinteger

Music file size in bytes.

content_typestring

MIME type of the music file.

HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, tiktok_not_configured, tiktok_upstream_error, tiktok_download_empty, internal_error

On HTTP 200 (success body): inline_file_unavailable