Get Instagram Post Comments

View all Instagram Data API endpoints →

Read comments on a public post, Reel or IGTV item. Pass code_or_url (shortcode or URL); optionally sort_by recent (default) or popular; continue with the pagination_token from the previous response. The documented response returns the post's caption record, comment_count and comments[], where each comment carries pk (the comment id), text, created_at, comment_like_count, child_comment_count and a user object with id, username, verification and privacy flags, and profile picture. Keep each comment's pk — it is the comment_id input for the comment replies endpoint.

API Features

Recent or popular sorting sort_by selects the newest-first default or the popular-ranked view of the discussion.
Reply counts included child_comment_count flags which comments have reply threads worth expanding.
Author identity per comment Each comment carries the author's id, username, verification and privacy flags.
Reply-thread chaining Comment pk values feed directly into the comment replies endpoint.

Live API Demo

GET /api/project/instagram/post-comments

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/instagram/post-comments?key=<API_KEY>&code_or_url=CnpPou9hWqq'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Frequently asked questions

How do I collect Instagram comments and their replies?

First page through comments by post shortcode with this endpoint, keeping each comment's pk; then pass that pk as comment_id together with the post shortcode to the comment-replies endpoint to expand the reply thread.

Related operations

Guides

View Subscription Plans →