TikTok Music API
Get a TikTok sound (a song or an original audio) and the posts that use it.
GET /v1/tiktok/music/{music}: title, artist, duration, cover, preview URL, number of posts using itGET /v1/tiktok/music/{music}/posts: posts that use the sound (up to 30 a page)
Cost: 1 credit per successful call (free from cache). An unknown sound answers 404 and is free.
Parameters
musicpathrequiredNumeric sound id (
music.id on any post) or a URL-encoded tiktok.com/music/<name>-<id> link.cursorqueryoptionalposts:
pagination.next_cursor from the previous page.freshqueryoptionaltrue skips the cache.rawqueryoptionaltrue returns TikTok's own JSON in data.FAQ
How many videos use a TikTok sound?
GET /v1/tiktok/music/{id} returns it in data.post_count.