Instagram stories API
GET /ig/user/stories/{user_id} · base https://api.getsocialapi.com/v1
Active (24-hour) stories of a user. Upstream: feed/user/{id}/story/.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
user_id | path | yes | Numeric user id, 1–20 digits |
Example
curl https://api.getsocialapi.com/v1/ig/user/stories/25025320 \
-H "X-API-Key: gsa_live_..."
Response
{
"broadcast": null,
"reel": {
"id": "26025320174321000",
"user": { "pk": 25025320, "username": "instagram" },
"items": [
{
"pk": "4003541350560126622",
"taken_at": 1760112000,
"expiring_at": 1760361600,
"media_type": 2,
"image_versions2": { "candidates": [{ "url": "https://…", "width": 1080, "height": 1920 }] },
"video_versions": [{ "url": "https://…", "width": 720, "height": 1280, "type": 101 }],
"caption": null,
"audience": "default"
}
],
"prefetch_count": 1
},
"unviewable_authors_info": null,
"status": "ok"
}
Item fields
| Field | Type | Description |
|---|---|---|
reel.items[].pk | string | Story media id |
reel.items[].taken_at | int | Unix timestamp when published |
reel.items[].expiring_at | int | Unix timestamp when the story expires |
reel.items[].media_type | int | 1 — photo, 2 — video |
reel.items[].image_versions2.candidates[] | array | Image renditions, widest first — use for video cover art too |
reel.items[].video_versions[] | array | Video renditions (only for media_type: 2) |
reel.items[].caption | object | null | Attached caption with the author node |
reel.items[].audience | string | default or best_friends (close-friends story) |
broadcast | object | null | Live broadcast info when the user is live |
note
reel: null — the user has no active stories. Media URLs inside the payload
are signed and expire — download promptly.
Errors
| HTTP | Meaning |
|---|---|
401 / 403 / 429 | see Rate limits |
404 | user does not exist |