List Instagram post comments
Returns top-level comments on a public Instagram post, ordered by sort_by. If a comment's child_comment_count is above 0, pass its ID to /v1/instagram/post/comments/replies. Page with pagination_token.
3 credits / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
code*string
Shortcode from the post URL (DcBr7X4SL3h in instagram.com/p/DcBr7X4SL3h/), or the full post URL.
Length
1 <= lengthsort_by?string
Comment order: recent or popular.
Default
"recent"Value in
- "recent"
- "popular"
pagination_token?string
Pass the previous response's pagination_token.
curl -X GET "https://example.com/v3/instagram/post/comments?code=DcBr7X4SL3h" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "count": 0, "items": [ { "property1": null, "property2": null } ], "pagination_token": "string", "property1": null, "property2": null }}