Get the comments on an Instagram post or reel by URL or shortcode. Returns each comment's text, author details, like and reply counts, date, and link. Sort by popular or recent, and fetch multiple pages in a single call.
curl "https://apidirect.io/v1/instagram/post/comments?code=CxYQJO8xuC6&pages=2" \
-H "X-API-Key: YOUR_API_KEY"
{
"comments": [
{
"comment_id": "18058799162049620",
"text": "Nice post!",
"author": "garcia99.r",
"author_name": "Robert Garcia",
"author_id": "72771312829",
"author_verified": false,
"author_is_ai_generated_profile": false,
"author_url": "https://instagram.com/garcia99.r",
"author_profile_pic_url": "https://scontent.cdninstagram.com/v/t51.89012-19/photo.jpg",
"likes": 23,
"reply_count": 0,
"is_pinned": false,
"hashtags": [],
"mentions": [],
"date": "2025-03-09 13:20:14",
"date_timestamp": 1741524014,
"url": "https://www.instagram.com/p/CxYQJO8xuC6/c/18058799162049620/",
"source": "Instagram",
"domain": "instagram.com",
"gif_url": null
}
],
"code": "CxYQJO8xuC6",
"total": 4006,
"pages": 2,
"count": 23
}