Social Media
Instagram Post Comments
List comments on an Instagram post — comment id, text, author, and like count — with pagination, by shortcode or url.
POST/api/v1/instagram/post/comments
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonshortcodestringPost shortcode. Provide this or url.
Example: DZz4bjIjhdm
urlstringPost URL. Provide this or shortcode.
cursorstringPagination cursor from a previous response.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.post_comments(shortcode="DZz4bjIjhdm")
print(results)Response
"can_view_more_preview_comments": false,
"caption_is_edited": false,
"comment_count": 3534,
"comment_filter_param": "no_filter",
"comment_likes_enabled": true,
"has_more_comments": false,
"has_more_headload_comments": true,
"initiate_at_top": true,
"insert_new_comment_to_top": true,
"is_ranked": true,
"liked_by_media_owner_badge_enabled": true,
"media_header_display": "none",
"next_min_id": "{"cached_comments_cursor":"17952420354186173","bifilter_token":"GgYYgQEA342kEyNCQAA5CM3ZFoJAALMCFKyTvj8A_r5TGySTPwACqgEoAlVAACDcwGhVSUAA5Ogq…",
"scroll_behavior": 1,
"sort_order": "popular",
"threading_enabled": true,
"filter_options": [],
"sort_options": [],
"should_render_upsell": false,
"foundation_improvements_enabled": true,
"has_more_headload_fb_comments": false,
"fb_comments": [],
"ai_topic_filters": [],
"status": "ok"
},
"response_time": 2024,
"credits_used": 2,
"credits_remaining": 4726
}