Dành cho AI

Đối tượng

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.

TrườngLoạiTheo viewMô tả
post_idstringcompactID bài đăng hoặc video được yêu cầu.
urlstring | nullcompactThe post's page.
typestringcompactvideo: a video post; image: an image post (its images, and the clips of any live photos).
titlestring | nullcompactThe post's title or caption, as the platform gives it.
duration_secondsnumber | nullcompactThe video's length in seconds; null for image posts.
cover_urlstring | nullstandardCover image (it expires too).
filesMediaFile[]compactThe files: video renditions best first, then audio tracks, then images in the post's order.
refererstring | nullcompactSend this as the Referer header when downloading (the host refuses requests without it); null when none is needed.
extobjectfullDữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full

MediaFile

TrườngLoạiMô tả
kindstringvideo: a video rendition (with sound unless the post has separate audio tracks); audio: a sound-only track; image: a picture.
urlstringThe file. Signed, and it expires: download it soon.
backup_urlsstring[] | nullMirrors of the same file, to try in order when url fails.
widthinteger | nullWidth in pixels.
heightinteger | nullHeight in pixels.
bitrateinteger | nullBits per second, where given.
qualitystring | nullThe platform's name for this rendition, where given.
size_bytesinteger | nullFile size in bytes, where given.

Endpoints that return a PostMedia

Kết nối một lần, sau đó chỉ cần hỏi.

Mỗi khóa mới đi kèm $0.20 để dùng thử. Một câu là kết nối được agent của bạn.

Bắt đầu miễn phí
Kết nối AI của bạn

Dán câu này vào agent của bạn

Đọc https://okdata.online/agents.md và thiết lập okdata cho tôi; khóa của tôi nằm trong biến môi trường OKDATA_API_KEY.

Claude Code, Cursor, Codex và các agent khác có thể mở liên kết sẽ tự thiết lập từ đó.

MCP serverhttps://api.okdata.online/mcp