Instagram API
Search Instagram content and inspect public profiles, reels, hashtags and comments.
Read a comment thread from a post link
1. Get the comments
Pass the public post URL or shortcode as code_or_url. From the returned items, take the id of the comment you want to expand.
instagram.post.comments2. Open the replies
Keep the same code_or_url and pass the selected id as comment_id. Each reply has its own id.
instagram.comment.replies
{
"items": [
{
"id": "reply-1",
"parent_comment_id": "18117277147949901",
"text": "Example reply"
}
]
}An empty items list means this page returned no replies. If the result includes next, use it to request another page.
Request a quote for the comments call. Execute separately after approving the price.
curl https://api.anyuse.app/v1/quotes -H "Authorization: Bearer $ANYUSE_API_KEY" -H "Content-Type: application/json" -d '{"operation":"instagram.post.comments","input":{"code_or_url":"DRhvwVLAHAG"}}'Instagram API reference
- Search Instagram content / $0.004 / 1 request
- Search Instagram Reels / $0.004 / 1 request
- Read an Instagram post / $0.004 / 1 request
- Read Instagram comments / $0.004 / 1 request
- Read Instagram comment replies / $0.004 / 1 request
- Search Instagram accounts / $0.004 / 1 request
- Read an Instagram profile / $0.004 / 1 request
- List Instagram account posts / $0.004 / 1 request
- List Instagram account Reels / $0.004 / 1 request
- List Instagram hashtag posts / $0.004 / 1 request