Para IA

Objeto

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.

CampoTipoDa viewDescrição
post_idstringcompactO ID do post ou vídeo solicitado.
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.
extobjetocompletoExtras específicos da plataforma. Retornados apenas com view=full. · apenas com view=full

MediaFile

CampoTipoDescrição
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

Conecte uma vez e é só perguntar.

Toda chave nova vem com $0.20 para testar. Uma frase conecta seu agente.

Comece grátis
Conecte sua IA

Cole isto no seu agente

Leia https://okdata.online/agents.md e configure okdata para mim; minha chave está na variável de ambiente OKDATA_API_KEY.

Claude Code, Cursor, Codex e outros agentes que conseguem abrir um link se configuram sozinhos a partir dele.

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