Sound
A sound, and how many posts use it.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe sound's link (https://www.tiktok.com/music/<title>-7311…, or a share link).
id?stringThe sound's id (a post's ext.sound.id), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A TikTok sound.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.tiktok.sound({ id: "7711465298314021645" });Example Response
{ "data": { "id": "7711465298314021645", "title": "original sound", "artist": "Nike", "url": "https://www.tiktok.com/music/original-sound-7711465298314021645", "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/e0b0ac7b6ad6447a8e923fd1eb162f2c~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=c73b1f8a&x-expires=1795730400&x-signature=WFCAToitWtbkgo5qXRwrQmcX%2FZY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my", "playUrl": "https://v77.tiktokcdn.com/18561280bd0a1c77beb782a4266b724b/6b076011/video/tos/alisg/tos-alisg-v-2370c799-sg/oMAI8g96QU8okJCClSeGeH8THXELAAUAA7fWQ7/?a=1180&bti=ODszNWYuMDE6&&bt=125&ft=.NpOcInz7ThjlupVXq8Zmo&mime_type=audio_mpeg&rc=anN2bXk5cnRkZjMzZzU8NEBpanN2bXk5cnRkZjMzZzU8NEBjcmsvMmRzLi9hLS1kMS9zYSNjcmsvMmRzLi9hLS1kMS9zcw%3D%3D&vvpl=1&l=20261125062404FD1F8DEF82FA14581BED&btag=e00070000", "durationSeconds": 13, "original": true, "posts": 0, "ext": { "authorUsername": "nike", "copyrighted": false, "commercial": false } }}