Get TikTok song

Get details for a TikTok song or sound by id.

GET/v1/tiktok/songs
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
idstringrequiredquery

TikTok song or sound id. Use the trailing id from a music page URL, or `music.id` from a video lookup.

min 1 chars

Response fields
27

Endpoint-specific response payload.

datalookupStatus
string

Whether the song was found.

one of: found, not_found

Song details when found; null when not found.

datasongid
stringnullable

Song or sound id.

datasongtitle
stringnullable

Song title.

datasongauthor
stringnullable

Song author or artist name.

datasongalbum
stringnullable

Album name when available.

datasongplayUrl
stringnullable

Playable audio URL when available.

datasongcoverUrl
stringnullable

Cover image URL when available.

datasongdurationSec
numbernullable

Clip duration in seconds.

≥ 0

datasongvideoCount
integernullable

Number of videos using this sound.

≥ 0

datasongisOriginal
booleannullable

Whether the sound is marked as original.

datasongisArtist
booleannullable

Whether the author is marked as an artist.

datasongshareUrl
stringnullable

Public share URL for the sound when available.

Credited artists who have a TikTok account, in TikTok's order. Empty for most original sounds and for artists without an account.

datasongartists[]handle
stringnullable

The artist's TikTok handle.

datasongartists[]displayName
stringnullable

The artist's display name on TikTok.

datasongartists[]platformUserId
stringnullable

The artist's numeric TikTok user id.

datasongartists[]secUid
stringnullable

The artist's TikTok secUid, a stable account id.

datasongartists[]verified
booleannullable

Whether the artist's account is verified.

datasongartists[]avatarUrl
stringnullable

The artist's avatar image URL when available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/tiktok/songs?id=6717159721276540930" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"

Responses

TikTok song details.