Skip to main content
GET
/
v1
/
tiktok
/
trending
/
music
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/tiktok/trending/music?search_keyword=FALSE&page=1&limit=20&period=7&region=US&new_to_top_100=false&commercial_music=false' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "pagination": {
      "page": 1,
      "size": 1,
      "total": 99,
      "has_more": true
    },
    "sound_list": [
      {
        "author": "Chihei Hatakeyama",
        "clip_id": "6703723351497508865",
        "country_code": "US",
        "cover": "https://p16-sg.tiktokcdn.com/aweme/720x720/tos-alisg-v-2774/ocjWmiaBw4AAcY8ifAzsAAB5EQd8FDEDsu3Awo.jpeg",
        "duration": 60,
        "if_cml": false,
        "is_search": false,
        "link": "https://www.tiktok.com/music/x-6703723351497508865",
        "on_list_times": null,
        "promoted": false,
        "rank": 1,
        "rank_diff": 0,
        "rank_diff_type": 2,
        "related_items": null,
        "song_id": "6703723270476138498",
        "title": "New Sun",
        "trend": [
          {
            "time": 1769472000,
            "value": 0.06
          },
          {
            "time": 1769558400,
            "value": 0.05
          },
          {
            "time": 1769644800,
            "value": 0.31
          },
          {
            "time": 1769731200,
            "value": 0.3
          },
          {
            "time": 1769817600,
            "value": 0.1
          },
          {
            "time": 1769904000,
            "value": 0.36
          },
          {
            "time": 1769990400,
            "value": 1
          }
        ],
        "url_title": "New-Sun"
      }
    ]
  },
  "requestId": "3b515c7d-e2ca-4b32-81dc-3a029504d1d3"
}
πŸͺ™2 creditsper request

Copy for AI

πŸ€– Why Code When AI Can Do It For You?

Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

search_keyword
string
default:FALSE

Search keywords, value-taking rules: FALSE (string type) = do not perform the search; non-empty string = perform the search according to the keyword

Example:

"FALSE"

page
string
default:1

Pagination page number, used to specify the target page number of the query results

Example:

"1"

limit
string
default:20

The number of data items per page in pagination, which is used to specify the maximum number of results returned by a single query. The value range is 1 to 20. If it exceeds the maximum value, it will be automatically handled as 20.

Example:

"20"

period
string
default:7

Time range for querying data Optional valid values: 7 (last 7 days), 30 (last 30 days), 120 (last 120 days)

Example:

"7"

region
string
default:US

Country/Region Code A single value must be selected from the specified country/region code mapping table; multiple values are not supported for input.

Example:

"US"

new_to_top_100
string
default:false

Whether to filter hot topics that enter the top 100 for the first time. Optional values: false (no, do not filter), true (yes, only filter hot topics that enter the top 100 for the first time)

Example:

"false"

commercial_music
string
default:false

Whether to filter commercially available music, optional values: false (no, do not filter), true (yes, only filter commercially available music)

Example:

"false"

Response

Success

The response is of type object.