Skip to content

Instagram API

Search Instagram content and inspect public profiles, reels, hashtags and comments.

Read a comment thread from a post link

  1. 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.comments
  2. 2. 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
Reply from a test fixture (selected fields)
{
  "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

Your next API call starts here.