Đối tượng
Đối tượng 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.
| Trường | Loại | Theo view | Mô tả |
|---|---|---|---|
post_id | string | compact | ID bài đăng hoặc video được yêu cầu. |
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. · có thể bị cắt bớt ở chế độ compact |
blocks | TextBlock[] | standard | Text read, image by image or by time; images and frames without text are left out. |
text | string | compact | Tất cả khối, nối bằng dòng mới. · có thể bị cắt bớt ở chế độ compact |
ext | object | full | Dữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full |
TextBlock
| Trường | Loại | Mô tả |
|---|---|---|
index | integer | null | Which image, from 0, in the post's order; null for video frames. |
image_url | string | null | Ảnh đã đọc; null với khung hình video. |
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 | Phần chữ đã đọc, giữ nguyên xuống dòng. |
Các endpoint trả về MediaText
- Văn bản ghi chú ảnh RedNotexiaohongshu.notes.text.getMediaText$0.048/call
- Chữ trên màn hình video RedNotexiaohongshu.videos.screen_text.getMediaText$0.052/call
- Nội dung bài đăng ảnh Douyinsắp ra mắtdouyin.notes.text.getMediaText$0.007/call
- Chữ trên màn hình video Douyindouyin.videos.screen_text.getMediaText$0.011/call