Get Instagram hashtag posts
Fetch the top posts for a hashtag. Returns how many posts carry the hashtag and the top-grid entries (code, url, user, like_count, comment_count, caption, thumbnail, media_type, taken_at). This is the Top preview Instagram renders first, not the full paginated Recent feed. Pass the tag without the leading #; it is matched the way Instagram spells it, so capitals are fine. Some hashtags have posts but no preview, because Instagram withholds the top grid for topics it restricts: the post list then comes back empty and restricted is true, so that case is distinguishable from a hashtag nobody has used. A hashtag with no posts at all is reported as such.
Input
tag requiredHashtag without the leading #, e.g. "nasa" or "spacex".
Output
tag requiredThe hashtag as Instagram spells it (always lowercase).
posts requiredrestricted requiredTrue when Instagram withholds the top-post preview for this hashtag even though posts exist, so an empty posts list is not the same as an unused hashtag.
media_count requiredFAQ
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.
Follow Instagram user
Follow an Instagram user from their profile. outgoing_request=true means a pending request to a private account; fails if there's no Follow button (already followed/requested). Returns following, outgoing_request, followed_by, user_id.
