Instagram/Post Comments
Post Comments
GET
https://api.shofo.ai/instagram/commentsGet comments from an Instagram post.
Pricing
Base cost: $0.0001 per comment
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
media_id | string | Required | Instagram post/media ID |
count | integer | Optional | Number of comments (min: 10)Default: 20 |
sort_order | string | Optional | Sort order: "popular" or "recent"Default: recent |
cursor | string | Optional | Pagination cursor (next_min_id) |
Note: The minimum count is 10 comments per request. Use sort_order to get either the most popular or most recent comments.
Pagination
To fetch more comments, use the cursor value (next_min_id) from the previous response. Continue fetching while has_more is true.
// First request GET /instagram/comments?media_id=3123456789&count=20&sort_order=recent // Subsequent requests GET /instagram/comments?media_id=3123456789&count=20&cursor=next_min_id_value
Use Cases
- •Sentiment analysis: Analyze audience reactions to posts
- •Community management: Monitor brand mentions and engagement
- •Influencer vetting: Assess comment quality and authenticity
- •Competitive analysis: Track competitor engagement patterns
Response Format
{
"success": true,
"data": {
"media_id": "3123456789012345678",
"comments": [
{
"id": "17912345678901234",
"text": "Love this post!",
"user": {
"pk": "123456789",
"username": "user123",
"full_name": "User Name",
"profile_pic_url": "https://..."
},
"created_at": 1705320000,
"like_count": 42
}
],
"cursor": "next_min_id_value",
"has_more": true,
"total_fetched": 20,
"comment_count": 1500,
"api_calls": 1
},
"cost": "$0.0020",
"request_id": "req_abc123"
}Try It
GET
https://api.shofo.ai/instagram/comments$0.0001
Send a request to see the response