Skip to main content

Get Comments

Retrieve media comments by media id.

Params

NameTypeDefaultDescription
id (required)stringMedia id
min_idstringNoneUse for pagination
can_support_threadingboolTrueSet False if you want chronological order

You can use the min_id parameter to paginate through comments (take from the next_min_id field of the response).

Usage

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_comments(2967835229909923253))

Response example

Loading...