Platform Integration

Get TikTok trending music

Trending tracks from TikTok's Commercial Music Library, to soundtrack a TikTok post. Pass the returned id as tiktok_music_id on an upload — not commercial_music_id, which TikTok rejects on public posts.

get/uploadposts/tiktok/music/trending

Query parameters

profilestring required

Profile username. Must have a TikTok account connected.

genrestring

Commercial Music Library genre, e.g. ALL, POP, HIP_HOP/RAP, R&B/SOUL. The slashes and the ampersand are part of TikTok's enum. Unknown values fall back to ALL.

country_codestring

ISO-3166 alpha-2 country whose trending chart is read. The catalogue is per country, so this changes which tracks come back.

date_range'1DAY' | '7DAY' | '30DAY' | '90DAY'

Trending window.

Response

Trending tracks retrieved successfully.

successboolean
genrestring
country_codestring
date_rangestring
cachedboolean

False when this request had to fetch the chart from TikTok.

Example response

{
  "success": true,
  "genre": "ALL",
  "country_code": "US",
  "date_range": "7DAY",
  "tracks": [
    {
      "id": "7205381234567890123",
      "title": "Summer Nights",
      "artist": "The Example Band",
      "duration": 32,
      "genres": [
        "POP"
      ]
    }
  ]
}

Changes

Changed in 1 of the 4 revisions of this API.1