---
title: "Get TikTok trending music"
method: GET
path: "/uploadposts/tiktok/music/trending"
tags: ["Platform Integration"]
---

# Get TikTok trending music

`GET /uploadposts/tiktok/music/trending`

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.

## Query parameters

- `profile` string, required
- `genre` string
- `country_code` string
- `date_range` '1DAY' | '7DAY' | '30DAY' | '90DAY'

## Response `200`

Trending tracks retrieved successfully.

- object
  - `success` boolean
  - `genre` string
  - `country_code` string
  - `date_range` string
  - `cached` boolean — False when this request had to fetch the chart from TikTok.
  - `tracks` TikTokMusicTrack[]
    - `id` string — Send this as `tiktok_music_id` on an upload. NOT `commercial_music_id`: TikTok rejects that one on public posts.
    - `commercial_music_id` string — TikTok's catalogue id for the same track. Returned for reference only.
    - `title` string
    - `artist` string
    - `duration` number — Track duration in seconds.
    - `genres` string[]
    - `cover_url` string — Artwork image URL.
    - `preview_url` string — Audio preview URL.
    - `rank` integer — Position in TikTok's trending chart for the requested filters.

## Other responses

- `400` — The profile has no TikTok connection able to serve this endpoint. Reconnecting the TikTok account from Manage Users enables it.
- `401` — Unauthorized — Invalid or expired token.
- `409` — The TikTok token expired and could not be refreshed; the account must be reconnected.
- `502` — TikTok rejected the request. Its message is returned verbatim.

## Changes

- **2026-08-31** `f3ef68b64fbc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/upload-post/apis/upload-post-api/changes/uploadposts/tiktok/music/trending/get.md)

---

[API](https://skmtc.dev/upload-post/apis/upload-post-api.md) · [All operations](https://skmtc.dev/upload-post/apis/upload-post-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/upload-post/upload-post-api/revisions/f3ef68b64fbc/schema)
