Download TikTok music
Download a TikTok music track with optional signed URL and inline delivery.
← All TikTok endpoints · Capability overview
/v1/tiktok/music/downloadhttps://api.vee3.io/v1/tiktok/music/download
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_musicParameters3 fields
music_idstringOptionalTikTok music id.
max length 64
music_urlstringOptionalTikTok music page URL.
max length 2048
return_mode"url" | "file" | "both"OptionalHow 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_idstringUnique download identifier, prefix td_.
return_modeenumEcho of the requested delivery mode.
playstringSigned download URL for the music file.
file_size_bytesintegerMusic file size in bytes.
content_typestringMIME 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