GET/v1/instagram/posts/comments
Get post comments
Parameters
| Name | Type | Description |
|---|---|---|
| media_idrequired | string | Media ID (numeric) |
| sort_order | string | Sort order for comments |
| cursor | string | Pagination cursor from previous response |
Request
Shell
curl -G "https://social-api.airaa.xyz/v1/instagram/posts/comments" \ -H "X-API-KEY: YOUR_KEY" \ -d "media_id=media_id" \ -d "sort_order=sort_order"
Try it
Live requestRuns against the real API
X-API-KEY
media_idrequired
sort_order
cursor
Response example
200 OKapplication/json
{
"comments": [
{
"pk": "18520748122076499",
"text": "😍😍😍",
"created_at": 1776201448,
"comment_like_count": 26,
"child_comment_count": 1,
"user": {
"pk": "9378450129",
"id": "9378450129",
"username": "kentsuneda",
"is_verified": true,
"profile_pic_url": "https://scontent.cdninstagram.com/v/pic.jpg"
}
}
],
"pagination_token": "{\"cached_comments_cursor\":\"17973477114008520\",...}"
}Response codes
200Comments
400Missing or invalid query parameter
401Missing or invalid `X-API-KEY` header
429Request quota exceeded — contact light@airaa.xyz to upgrade your plan
500Server misconfiguration — API key environment variable not set
502Airaa service temporarily unavailable — please try again
504Request timed out — please try again
All error responses follow the shape
{ "error": "message" }