TikTok Music Download API¶
Overview¶
Resolves a TikTok sound by music_id (TikTok App V3 ID) and returns a compact DownloadResponse: url, title, duration, thumbnail, uploader, video_url (main stream), audio_url, source, cached.
Pricing¶
5 credits per request
Fixed cost per call.
Endpoint¶
- URL:
https://api.revidapi.com/paid/tiktok/music/download - Method:
POST
Send parameters as a query string on the URL (same pattern as other POST .../paid/... endpoints).
Request¶
Headers¶
x-api-key: Required. Get your key from revidapi.com.
Query parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
music_id |
string | Yes | TikTok sound / music ID (App V3). Obtain from Music Search items[].music_id |
Examples¶
Resolve sound after Music Search (VN workflow)¶
curl -X POST "https://api.revidapi.com/paid/tiktok/music/download?music_id=7629279488405506065" \
-H "x-api-key: YOUR_API_KEY"
Another example music_id¶
curl -X POST "https://api.revidapi.com/paid/tiktok/music/download?music_id=7123456789012345678" \
-H "x-api-key: YOUR_API_KEY"
Response¶
Success (200)¶
{
"url": "https://...",
"title": "Sound title",
"duration": 30,
"thumbnail": "https://...",
"uploader": "creator",
"video_url": "https://...",
"audio_url": "https://...",
"source": "tiktok",
"cached": false
}
Response fields¶
| Field | Type | Description |
|---|---|---|
url |
string | null | Primary URL when present |
title |
string | null | Sound title |
duration |
number | null | Length in seconds |
thumbnail |
string | null | Cover image URL |
uploader |
string | null | Uploader / author name |
video_url |
string | null | Main video stream URL |
audio_url |
string | null | Audio stream URL |
source |
string | null | Data source label |
cached |
boolean | Whether response was cached |
Error responses¶
| Status | Description |
|---|---|
| 401 | Missing or invalid x-api-key |
| 402 | Insufficient credits |
| 4xx/5xx | Invalid music_id, upstream error |
Usage notes¶
music_idis required — use TikTok Music Search first, then passmusic_idfromitems[].- Download or persist
audio_url/video_urlearly; links may expire. - Typical flow: Music Trend (chart) → Music Search (keyword) → Music Download (streams).
- Combine with Video Search when you need full videos using the same trending sounds.