Für KI

Objekt

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.

FeldArtAus viewBeschreibung
post_idstringcompactDie angefragte Beitrags- oder Video-ID.
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.
extObjektvollständigPlattformspezifische Zusatzfelder. Nur mit view=full. · nur mit view=full

MediaFile

FeldArtBeschreibung
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

Einmal verbinden, dann einfach fragen.

Jeder neue Key enthält $0.20 zum Testen. Ein Satz verbindet Ihren Agent.

Kostenlos starten
KI verbinden

Fügen Sie das in Ihren Agent ein

Lies https://okdata.online/agents.md und richte okdata für mich ein; mein Key steht in der Umgebungsvariable OKDATA_API_KEY.

Claude Code, Cursor, Codex und andere Agents, die Links öffnen können, richten sich damit selbst ein.

MCP-Serverhttps://api.okdata.online/mcp