Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

TikTok Song

Documentación de la API
https://api.sandbase.ai/v1/api/tiktok/song

Fetch details for a TikTok song or sound (title, author, duration, cover art, and how many videos use it).

Precio
Desde $0.0006USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
The clip identifier for the song, found in TikTok music URLs (e.g. 7439295283975702544).
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

TikTok Song API

Returns details for one TikTok song or sound: title, author, album, duration, cover image URL, and the number of videos that use it. It needs the clipId from a TikTok music URL.

Use cases

  • Check how many TikTok videos use a track to see how widely it has spread.
  • Pull the title, author, and album for a sound ID to label it in a music tracking sheet.
  • Tell original sounds apart from licensed tracks using the isOriginal flag.
  • Save the cover image and share link to show a sound in a dashboard or report.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/song" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clipId": "7439295283975702544"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
clipIdstringYesThe clip identifier for the song, found in TikTok music URLs (e.g. 7439295283975702544).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "album": "GNX",
    "author": "Kendrick Lamar & SZA",
    "coverUrl": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/ooCBAEtE4DqIfBLAjADiRIneQAT…",
    "duration": 59,
    "isOriginal": false,
    "shareUrl": "https://www.tiktok.com/music/-7439295283975702544",
    "songId": "7439295283975702544",
    "title": "luther",
    "videoCount": 1425960
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the song exists. A lookup that finds nothing returns false.
data.titleName of the song or sound, for example luther.
data.authorArtist or creator credited for the sound, for example Kendrick Lamar & SZA.
data.albumAlbum the track belongs to, for example GNX.
data.durationLength of the sound. The example value is 59.
data.videoCountNumber of TikTok videos that use this sound.
data.isOriginalWhether the sound is marked as an original sound. It is false for this track.
data.songIdID of the song, the same value as the clipId in the request.
data.coverUrlURL of the cover image for the song.
data.shareUrlLink to the song's page on TikTok.

Notes

  • Take clipId from the number at the end of a TikTok music URL, such as 7439295283975702544.
  • Check found before reading data.
  • To list videos that use this sound, call TikTok Music Video List.
  • For a second view of a song, call TikTok Music Details.

Pricing

Billed at the actual cost of each call, about $0.0006 for the request above. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTok SongEsta API
TikTok
Desde $0.0006 por llamadaJSON
TikTokDesde $0.0012 por llamadaJSON
TikTokDesde $0.0008 por llamadaJSON
TikTokDesde $0.0008 por llamadaJSON
TikTok$0.001 por llamadaJSON
TikTok$0.001 por llamadaJSON

Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de TikTok Song?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/song con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de TikTok Song?

Desde $0.0006 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de TikTok Song?

Requeridos: clipId (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de TikTok Song?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de TikTok?

No. TikTok Song funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok por separado.