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

TikTok Video Transcript (native captions)

Documentación de la API
https://api.sandbase.ai/v1/api/tiktok/video-transcript

Fetch the caption track TikTok itself published for a video, as TikTok wrote it. It is the cheapest way to get the words, and it is only as good as TikTok's own transcription: it mishears names and uncommon words, and many videos - especially non-English ones - have no caption track at all, which comes back as not found. When you need the words to be right, or there is no track to read, tiktok.video_transcript_full transcribes the audio with speech-to-text instead.

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

Entorno de pruebas

Entrada
TikTok video URL on tiktok.com: a video or photo post (https://www.tiktok.com/@<user>/video/<id> or /photo/<id>) or a vm.tiktok.com, vt.tiktok.com or tiktok.com/t/ share link. A profile link (https://www.tiktok.com/@<user>), a /@<user>/<id> link without /video/ (TikTok sends it to the For You feed, not a video), a video file link (tiktokcdn.com) or a link to any other site is refused as invalid input, with no charge.
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 `language`, 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 video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

TikTok Video Transcript (native captions) API

Returns the caption track TikTok published for one video, as a WebVTT text with timestamps. It needs a TikTok video or photo post URL. If the video has no caption track, the call succeeds and returns found: false.

Use cases

  • Pull the spoken words from a news clip to quote or search them.
  • Index captions from many videos to find which ones mention a brand, product or topic.
  • Read the caption language to sort videos by spoken language before further analysis.
  • Feed the caption text into a summary or sentiment pipeline without downloading the video.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/video-transcript" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.tiktok.com/@washingtonpost/video/7609177768793787679"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesTikTok video URL on tiktok.com: a video or photo post (https://www.tiktok.com/@<user>/video/<id> or /photo/<id>) or a vm.tiktok.com, vt.tiktok.com or tiktok.com/t/ share link. A profile link (https://www.tiktok.com/@<use
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example language, and it is served only by a source that returns every one o

Example response

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

{
  "data": {
    "id": "7609177768793787679",
    "language": "en",
    "transcript": "WEBVTT\n\n\n00:00:00.020 --> 00:00:01.540\nYour tariffs are illegal. They're not.\n\n0…",
    "url": "https://www.tiktok.com/@washingtonpost/video/7609177768793787679"
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when TikTok has a caption track for the video. false means no track was found.
data.idThe numeric TikTok video ID, taken from the URL.
data.languageLanguage code of the caption track, for example en.
data.transcriptThe caption track in WebVTT format. Each cue has a start and end time (HH:MM:SS.mmm) followed by the caption text.
data.urlThe TikTok video URL the transcript belongs to.

Notes

  • Pass a full video URL such as https://www.tiktok.com/@<user>/video/<id>, a /photo/<id> URL, or a vm.tiktok.com, vt.tiktok.com or tiktok.com/t/ share link. Profile links and video file links are refused as invalid input.
  • Set requireFields to ["language"] to make sure the serving source returns data.language. This can change the price of the call.
  • The text is TikTok's own transcription, so names and uncommon words can be wrong. If the track is missing or must be accurate, use the full transcription API tiktok.video_transcript_full.

Pricing

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTokDesde $0.0011 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 Video Transcript (native captions)?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/video-transcript 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 Video Transcript (native captions)?

Desde $0.0011 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 Video Transcript (native captions)?

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

¿Qué devuelve la API de TikTok Video Transcript (native captions)?

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 Video Transcript (native captions) 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.