Skip to main content

Get Media

Retrieve hashtag media by hashtag name.

Params​

NameTypeDefaultDescription
name (required)string–Hashtag name
max_idstringNoneUse for pagination

In order to use pagination, pass the next_max_id value from the previous response as max_id.

Note: as of November 16, 2026, the tab parameter (previously recent, top or clips) is no longer accepted: IG removed hashtag tabs.

Usage​

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_hashtag_media("catsofinstagram"))

Response example​

Loading...