Skip to main content

Get Media

Retrieve hashtag media by hashtag name.

Params

NameTypeDefaultDescription
name (required)stringHashtag name
tabstringrecentTab (allowed values: recent or clips)
pageintNoneUse for pagination
max_idstringNoneUse for pagination

In order to use pagination, you need to use both the max_id and page parameters. You can obtain these values from the response's next_page and next_max_id fields.

Usage

from rocketapi import InstagramAPI


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

Response example

Loading...