Объект
Объект 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. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.
| Поле | Тип | Из представления | Описание |
|---|---|---|---|
post_id | string | compact | Запрошенный ID публикации или видео. |
source | string | compact | 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 | compact | The post's own title, as the platform gives it. |
description | string | null | standard | The post's own caption, as the platform gives it. · может обрезаться в compact |
blocks | TextBlock[] | standard | Text read, image by image or by time; images and frames without text are left out. |
text | string | compact | Все блоки, объединённые переносами строк. · может обрезаться в compact |
ext | object | full | Дополнительные поля конкретной платформы. Возвращаются только при view=full. · только при view=full |
TextBlock
| Поле | Тип | Описание |
|---|---|---|
index | integer | null | Which image, from 0, in the post's order; null for video frames. |
image_url | string | null | Распознанное изображение; null для кадров видео. |
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 | Распознанный текст с сохранением строк. |
Эндпоинты, возвращающие MediaText
- Текст заметки с изображениями RedNotexiaohongshu.notes.text.getMediaText$0.048/call
- Текст на экране в видео RedNotexiaohongshu.videos.screen_text.getMediaText$0.052/call
- Текст поста с изображениями Douyinскороdouyin.notes.text.getMediaText$0.007/call
- Текст на экране в видео Douyindouyin.videos.screen_text.getMediaText$0.011/call