clipIdstringerforderlich
The song ID found in TikTok music URLs (e.g. 7439295283975702544).
https://api.sandbase.ai/v1/api/tiktok/song-videosList TikTok videos that use a given song or sound (with descriptions, authors, and engagement stats).
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns a page of TikTok videos that use a given song or sound. Each video includes its description, author, hashtags, engagement counts and links. The input is the song ID (clipId) from a TikTok music URL.
playCount values.likeCount or shareCount.authorHandle and authorUserId.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/song-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"clipId": "7439295283975702544"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
clipId | string | Yes | The song ID found in TikTok music URLs (e.g. 7439295283975702544). |
cursor | string | No | Pagination cursor for retrieving the next page of results. |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example nextCursor, and it is served only by a source that returns every one |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"hasMore": 1,
"nextCursor": "cur_H6EK-BtRQfER3uDYk3o7KA",
"videos": [
{
"authorHandle": "sza",
"authorImage": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/42b31651a14a0f…",
"authorName": "SZA",
"authorUserId": "7486547994222740523",
"collectCount": 13557,
"commentCount": 1640,
"createTime": 1746917771,
"description": "THANK YOU KENDRICK FOR COMING TO YESTERDAY’S @NotBeauty POP UP !!!! 🪲⛺️🫶🏾 @Ameri…",
"durationSeconds": 23,
"hashtags": [],
"image": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oMAj6PIBJAreJfqx…",
"likeCount": 228029
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.videos[].videoId / data.videos[].url | The ID of the video and its public TikTok page link. |
data.videos[].description | The caption text of the video, including mentions and emoji. |
data.videos[].hashtags[] | Hashtags from the caption, without the # sign. The list is empty when the caption has none. |
data.videos[].authorHandle / data.videos[].authorName | The handle and the display name of the creator who posted the video. |
data.videos[].authorUserId | The numeric ID of the creator's account. |
data.videos[].playCount / data.videos[].likeCount / data.videos[].commentCount / data.videos[].shareCount / data.videos[].collectCount | Engagement counts for the video: plays, likes, comments, shares and saves (collects). |
data.videos[].createTime | When the video was posted, as a Unix timestamp in seconds. |
data.videos[].durationSeconds | Length of the video in seconds. |
data.videos[].image / data.videos[].videoUrl / data.videos[].authorImage | Links to the video cover image, the video file and the author's avatar. |
data.hasMore / data.nextCursor | hasMore is 1 when more videos exist. nextCursor is the value to pass as cursor to get the next page. |
clipId with cursor set to the data.nextCursor value from the previous response.requireFields: ["nextCursor"] if you need every response to be able to return a next-page cursor. This can raise the price of the call.Billed at the actual cost of each call, about $0.0006 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/song-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"clipId": "7439295283975702544"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
clipIdstringerforderlichThe song ID found in TikTok music URLs (e.g. 7439295283975702544).
cursorstringPagination cursor for retrieving the next page of results.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Song VideosDiese API TikTok | Ab $0.0006 pro Aufruf | JSON |
TikTok | Ab $0.0012 pro Aufruf | JSON |
TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | Ab $0.0008 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/song-videos mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0006 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: clipId (string). Optional: cursor (string) und requireFields (array). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Song Videos läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.