Comments
Comment on a Post
const commentId = await instagram.commentOnMedia(
'MEDIA_ID',
'Great post! 👍'
);Reply to Comment
const replyId = await instagram.replyToComment(
'COMMENT_ID',
'Thanks for your comment!'
);Get Comments on Post
const comments = await instagram.getMediaComments('MEDIA_ID');
comments.forEach(comment => {
console.log(`${comment.username}: ${comment.text}`);
});Get Replies to Comment
const replies = await instagram.getCommentReplies('COMMENT_ID');Hide/Unhide Comment
// Hide comment
await instagram.hideComment('COMMENT_ID');
// Unhide comment
await instagram.unhideComment('COMMENT_ID');Delete Comment
await instagram.deleteComment('COMMENT_ID');Source captured: 2026-10-11