instagram.com
Get Instagram DM attachment
Input
threadId requiredInstagram DM thread id (thread_id from instagram.com/get_inbox).
maxBytes optionalRefuse to base64-encode anything larger than this. Default 8000000 (8 MB) — videos can be far bigger, and the URL is still returned so it can be fetched directly.
messageId optionalMessage/item id to download. Omit to take the most recent message in the thread that carries media.
Output
itemType requiredInstagram's item_type, e.g. media, clip, voice_media, animated_media, media_share.
mediaUrl requiredthreadId requiredmessageId requiredsize optionalByte size of the downloaded media.
base64 optionalMedia bytes, base64-encoded. Null when the media exceeded maxBytes — mediaUrl is still usable.
filename optionalmimeType optionalpickedLatest optionalTrue when no messageId was given and the newest media item was used.
skippedEncoding optionalTrue when the bytes were not encoded because they exceeded maxBytes.
