Stories and highlights
A single story by media pk, the media inside a highlight, or the stories using an Add Yours template.
Fetch a single story by its media pk, the media inside a highlight reel, or the accounts and stories using an Add Yours template.
A single story
GET /stories/{story_id} returns one story by its media pk, while it is live
(expired → not_found). It accepts the bare media pk, the shortcode, or the
composite <media_id>_<owner_id> pk; Instagram resolves the owner server-side.
For a user's whole active story tray, use
GET /users/{id}/stories.
Path Parameters
curl -X GET "https://example.com/stories/string"{
"status": "success",
"data": {}
}{}What comes back in data
A single story media object — the same shape as
a post, plus the story-specific fields
(expiring_at, and story_* sticker arrays for a poll, question, link or
mention).
A highlight's media
Highlight ids come from
GET /users/{id}/highlights. The bare id
and the highlight: prefixed form both work.
Path Parameters
curl -X GET "https://example.com/highlights/string"{
"status": "success",
"data": {}
}{}What comes back in data
A highlight returns the standard list shape with media objects in the same
shape as a post, plus the story-specific fields
Instagram adds — expiring_at, and story_* sticker arrays where the item
carries a poll, question, link or mention.
{
"items": [
{
"pk": "3012345678901234567",
"media_type": 2,
"taken_at": 1699999999,
"expiring_at": 1700086399,
"image_versions2": { "candidates": [{ "url": "..." }] },
"video_versions": [{ "width": 720, "height": 1280, "url": "..." }],
"user": { "pk": "25025320", "username": "instagram" }
}
],
"next_cursor": null,
"has_more": false
}Add Yours templates
A story can carry an Add Yours template sticker. Its id is
story_prompts[].prompt_sticker.id on that story, from
/users/{id}/stories or /stories/{id}.
The same sticker holds participant_count (every use, all time) and the
template image in story_template.template_asset.
The template and participants endpoints take an optional media_id: the pk of
the story you found the template on, when you have it.
The template
GET /stories/templates/{template_id} returns who started the template, its
text and when it was created.
Path Parameters
Add Yours template id: story_prompts[].prompt_sticker.id on a story
^\d+$Query Parameters
Optional pk of a story that carries the template
curl -X GET "https://example.com/stories/templates/string"{
"status": "success",
"data": {}
}{}What comes back in data
{
"original_prompt": {
"author": { "pk": 60903146583, "username": "addyoursextra" },
"text": "",
"created_at": 1761244375
},
"author_attribution_setting": 0,
"notification_setting": 0,
"disclaimer_text": "Only stories shared within the last 24 hours are shown.",
"disablement_state": 0
}For the participant count and the template image, fetch the author's original
story: /stories/templates/{id}/stories with
user_ids=<original_prompt.author.pk>. Its
story_prompts[0].prompt_sticker carries both.
Accounts using the template
GET /stories/templates/{template_id}/participants lists the accounts whose
story using the template is still live (shared in the last 24 hours). The
template's author comes first. Pages hold 30; follow next_cursor to the end.
Instagram does not expose every participant. One walk from the first page returns a sample of about 200, and a new walk returns a different, overlapping sample.
Path Parameters
Add Yours template id: story_prompts[].prompt_sticker.id on a story
^\d+$Query Parameters
Optional pk of a story that carries the template
Opaque pagination cursor from a previous next_cursor
curl -X GET "https://example.com/stories/templates/string/participants"{
"status": "success",
"data": {}
}{}What comes back in data
{
"items": [
{
"user": {
"pk": 1980762251,
"username": "megaparmadf",
"full_name": "sorai",
"is_private": false,
"is_verified": false,
"profile_pic_url": "..."
},
"reel_pk": "prompts:17873771859354688:1980762251"
}
],
"next_cursor": "eyJwYWdlX3NpemUiOjMwLCJyZW1haW5pbmciOlsi...",
"has_more": true
}Their stories
GET /stories/templates/{template_id}/stories?user_ids=1980762251,30905618292
returns each listed participant's story that uses the template, as media
objects in the same shape as a highlight's media. Pass
up to 20 user ids per call. A user without a live template story is skipped.
Each item's user holds only pk and is_private; take usernames from the
participants list.
Path Parameters
Add Yours template id: story_prompts[].prompt_sticker.id on a story
^\d+$Query Parameters
Comma-separated participant user ids (pk), at most 20
^\d+(,\d+){0,19}$curl -X GET "https://example.com/stories/templates/string/stories?user_ids=string"{
"status": "success",
"data": {}
}{}Downloading the media
There is no download endpoint, and none is needed: every item carries its
file URLs in image_versions2 and video_versions. Fetch the highest-quality
entry directly.
Those URLs are signed and expire within hours, so download promptly rather than storing the URL.
Starting from a share link
A /s/ link resolves through
GET /oembed?url=, which returns a
reel_id: a highlight: id goes to /highlights/{id}, and a bare user id to
/users/{id}/stories for that account's
active stories. A full instagram.com/stories/<user>/<pk>/ URL already holds
the story's media pk; pass it to /stories/{id}.
Errors
| Code | When |
|---|---|
not_found | The story or reel expired, or the id (story, highlight or template) is wrong. |
private_account | The owner is private. |
upstream_error | Transient. Retry. |