Instagram highlight stories API
The stories in one highlight; parent is the highlight.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
You send id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/instagram/highlight" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'id=18195781759377100'import os
import requests
params = {
"id": "18195781759377100",
}
res = requests.get(
"https://api.socialscrape.io/v1/instagram/highlight",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/instagram/highlight");
url.search = new URLSearchParams({
id: "18195781759377100",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Instagram highlight stories",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/instagram/highlight",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "18195781759377100"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Highlight id (from profile/highlights) or a /stories/highlights/ URL. Also accepted as highlight_id. |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_f2b019e22f7cd3d754193949",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "instagram",
"id": "DcqWyuoD4DH",
"url": "https://www.instagram.com/stories/highlights/18195781759377100/",
"type": "story",
"author": {
"id": "528817151",
"handle": "nasa",
"name": null,
"url": "https://www.instagram.com/nasa/",
"avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6In...",
"verified": true
},
"title": null,
"text": null,
"published_at": "2026-08-30T11:00:53Z",
"duration_seconds": 26.833,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.71878-15/790023468_2121263175128256_672389239189128279_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=103&ig_cache_key=Mzk3...",
"video_url": "https://scontent-ord5-1.cdninstagram.com/o1/v/t2/f2/m78/AQOO5y0fuDTYz6lPFsid8X-hGuj-2R2CzsDOtVjFP8Om7lmNJT_6ZSl7LLilO6gmRG7cn6DrvnpMp-RydWfH67O_JqtlMaNdow6zA...",
"audio_url": null,
"image_urls": null,
"width": 1080,
"height": 1920
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"expires_at": "2026-08-31T11:00:53Z",
"has_audio": true,
"highlight_id": "18195781759377100",
"story_id": "3975089864169193671"
}
},
{
"object": "post",
"platform": "instagram",
"id": "DcqYjkdkXQF",
"url": "https://www.instagram.com/stories/highlights/18195781759377100/",
"type": "story",
"author": {
"id": "528817151",
"handle": "nasa",
"name": null,
"url": "https://www.instagram.com/nasa/",
"avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6In...",
"verified": true
},
"title": null,
"text": null,
"published_at": "2026-08-30T11:16:12Z",
"duration_seconds": 58.966,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.71878-15/791296357_875857982127753_7156533328099587227_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=100&ig_cache_key=Mzk3...",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m78/AQON7m5G2J1XNz9DlrL_1PgBEws6sMKhgU8MjzomF-Dj832qd2V4q1V3qN34_N01lG14tkEj_iCUkpv7HNIhX4K59Gcp3T6hk_rUK...",
"audio_url": null,
"image_urls": null,
"width": 1080,
"height": 1920
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"expires_at": "2026-08-31T11:16:12Z",
"has_audio": true,
"highlight_id": "18195781759377100",
"story_id": "3975097618556613637"
}
}
],
"cursor": null,
"has_more": false,
"parent": {
"object": "collection",
"platform": "instagram",
"id": "18195781759377100",
"url": "https://www.instagram.com/stories/highlights/18195781759377100/",
"kind": "highlight",
"title": "Roman",
"description": null,
"owner": {
"id": "528817151",
"handle": "nasa",
"name": null,
"url": "https://www.instagram.com/nasa/",
"avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6In...",
"verified": true
},
"item_count": 9,
"cover_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.71878-15/785745361_1537318174532484_931463605431094788_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=110&ccb=7-5&_nc_...",
"updated_at": null,
"extra": null
}
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.instagram.highlight(...) and the TypeScript client client.instagram.highlight(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.