Download TikTok music

Download a TikTok music track to account file storage with a signed URL and download code.

← 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 to account file storage with a signed URL and download code.

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

tiktok.download_music
Parameters3 fields
music_idstringOptional

TikTok music id.

max length 64

music_urlstringOptional

TikTok music page URL.

max length 2048

file_namestringOptional

Optional account-relative storage path for the music file. If omitted, the file is stored under downloads/ with a generated name.

max length 255

Response12 fields
tiktok_download_idstring

Unique TikTok download operation identifier, prefix td_.

file_urlstring

Signed download URL from account file storage.

file_namestring

Account-relative path where the file was stored.

file_size_bytesinteger

Music file size in bytes.

content_typestring

MIME type of the music file.

retained_untilstring

ISO 8601 timestamp when account storage retention expires.

download_codestring

Short code to pass to the @vee3/cli `vee3-get-file` command.

download_idstring

Stable identifier for the reserved agent download session.

expires_atstring

ISO 8601 timestamp when the download code can no longer be resolved (60 minutes after reserve).

install_commandstring

One-time command to install the Vee3 CLI (`npm install -g @vee3/cli`). On networks that inspect HTTPS, install may require Node 22.15+ with NODE_OPTIONS=--use-system-ca.

commandstring

Suggested terminal command for downloading to a local path.

troubleshootingstring

What to do if installation or downloading fails: re-read this tool's description via meta-tools.describe for setup and troubleshooting steps.

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