GET/v1/instagram/user/posts
Get user posts
Retrieve paginated post feed for a user. Posts are returned in the `items` array (IG-native media objects, each enriched with `url` and `profile_url`). Pass `pagination_info.cursor` back as `cursor` for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| usernamerequired | string | Instagram username e.g. instagram |
| cursor | string | Pagination cursor from previous response (`pagination_info.cursor`) |
Request
Shell
curl -G "https://social-api.airaa.xyz/v1/instagram/user/posts" \ -H "X-API-KEY: YOUR_KEY" \ -d "username=instagram" \ -d "cursor=cursor"
Try it
Live requestRuns against the real API
X-API-KEY
usernamerequired
cursor
Response example
200 OKapplication/json
{
"items": [
{
"pk": "3859009578965227631",
"id": "3859009578965227631_1334850329",
"code": "DWN9MQjDVhv",
"media_type": 8,
"like_count": 255,
"comment_count": 12,
"taken_at": 1774249812,
"caption": {
"text": "Pink City, but make it personal 💗 …"
},
"image_versions2": {
"candidates": [
{
"url": "https://scontent.cdninstagram.com/v/...",
"width": 720,
"height": 960
}
]
},
"url": "https://instagram.com/p/DWN9MQjDVhv",
"profile_url": "https://instagram.com/wherevermyheartgoes"
}
],
"user": {
"pk": "1334850329",
"username": "wherevermyheartgoes"
},
"pagination_info": {
"cursor": "3785854791004487031_8085487439",
"has_more": true,
"count": 12
},
"profile_url": "https://instagram.com/wherevermyheartgoes",
"status": "ok"
}Response codes
200Posts list
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" }