# MediaText

> Words read off a post's pictures: each image of an image post, or the text shown on screen in a video, with times.

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

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 |
|---|---|---|
| `post_id` | string | The post or video ID asked for. |
| `source` | string | images: an image post, one block per image with text. frames: a video, one block per stretch of frames showing the same words. |
| `title` | string \| null | The post's own title, as the platform gives it. |
| `description` | string \| null | The post's own caption, as the platform gives it. |
| `blocks` | TextBlock[] | Text read, image by image or by time; images and frames without text are left out. |
| `text` | string | All blocks joined with new lines. |
| `ext` | object | Platform-specific extras. Only returned with view=full. |

### TextBlock

| Field | Type | Description |
|---|---|---|
| `index` | integer \| null | Which image, from 0, in the post's order; null for video frames. |
| `image_url` | string \| null | The image read; null for video frames. |
| `start` | number \| null | Seconds into the video where the words appear; null for images. |
| `end` | number \| null | Seconds into the video where the words were last seen; null for images. |
| `text` | string | The words read, lines kept. |

## Endpoints that return a MediaText

- [RedNote image note text](https://okdata.online/apis/xiaohongshu/notes/text/get/) (`xiaohongshu.notes.text.get`): $0.048 per call
- [RedNote video on-screen text](https://okdata.online/apis/xiaohongshu/videos/screen_text/get/) (`xiaohongshu.videos.screen_text.get`): $0.052 per call
- [Douyin image post text](https://okdata.online/apis/douyin/notes/text/get/) (`douyin.notes.text.get`): $0.007 per call
- [Douyin video on-screen text](https://okdata.online/apis/douyin/videos/screen_text/get/) (`douyin.videos.screen_text.get`): $0.011 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: `post_id`, `source`, `title`, `text`
- standard: `description`, `blocks`
- full: `ext`
