TikTok Music Videos API Documentation
The TikTok Music Videos API returns the videos that use a TikTok sound, in the order its sound page lists them.
Pass the sound page url or its numeric music_id, the music.id every video
carries in the TikTok APIs, and page through the videos with pagination.next_page_token. Each video
has the same shape as the TikTok Search API, with its author.
The TikTok Music API returns the sound's own details.
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.
Pagination
-
- Name
-
next_page_token - Required
- Optional
- Description
-
Parameter defines the token used to retrieve the next page of videos. It is returned as
pagination.next_page_tokenwhen more videos are available. The token identifies the sound, sourlandmusic_idcan be omitted when it is set.
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_videos.
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
Each video carries its position, id, link, caption,
iso_date, engagement counts, thumbnail, music, the hashtags and
mentions parsed from the caption, and its author. Up to 30 videos are returned per page.
https://www.searchapi.io/api/v1/search?engine=tiktok_music_videos&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_videos",
"music_id": "7362317730454308880"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_mrlde4qgnnOHQZ1egL8Pvjx0",
"status": "Success",
"created_at": "2026-11-17T12:11:28Z",
"request_time_taken": 1.95,
"parsing_time_taken": 0.02,
"total_time_taken": 1.97,
"request_url": "https://www.tiktok.com/music/original-sound-7362317730454308880",
"html_url": "https://www.searchapi.io/api/v1/searches/search_mrlde4qgnnOHQZ1egL8Pvjx0.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_mrlde4qgnnOHQZ1egL8Pvjx0"
},
"search_parameters": {
"engine": "tiktok_music_videos",
"music_id": "7362317730454308880"
},
"videos": [
{
"position": 1,
"id": "7371968854861286698",
"link": "https://www.tiktok.com/@jdschlaack/video/7371968854861286698",
"type": "video",
"caption": "Had to retry the prank for old times sake ",
"language": "en",
"iso_date": "2024-05-22T23:24:18Z",
"duration": 38,
"width": 576,
"height": 1024,
"is_duet_enabled": true,
"is_stitch_enabled": true,
"views": 109200000,
"likes": 8200000,
"comments": 46500,
"shares": 2800000,
"saves": 587048,
"thumbnail": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/d2a7ab8b1f5c4abf938eef639d629db9_1716...",
"dynamic_thumbnail": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/10e8568815954791998005ffb5d74dc8_1716...",
"video_meta": {
"definition": "540p",
"ratio": "540p",
"format": "mp4",
"codec_type": "h264",
"size": 4634242,
"bitrate": 968265,
"bitrates": [
{
"gear_name": "normal_540_0",
"bitrate": 968265,
"fps": 23,
"codec_type": "h264",
"format": "mp4"
},
...
]
},
"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://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oUzC7XDedO58O6sevTbaFugwm5QaYqGeMGbGQA",
"is_copyrighted": true,
"link": "https://www.tiktok.com/music/million-dollar-baby-vhs-7362317730454308880"
},
"location": {
"id": "22535865207267860",
"name": "Michigan",
"address": "United States",
"category": "Place and Address"
},
"subtitles": [
{
"language": "eng-US",
"format": "webvtt",
"source": "ASR",
"url": "https://v16m-webapp.tiktokcdn-us.com/64698fa05ddc44211cc3929669fdea30/6afee797/video/tos/useast5/tos...",
"url_expires_at": "2026-11-19T12:12:07Z"
},
...
],
"author": {
"id": "6745625909787051013",
"sec_uid": "MS4wLjABAAAA3qnwfbDvHTEVUEmNK-FHMCJlWgVuVoPiPmmfXfas4-yAOdmrz6PGakhTH14OfsaC",
"username": "jdschlaack",
"link": "https://www.tiktok.com/@jdschlaack",
"name": "Jonathan Schlaack",
"bio": "Video and Photography on instagram! :Oliviaelisecreative \nPersonal:JDSCHLAACK",
"avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/0ee368b5a07d80ecc4b7b416e69971cb~tp...",
"avatar_hd": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/0ee368b5a07d80ecc4b7b416e69971cb~tp...",
"followers": 236800,
"following": 7,
"hearts": 13200000,
"posts": 91,
"liked_videos": 46400
}
},
...
],
"pagination": {
"has_more": true,
"next_page_token": "eyJjdXJzb3IiOiIzMCIsIm11c2ljX2lkIjoiNzM2MjMxNzczMDQ1NDMwODg4MCJ9"
}
}
Next Page using next_page_token parameter
When more videos are available, pagination.has_more is true and
pagination.next_page_token holds the token for the following page. The token identifies the sound,
so it can be sent on its own. Each page numbers its videos from a position of 1, and the last page
carries no pagination object.
https://www.searchapi.io/api/v1/search?engine=tiktok_music_videos&next_page_token=eyJjdXJzb3IiOiIzMCIsIm11c2ljX2lkIjoiNzM2MjMxNzczMDQ1NDMwODg4MCJ9
- 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_videos",
"next_page_token": "eyJjdXJzb3IiOiIzMCIsIm11c2ljX2lkIjoiNzM2MjMxNzczMDQ1NDMwODg4MCJ9"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_QNVPZBKo24jcw0Bnp8y471M9",
"status": "Success",
"created_at": "2026-11-17T12:11:32Z",
"request_time_taken": 1.89,
"parsing_time_taken": 0.02,
"total_time_taken": 1.9,
"request_url": "https://www.tiktok.com/music/original-sound-7362317730454308880",
"html_url": "https://www.searchapi.io/api/v1/searches/search_QNVPZBKo24jcw0Bnp8y471M9.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_QNVPZBKo24jcw0Bnp8y471M9"
},
"search_parameters": {
"engine": "tiktok_music_videos",
"music_id": "7362317730454308880",
"next_page_token": "eyJjdXJzb3IiOiIzMCIsIm11c2ljX2lkIjoiNzM2MjMxNzczMDQ1NDMwODg4MCJ9"
},
"videos": [
{
"position": 1,
"id": "7372690441403141419",
"link": "https://www.tiktok.com/@j_da_barberr/video/7372690441403141419",
"type": "video",
"caption": "He was tired of really long hair and drove 1 hour for this transformation. He got a textured fringe with a blowout and he couldn’t believe it was him at the end Link in bio to book an appointment 💈 #chicagobarber #j_da_barberr #chicago #chicagobarbers #berwyn #berwynbarber #cicerobarber #transformation #fyp #savinghim ",
"language": "en",
"hashtags": [
"chicagobarber",
...
],
"iso_date": "2024-05-24T22:04:25Z",
"duration": 87,
"width": 576,
"height": 1024,
"is_duet_enabled": true,
"is_stitch_enabled": true,
"views": 20300000,
"likes": 2700000,
"comments": 13200,
"shares": 162800,
"saves": 109188,
"thumbnail": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/6e5d6a6826604c3bb39a69c966cb2770_1716...",
"dynamic_thumbnail": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/80285f202ee14efa92430024fa3fe469_1716...",
"video_meta": {
"definition": "540p",
"ratio": "540p",
"format": "mp4",
"codec_type": "h264",
"size": 16269582,
"bitrate": 1479405,
"bitrates": [
{
"gear_name": "normal_540_0",
"bitrate": 1479405,
"fps": 30,
"codec_type": "h264",
"format": "mp4"
},
...
]
},
"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"
},
"location": {
"id": "22535865213504470",
"name": "Berwyn",
"address": "Illinois, United States",
"category": "Place and Address"
},
"subtitles": [
{
"language": "eng-US",
"format": "webvtt",
"source": "ASR",
"url": "https://v16m-webapp.tiktokcdn-us.com/136500ec9be00ce629accfde8578329d/6afee7cd/video/tos/useast5/tos...",
"url_expires_at": "2026-11-19T12:13:01Z"
},
...
],
"author": {
"id": "241546387770015744",
"sec_uid": "MS4wLjABAAAARBFrWS_XUP3ACIQbtCpzCZiB14e6qHAVNd5en21TmlbFXTz6R2IbZ03bxNB8775Q",
"username": "j_da_barberr",
"link": "https://www.tiktok.com/@j_da_barberr",
"name": "Jorge_da_barberr",
"bio": "Helping Barbers for to generate 50-100 new clients/m👥 & make $10-20k/month\nMiami 🌴",
"avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/42f66ab87cad4c15e0714a735986128a~t...",
"avatar_hd": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/42f66ab87cad4c15e0714a735986128a~t...",
"followers": 740100,
"following": 388,
"hearts": 30400000,
"posts": 341,
"liked_videos": 8965
}
},
...
],
"pagination": {
"has_more": true,
"next_page_token": "eyJjdXJzb3IiOiI2MCIsIm11c2ljX2lkIjoiNzM2MjMxNzczMDQ1NDMwODg4MCJ9"
}
}