Get Instagram DM messages
Automatically get Instagram DM messages on instagram.com. Read the messages of a DM conversation by thread_id (get the thread_id from get_inbox). count=0 fetches every page. Returns thread_id, title, users, last_seen_at, count, and messages in chronological order (oldest to newest), each with id, sent_by_me, sender, type (Instagram's own content type for text, images, videos, GIFs, shared posts and so on), text, timestamp, date (ISO), status and reactions. Timestamps are microsecond epochs; text is null for messages without text; sender is null for your own messages (sent_by_me=true). Reactions carry no time.
Input
thread_id requiredcount optionalOutput
count requiredusers requiredcomplete requiredTrue when the whole conversation was read; false when count stopped the read before the oldest message.
messages requiredthread_id requiredlast_seen_at requiredPer-participant read position for the thread, as Instagram reports it. Empty when Instagram returns none.
title optionalFAQ
Send Instagram DM
Send a DM to an Instagram user by their username: plain text, an image attachment, or both together. Takes the image as base64 so it runs from any client. Returns ids/timestamps for whichever parts were sent, and the recipient-side restriction banner if one is shown right after sending.
Get Instagram post comments
Fetch the preview comments of an Instagram post or reel by shortcode, plus its caption and counts. Returns code, url, caption, comments (text, user, verified, created_at, like_count, reply_count), like_count, view_count, comment_count, and comments_disabled. Only returns the comments Instagram renders by default, not the full thread, capped to count.
Delete Instagram post
Delete one of your own Instagram posts or reels by shortcode. Opens the post, drives More options then Delete and the confirmation, and then reloads the post's link to prove it is really gone before reporting success. Returns the shortcode, the media id when Instagram exposes it, and whether the post was verified as removed. Fails clearly when the shortcode is not available to you (already deleted, private, or another account's) and when the post is still live after the confirmation.
