TikTok Music API Documentation
The TikTok Music API returns the details of a TikTok sound: its title, author, album, cover, duration, audio
play_url, whether it is an original sound, and how many videos use it, together with the TikTok
author account behind it. Pass the sound page url or its numeric music_id, the
music.id every video carries in the TikTok Video API and the
other TikTok APIs. The TikTok Music Videos API lists the videos that use the sound.
API Parameters
Search Query
-
- Name
-
url - Required
- Optional
- Description
-
Parameter defines the TikTok sound page URL, for example
https://www.tiktok.com/music/MILLION-DOLLAR-BABY-VHS-7362317730454308880. The numeric id at the end of the URL identifies the sound.
Eitherurlormusic_idis required; provide one of them, not both.
-
- Name
-
music_id - Required
- Optional
- Description
-
Parameter defines the numeric TikTok sound id, the number at the end of the sound page URL, for example
7362317730454308880. Every video'smusic.idin the TikTok APIs is this id.
Eitherurlormusic_idis required; provide one of them, not both.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
tiktok_music.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
The music object carries the sound's id, title, author,
album, cover, duration in seconds, play_url,
videos_count and page link. author is the TikTok account behind the sound:
the creator of an original sound, or the artist's account of a licensed track.
https://www.searchapi.io/api/v1/search?engine=tiktok_music&music_id=7362317730454308880
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "tiktok_music",
"music_id": "7362317730454308880"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_JjKW8mR3ZGJsGwbqpn9redbv",
"status": "Success",
"created_at": "2026-11-17T12:11:13Z",
"request_time_taken": 1.04,
"parsing_time_taken": 0.0,
"total_time_taken": 1.04,
"request_url": "https://www.tiktok.com/music/original-sound-7362317730454308880",
"html_url": "https://www.searchapi.io/api/v1/searches/search_JjKW8mR3ZGJsGwbqpn9redbv.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_JjKW8mR3ZGJsGwbqpn9redbv"
},
"search_parameters": {
"engine": "tiktok_music",
"music_id": "7362317730454308880"
},
"music": {
"id": "7362317730454308880",
"title": "MILLION DOLLAR BABY (VHS)",
"album": "MILLION DOLLAR BABY",
"author": "Tommy Richman",
"cover": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/o8ADdfMEA3zhEW1aFNFCaIID8AegvAnC63fS6l~tplv-tik...",
"duration": 60,
"play_url": "https://sf19.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oUzC7XDedO58O6sevTbaFugwm5QaYqGeMGbGQA",
"is_copyrighted": true,
"link": "https://www.tiktok.com/music/million-dollar-baby-vhs-7362317730454308880",
"videos_count": 7800000
},
"author": {
"id": "144646643135606784",
"sec_uid": "MS4wLjABAAAAyYAgPo7Vz10E9DwQ-PsYoYkS6BopWIkvg-QuK93-fBMOdKH6u62qn7VNYJ9hpoif",
"username": "tommyrichman",
"link": "https://www.tiktok.com/@tommyrichman",
"name": "Tommy Richman",
"avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/0e5fd3c36dcb5dd2afda3b85eb220af7~tp...",
"avatar_hd": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/0e5fd3c36dcb5dd2afda3b85eb220af7~tp..."
}
}