객체
PostMedia object
Where a post's video, audio and images can be downloaded: each file's link, mirrors, size and quality. The links expire, mostly within hours. 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. |
url | string | null | compact | The post's page. |
type | string | compact | video: a video post; image: an image post (its images, and the clips of any live photos). |
title | string | null | compact | The post's title or caption, as the platform gives it. |
duration_seconds | number | null | compact | The video's length in seconds; null for image posts. |
cover_url | string | null | standard | Cover image (it expires too). |
files | MediaFile[] | compact | The files: video renditions best first, then audio tracks, then images in the post's order. |
referer | string | null | compact | Send this as the Referer header when downloading (the host refuses requests without it); null when none is needed. |
ext | 객체 | full | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. · view=full에서만 |
MediaFile
| 필드 | 유형 | 설명 |
|---|---|---|
kind | string | video: a video rendition (with sound unless the post has separate audio tracks); audio: a sound-only track; image: a picture. |
url | string | The file. Signed, and it expires: download it soon. |
backup_urls | string[] | null | Mirrors of the same file, to try in order when url fails. |
width | integer | null | Width in pixels. |
height | integer | null | Height in pixels. |
bitrate | integer | null | Bits per second, where given. |
quality | string | null | The platform's name for this rendition, where given. |
size_bytes | integer | null | File size in bytes, where given. |
Endpoints that return a PostMedia
- TikTok video filestiktok.videos.media.getPostMedia$0.002/call
- Instagram post and reel filesinstagram.posts.media.getPostMedia$0.004/call
- RedNote image note filesxiaohongshu.notes.media.getPostMedia$0.043/call
- RedNote video note filesxiaohongshu.videos.media.getPostMedia$0.043/call
- Douyin video and image filesdouyin.videos.media.getPostMedia$0.002/call
- Weibo post video and image filesweibo.posts.media.getPostMedia$0.002/call
- Bilibili video and audio tracksbilibili.videos.media.getPostMedia$0.004/call
- Kuaishou video fileskuaishou.videos.media.getPostMedia$0.002/call