# Transcript

> Văn bản có mốc thời gian của video.

Canonical page: https://okdata.online/docs/objects/transcript/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `video_id` | string | ID của video. |
| `lang` | string | Ngôn ngữ của bản ghi lời này. |
| `segments` | Segment[] | Các đoạn có mốc thời gian, theo thứ tự. |
| `text` | string | Tất cả đoạn, nối thành văn bản thuần. |

### Segment

| Field | Type | Description |
|---|---|---|
| `start` | number | Bắt đầu, tính bằng giây từ đầu. |
| `end` | number | Thời điểm kết thúc, tính bằng giây từ đầu. |
| `text` | string | Nội dung được nói trong đoạn này. |

## Endpoints that return a Transcript

- [Bản chép lời video TikTok](https://okdata.online/apis/tiktok/videos/transcript/get/) (`tiktok.videos.transcript.get`): $0.002 per call
- [Chuyển giọng nói video TikTok thành văn bản](https://okdata.online/apis/tiktok/videos/asr/get/) (`tiktok.videos.asr.get`): $0.044 per call
- [Bản chép lời video YouTube](https://okdata.online/apis/youtube/videos/transcript/get/) (`youtube.videos.transcript.get`): $0.004 per call
- [Transcript reel Instagram](https://okdata.online/apis/instagram/posts/transcript/get/) (`instagram.posts.transcript.get`): $0.004 per call
- [Bản chép lời video X](https://okdata.online/apis/x/posts/transcript/get/) (`x.posts.transcript.get`): $0.042 per call
- [Transcript video Reddit](https://okdata.online/apis/reddit/posts/transcript/get/) (`reddit.posts.transcript.get`): $0.004 per call
- [Bản ghi lời tập Apple Podcasts](https://okdata.online/apis/apple_podcasts/episodes/transcript/get/) (`apple_podcasts.episodes.transcript.get`): $0.014 per call
- [Transcript video RedNote](https://okdata.online/apis/xiaohongshu/videos/transcript/get/) (`xiaohongshu.videos.transcript.get`): $0.084 per call
- [Bản ghi lời video Douyin](https://okdata.online/apis/douyin/videos/transcript/get/) (`douyin.videos.transcript.get`): $0.044 per call
- [Bản chép lời video Weibo](https://okdata.online/apis/weibo/videos/transcript/get/) (`weibo.videos.transcript.get`): $0.044 per call
- [Phụ đề video Bilibili](https://okdata.online/apis/bilibili/videos/transcript/get/) (`bilibili.videos.transcript.get`): $0.003 per call
- [Chuyển giọng nói video Bilibili thành văn bản](https://okdata.online/apis/bilibili/videos/asr/get/) (`bilibili.videos.asr.get`): $0.046 per call
- [Transcript video Kuaishou](https://okdata.online/apis/kuaishou/videos/transcript/get/) (`kuaishou.videos.transcript.get`): $0.044 per call
- [Bản chép lời tập Xiaoyuzhou](https://okdata.online/apis/xiaoyuzhou/episodes/transcript/get/) (`xiaoyuzhou.episodes.transcript.get`): $0.014 per call
- [Bản chép lời video Toutiao](https://okdata.online/apis/toutiao/videos/transcript/get/) (`toutiao.videos.transcript.get`): $0.044 per call
- [Bản chép lời video Xigua](https://okdata.online/apis/xigua/videos/transcript/get/) (`xigua.videos.transcript.get`): $0.044 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `video_id`, `lang`, `text`
- standard: `segments`
- full: —
