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 for a flat list without reply threads
orderintNoneComments order:
0 - popular (default)
1 - most recent
2 - verified
Requires can_support_threading = True

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

If you are looking to retrieve all comments from a post, we recommend using order = 1 (most recent) for pagination.

Usage

from rocketapi import InstagramAPI


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

Response example

Loading...