Get Comments
Retrieve media comments by media id.
Params
Name | Type | Default | Description |
---|---|---|---|
id (required) | string | – | Media id |
min_id | string | None | Use for pagination |
can_support_threading | bool | True | Set 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
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_comments(2967835229909923253))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getMediaComments(2967835229909923253));
curl --request POST \
--url https://v1.rocketapi.io/instagram/media/get_comments \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 2967835229909923253
}'
Response example
Loading...