Skip to main content

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​

ParameterInRequiredDescription
user_idpathyesNumeric 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​

FieldTypeDescription
reel.items[].pkstringStory media id
reel.items[].taken_atintUnix timestamp when published
reel.items[].expiring_atintUnix timestamp when the story expires
reel.items[].media_typeint1 — photo, 2 — video
reel.items[].image_versions2.candidates[]arrayImage renditions, widest first — use for video cover art too
reel.items[].video_versions[]arrayVideo renditions (only for media_type: 2)
reel.items[].captionobject | nullAttached caption with the author node
reel.items[].audiencestringdefault or best_friends (close-friends story)
broadcastobject | nullLive 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​

HTTPMeaning
401 / 403 / 429see Rate limits
404user does not exist