App Logo
instagram.com

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 required

Hashtag without the leading #, e.g. "nasa" or "spacex".

Output

tag required

The hashtag as Instagram spells it (always lowercase).

posts required
restricted required

True 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 required

Start building not clicking