InstagramUSER
Get user stories
Retrieve a user's currently active stories.
/v1/instagram/user/storiesSingle lookuphttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/instagram/user/stories?username_or_url=natgeo" \ -H "X-API-KEY: $AIRAA_KEY"
{
"user": {
"id": "787132",
"username": "natgeo",
"profile_url": "https://www.instagram.com/natgeo/",
"full_name": "National Geographic",
"profile_picture_url": "https://scontent-waw2-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg",
"is_private": false,
"is_verified": true
},
"stories": [
{
"id": "4032382139073929236",
"shortcode": "Df15jDmIaAU",
"story_url": "https://www.instagram.com/stories/natgeo/4032382139073929236/",
"type": "image",
"published_at": "2026-11-17T12:10:31.000Z",
"expires_at": "2026-11-18T12:10:31.000Z",
"media_url": "https://scontent-waw2-1.cdninstagram.com/v/t51.82787-15/911956226_18720229483019133_1695777710805799223_n.jpg",
"width": 1125,
"height": 2000
},
{
"id": "4032471323966994284",
"shortcode": "Df2N03gAHds",
"story_url": "https://www.instagram.com/stories/natgeo/4032471323966994284/",
"type": "video",
"published_at": "2026-11-17T15:07:32.000Z",
"expires_at": "2026-11-18T15:07:32.000Z",
"media_url": "https://scontent-waw2-2.cdninstagram.com/o1/v/t2/f2/m78/AQP-hYPjw-9-DpMlsCT4pf-aA9-pyWFZ5lU7QksMLTeGy53Jg2q_-bytRDGOob3Q1AsJ60ie0NL-lJo_mEu6LU0sllpAkEWV1RDkiXk.mp4",
"width": 748,
"height": 1330
}
]
}type is image or video; both resolve to a single media_url. mentions[] is present only when the story carries an account-mention sticker. An account with no live stories returns { "stories": [] } and no user.
Parameters
Query stringusername_or_urlstringrequiredInstagram username or profile URL
Example natgeo
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| user | object | The account whose stories are returned |
| user.id | string | Canonical Instagram user ID |
| user.username | string | Instagram handle, without the @ |
| user.profile_url | string · url | Absolute URL of the profile on instagram.com |
| user.full_name | string | Display name shown on the profile |
| user.profile_picture_url | string · url | Profile picture URL on the Instagram CDN |
| user.is_private | boolean | Whether the account is private |
| user.is_verified | boolean | Whether the account has a verified badge |
| stories | array<object> | Stories currently active on the account |
| stories[].id | string | Canonical story ID |
| stories[].shortcode | string | Story shortcode |
| stories[].story_url | string · url | Absolute URL of the story on instagram.com |
| stories[].type | string | Story kind: image or video |
| stories[].published_at | string · date-time | When the story was posted, ISO 8601 UTC timestamp |
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 |