Instagram highlight stories API
The stories in one highlight; `parent` is the highlight.
GET /v1/instagram/highlight
GET /v1/instagram/highlight
The stories in one highlight; parent is the highlight.
- Cost: 1 credit
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Highlight id (from profile/highlights) or a /stories/highlights/ URL. Also accepted as highlight_id. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
1curl -G "https://api.socialscrape.dev/v1/instagram/highlight" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "id=18195781759377100"1import os2import requests34params = {5 "id": "18195781759377100",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/instagram/highlight",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/instagram/highlight");2url.search = new URLSearchParams({3 "id": "18195781759377100"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Instagram highlight stories",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/instagram/highlight",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "id",19 "value": "18195781759377100"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_f2b019e22f7cd3d754193949",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "instagram",14 "id": "DcqWyuoD4DH",15 "url": "https://www.instagram.com/stories/highlights/18195781759377100/",16 "type": "story",17 "author": {18 "id": "528817151",19 "handle": "nasa",20 "name": null,21 "url": "https://www.instagram.com/nasa/",22 "avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",23 "verified": true24 },25 "title": null,26 "text": null,27 "published_at": "2026-08-30T11:00:53Z",28 "duration_seconds": 26.833,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": null,34 "likes": null,35 "comments": null,36 "shares": null,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "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=Mzk3NTA4OTg2NDE2OTE5MzY3MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZy...",42 "video_url": "https://scontent-ord5-1.cdninstagram.com/o1/v/t2/f2/m78/AQOO5y0fuDTYz6lPFsid8X-hGuj-2R2CzsDOtVjFP8Om7lmNJT_6ZSl7LLilO6gmRG7cn6DrvnpMp-RydWfH67O_JqtlMaNdow6zABE.mp4?_nc_cat=101&_nc_sid=5e9851&_nc_ht=scontent-ord5-1.cdninstagram.com&_nc_ohc=S...",43 "audio_url": null,44 "image_urls": null,45 "width": 1080,46 "height": 192047 },48 "song": null,49 "location": null,50 "is_pinned": null,51 "is_sponsored": null,52 "extra": {53 "expires_at": "2026-08-31T11:00:53Z",54 "has_audio": true,55 "highlight_id": "18195781759377100",56 "story_id": "3975089864169193671"57 }58 },59 {60 "object": "post",61 "platform": "instagram",62 "id": "DcqYjkdkXQF",63 "url": "https://www.instagram.com/stories/highlights/18195781759377100/",64 "type": "story",65 "author": {66 "id": "528817151",67 "handle": "nasa",68 "name": null,69 "url": "https://www.instagram.com/nasa/",70 "avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",71 "verified": true72 },73 "title": null,74 "text": null,75 "published_at": "2026-08-30T11:16:12Z",76 "duration_seconds": 58.966,77 "language": null,78 "hashtags": null,79 "mentions": null,80 "stats": {81 "views": null,82 "likes": null,83 "comments": null,84 "shares": null,85 "saves": null,86 "dislikes": null87 },88 "media": {89 "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=Mzk3NTA5NzYxODU1NjYxMzYzNw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZy...",90 "video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m78/AQON7m5G2J1XNz9DlrL_1PgBEws6sMKhgU8MjzomF-Dj832qd2V4q1V3qN34_N01lG14tkEj_iCUkpv7HNIhX4K59Gcp3T6hk_rUKY4.mp4?_nc_cat=107&_nc_sid=5e9851&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=e...",91 "audio_url": null,92 "image_urls": null,93 "width": 1080,94 "height": 192095 },96 "song": null,97 "location": null,98 "is_pinned": null,99 "is_sponsored": null,100 "extra": {101 "expires_at": "2026-08-31T11:16:12Z",102 "has_audio": true,103 "highlight_id": "18195781759377100",104 "story_id": "3975097618556613637"105 }106 }107 ],108 "cursor": null,109 "has_more": false,110 "parent": {111 "object": "collection",112 "platform": "instagram",113 "id": "18195781759377100",114 "url": "https://www.instagram.com/stories/highlights/18195781759377100/",115 "kind": "highlight",116 "title": "Roman",117 "description": null,118 "owner": {119 "id": "528817151",120 "handle": "nasa",121 "name": null,122 "url": "https://www.instagram.com/nasa/",123 "avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",124 "verified": true125 },126 "item_count": 9,127 "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_sid=acbce5&_nc_ohc=PCbozJYubZ8Q7kNvwHBts6v&_nc_oc=Adq5fnBwqBGqFIJrXGiw7QY2WVkeTUl_i...",128 "updated_at": null,129 "extra": null130 }131 },132 "cursor": null,133 "has_more": false134}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
1{2 "ok": false,3 "error": {4 "code": "not_found",5 "message": "The platform says this profile, post or item does not exist.",6 "retryable": false7 },8 "credits_charged": 0,9 "request_id": "req_36fe96741e51211139accc41"10}Also served at#
These paths answer the same request, so code written for other APIs keeps working: /v1/instagram/user/highlight/detail. See Switching from ScrapeCreators.
Related endpoints#
- Instagram profile (
GET /v1/instagram/profile) - Instagram profile by user id (
GET /v1/instagram/basic-profile) - Instagram profile post count (
GET /v1/instagram/profile/post-count) - Instagram profile posts (
GET /v1/instagram/profile/posts) - Instagram profile reels (
GET /v1/instagram/profile/reels) - Instagram post or reel details (
GET /v1/instagram/post) - Instagram reel transcript (
GET /v1/instagram/post/transcript) - Instagram post comments (
GET /v1/instagram/post/comments)