All endpoints
Instagram Comment Replies

Instagram Comment Replies API

Get the replies to a single Instagram comment by post URL or shortcode plus the comment ID from the Post Comments endpoint. Returns each reply's text, author details, like count, date, link, and the comment it replies to.

Price: $0.006 per page
Free tier: 50 requests/month
Endpoint
GET /v1/instagram/comment/replies

Parameters

url
Instagram post or reel URL, e.g. https://www.instagram.com/p/CxYQJO8xuC6/ (max 500 characters). Provide either url or code.
code
The post's shortcode, e.g. CxYQJO8xuC6, or numeric media ID (max 50 characters). Provide either url or code.
comment_id *
The comment's numeric ID, from the Post Comments endpoint (max 50 characters)
pages
Number of pages to fetch, 1-10 (default: 1)
get_sentiment
Set to true to add AI emotion analysis (Plutchik's Wheel) to each result. Adds +$0.001 per page to the cost. Returns emotion scores, dominant emotion, intensity, and polarity.

Response fields

replies
Array of replies, oldest first
comment_id
Unique comment ID
text
Comment text
author
Commenter's Instagram username
author_name
Commenter's display name
author_id
Commenter's Instagram user ID
author_verified
Whether the commenter is verified
author_url
Link to the commenter's profile
author_profile_pic_url
Commenter's profile picture URL
likes
Number of likes
reply_count
Number of replies
is_pinned
Whether the comment is pinned
hashtags
Hashtags used in the comment
mentions
Usernames mentioned in the comment
date
Publication date and time
date_timestamp
Publication date as a Unix timestamp
url
Direct link to the comment (empty when the post was given by media ID)
source
"Instagram"
domain
"instagram.com"
gif_url
GIF URL for GIF comments (null otherwise)
parent_comment_id
ID of the top-level comment the thread belongs to
replied_to_comment_id
ID of the comment being replied to
sentiment
Emotion analysis results. Only present when get_sentiment=true. Returns null if analysis fails.
emotions
Plutchik emotion scores (0-100) for: joy, trust, fear, surprise, sadness, disgust, anger, anticipation.
dominant_emotion
The emotion with the highest score.
emotional_intensity
Overall emotional intensity on a scale of 0-10.
polarity
Overall sentiment polarity: positive, negative, or neutral.
comment_id
The requested comment ID
code
The post's shortcode (or media ID, if that was passed)
total
Total number of replies
pages
Number of pages fetched
count
Number of replies returned

Example Request

curl "https://apidirect.io/v1/instagram/comment/replies?code=C3OqtMeRxrV&comment_id=18033049183828491" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "replies": [
    {
      "comment_id": "18026563642931570",
      "text": "@instagram haha",
      "author": "omer.arincc",
      "author_name": "Ă–merArnc",
      "author_id": "52890574747",
      "author_verified": false,
      "author_url": "https://instagram.com/omer.arincc",
      "author_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/photo.jpg",
      "likes": 9,
      "reply_count": 0,
      "is_pinned": false,
      "hashtags": [],
      "mentions": [
        "instagram"
      ],
      "date": "2024-02-12 18:56:19",
      "date_timestamp": 1707759379,
      "url": "https://www.instagram.com/p/C3OqtMeRxrV/c/18033049183828491/r/18026563642931570/",
      "source": "Instagram",
      "domain": "instagram.com",
      "gif_url": null,
      "parent_comment_id": "18033049183828491",
      "replied_to_comment_id": "18033049183828491"
    }
  ],
  "comment_id": "18033049183828491",
  "code": "C3OqtMeRxrV",
  "total": 52,
  "pages": 1,
  "count": 9
}

Frequently asked questions

Where do I get the comment ID?

From the Post Comments endpoint. Each comment has a comment_id.

Why is the replies array empty?

The comment has no replies. Check reply_count on the comment first.

How does pricing work?

You only pay for successful requests. The Instagram Comment Replies API costs $0.006 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.

Do I need a credit card to start?

No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.

Are there rate limits?

Yes, there's a concurrency limit of 5 simultaneous requests per endpoint per user. If you need more, just get in touch.

Start using the Instagram Comment Replies API

Get your API key and start making requests in minutes. 50 requests/month free every month.

Get API Key