Get the videos using a sound by music URL or numeric music ID. Returns the same fields as User Videos for each video, about 12 per page.
curl "https://apidirect.io/v1/tiktok/music/videos?music_id=7016547803243022337&pages=2" -H "X-API-Key: YOUR_API_KEY"
{
"videos": [
{
"video_id": "7039385772222319878",
"title": "it's about drive #thebadp1ace",
"url": "https://www.tiktok.com/@thebadp1ace/video/7039385772222319878",
"date": "2021-12-08 17:32:01",
"date_timestamp": 1638984721,
"author": "thebadp1ace",
"source": "TikTok",
"domain": "tiktok.com",
"snippet": "it's about drive #thebadp1ace",
"region": "US",
"play_count": 77202977,
"likes": 16419428,
"comments": 60056,
"shares": 172134,
"downloads": 101612,
"saves": 733192,
"duration": 14,
"is_ad": false,
"is_pinned": false,
"author_name": "ale",
"author_id": "6911054760808875014",
"author_avatar": "https://p16-common-sign.tiktokcdn-eu.com/.../avatar.jpeg",
"author_url": "https://www.tiktok.com/@thebadp1ace",
"cover": "https://p16-common-sign.tiktokcdn-eu.com/.../cover.jpeg",
"dynamic_cover": "https://p16-common-sign.tiktokcdn-eu.com/.../dynamic_cover.webp",
"origin_cover": "https://p16-common-sign.tiktokcdn-eu.com/.../origin_cover.jpeg",
"video_url": "https://v19.tiktokcdn-eu.com/.../video.mp4",
"video_url_watermarked": "https://v19.tiktokcdn-eu.com/.../video_wm.mp4",
"size": 10246341,
"size_watermarked": 9402354,
"images": [],
"music_id": "7016547803243022337",
"music_url": "https://sf16-music.tiktokcdn-eu.com/.../music.mp3",
"mentioned_user_ids": []
}
],
"music_id": "7016547803243022337",
"pages": 2,
"count": 24
}
It is the number at the end of a TikTok music URL, and every video returned by the other TikTok endpoints carries it as music_id.
TikTok does not repeat the sound's metadata on this list. music_id is the requested sound; Music Details returns the title, artist, and video count.
You only pay for successful requests. The TikTok Music Videos API costs $0.006 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.
No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.
Yes, there's a concurrency limit of 10 simultaneous requests per endpoint per user. If you need more, just get in touch.
Get your API key and start making requests in minutes. 50 requests/month free every month.
Get API Key