Get Replies
Retrieve comment replies (child comments) by comment id and media id.
Params
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | – | Comment id |
media_id (required) | int | – | Media id |
max_id | string | None | Use for pagination |
You can use the max_id
parameter to paginate through likes (take from the next_max_child_cursor
field of the response).
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_comment_replies(comment_id=17895381962753008, media_id=3109354025950018140))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getCommentReplies(3109354025950018140, 17895381962753008));
curl --request POST \
--url https://v1.rocketapi.io/instagram/comment/get_replies \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 3109354025950018140,
"media_id": 17895381962753008
}'
Response example
Loading...