Instagram Post Comments
List comments on an Instagram post — comment id, text, author, like and reply counts — with pagination, by shortcode or url. 2 credits per page.
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: DUajw4YkorV
urlstringPost URL. Provide this or shortcode.
sort_orderstringpopular (default) or newest.
cursorstringThe next_min_id from the previous page.
Notes
Credits. Typically 2 credits per page. A request can cost up to 10 credits when it needs extra work to answer; credits_used in the response is always the exact charge.
Paging. Comments are in comments; comment_count is the post's total. For the next page, pass next_min_id as cursor while has_more_comments is true.
Replies. A comment with child_comment_count above 0 has replies: pass its pk as comment_id to Comment Replies.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.post_comments(shortcode="DUajw4YkorV")
print(results)Response