Per l'AI

Oggetto

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.

CampoTipoDalla vistaDescrizione
post_idstringcompactL'ID del post o del video richiesto.
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.
extobjectfullDati aggiuntivi specifici della piattaforma. Restituiti solo con view=full. · solo con view=full

MediaFile

CampoTipoDescrizione
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

Collegati una volta, poi chiedi e basta.

Ogni nuova chiave include $0.20 per provarla. Basta una frase per collegare il tuo agent.

Inizia gratis
Collega la tua AI

Incolla questo nel tuo agent

Leggi https://okdata.online/agents.md e configura okdata per me; la mia chiave è nella variabile d'ambiente OKDATA_API_KEY.

Claude Code, Cursor, Codex e gli altri agent in grado di aprire un link si configurano da soli a partire da qui.

Server MCPhttps://api.okdata.online/mcp