Search TikTok music
tiktok_music_searchSearch TikTok's trending music charts to find a track by song title or artist, then pass its id as tiktokMusicId for your video upload.
Instructions
Find a TikTok Commercial Music Library track by song title or artist, to soundtrack a TikTok video. Pass the returned track id as tiktokMusicId in upload_video's platformOptions (not commercial_music_id, which TikTok rejects on public posts). IMPORTANT: TikTok has no music search endpoint, so this searches the trending charts Upload-Post caches per genre/country/period, NOT TikTok's whole catalogue — a song that is not trending in the chart you query will not be found; widening the search means trying another genre, country or period. Matching is case- and accent-insensitive and every word must match. Available on TikTok connections that declare the music capability (see capabilities on the TikTok account in list_users).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Song title or artist to look for, e.g. 'bad bunny'. Omit to get the chart in trending order. | |
| genre | No | Genre filter, e.g. 'ALL' or 'POP'. Defaults to ALL. | |
| limit | No | Maximum tracks to return. Defaults to 50. | |
| profile | Yes | Upload-Post profile name with a TikTok account connected. | |
| dateRange | No | Chart window. Defaults to 7DAY. | |
| countryCode | No | ISO country code choosing WHICH country's chart is searched, e.g. 'US' or 'ES'. Defaults to US. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |