InstagramPOSTS
Get post comments
Retrieve paginated comments for a post or reel.
/v1/instagram/posts/commentsCursor-paginatedhttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/instagram/posts/comments?media_code=DQrUvnfDKVy" \ -H "X-API-KEY: $AIRAA_KEY"
{
"comments": [
{
"id": "18091672682215878",
"text": "A song bahut achcha Laga madam mujhe nice song thank you so much just perform karke gana dene ke liye 🫶✨✨",
"comment_url": "https://instagram.com/reel/DQrUvnfDKVy/c/18091672682215878/",
"published_at": "2026-10-14T17:13:26.000Z",
"like_count": 2,
"reply_count": 0,
"author": {
"id": "26579170065",
"username": "shiva__14j",
"profile_url": "https://www.instagram.com/shiva__14j/",
"full_name": "Shiva..",
"profile_picture_url": "https://scontent-hel3-1.cdninstagram.com/v/t51.82787-19/841754073_18122941816882066_8713856294946899746_n.jpg",
"is_private": false,
"is_verified": false
}
},
{
"id": "18110619521223875",
"text": "🔥🔥😍😍",
"comment_url": "https://instagram.com/reel/DQrUvnfDKVy/c/18110619521223875/",
"published_at": "2026-10-14T12:04:50.000Z",
"like_count": 1,
"reply_count": 0,
"author": {
"id": "26579170065",
"username": "shiva__14j",
"profile_url": "https://www.instagram.com/shiva__14j/",
"full_name": "Shiva..",
"profile_picture_url": "https://scontent-hel3-1.cdninstagram.com/v/t51.82787-19/841754073_18122941816882066_8713856294946899746_n.jpg",
"is_private": false,
"is_verified": false
}
}
],
"pagination": {
"next_cursor": "4CkH8yk3DB7yFfy713E4WAxDk0RqGgjj1dcbHGhPAUqP…",
"has_more": true,
"total_count": 4069
}
}To fetch the next page, pass pagination.next_cursor back as cursor. pagination.total_count is the total number of comments on the post.
Parameters
Query stringmedia_codestringrequiredPost shortcode (e.g. DQrUvnfDKVy)
Example DQrUvnfDKVy
cursorstringoptionalPagination cursor from the previous response (pagination.next_cursor)
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| comments | array<object> | Comments on this page |
| comments[].id | string | Canonical comment ID |
| comments[].text | string | Comment text |
| comments[].comment_url | string · url | Absolute URL of the comment |
| comments[].published_at | string · date-time | When the comment was posted, ISO 8601 UTC timestamp |
| comments[].like_count | integer | Number of likes on the comment |
| comments[].reply_count | integer | Number of replies to the comment |
| comments[].author | object | The account that wrote the comment |
| comments[].author.id | string | Canonical Instagram user ID |
| comments[].author.username | string | Instagram handle, without the @ |
| comments[].author.profile_url | string · url | Absolute URL of the profile on instagram.com |
| comments[].author.full_name | string | Display name shown on the profile |
| comments[].author.profile_picture_url | string · url | Profile picture URL on the Instagram CDN |
| comments[].author.is_private | boolean | Whether the account is private |
Errors
{ "error": "message" }| Status | Meaning | Retry |
|---|---|---|
| 400 | Missing or invalid query parameter { "error": "username is required" } | No. Fix the request. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 429 | Request quota exceeded — contact light@airaa.xyz to upgrade your plan { "error": "Request quota exceeded — contact light@airaa.xyz to upgrade your plan." } | After your quota resets |
| 500 | Server misconfiguration — API key environment variable not set { "error": "Server configuration error" } | No. Contact us. |
| 502 | Upstream provider temporarily unavailable — please try again { "error": "Upstream service unavailable" } | Yes, with backoff |
| 504 | Request timed out — please try again { "error": "Request timed out — please try again." } | Yes, with backoff |