Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Video Transcript (native captions)

Tài liệu 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.

Giá
Từ $0.0011USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
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.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTokTừ $0.0011 mỗi lần gọiJSON
TikTokTừ $0.0012 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Video Transcript (native captions)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/video-transcript với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Video Transcript (native captions) có giá bao nhiêu?

Từ $0.0011 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Video Transcript (native captions) chấp nhận những tham số nào?

Bắt buộc: url (string). Tùy chọn: requireFields (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Video Transcript (native captions) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Video Transcript (native captions) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.