Docs menu

Instagram highlight stories

Beta GET /v1/instagram/highlight

GET /v1/instagram/highlight

The stories in one highlight; parent is the highlight.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
idstringyesHighlight 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: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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).

curl
curl -G "https://api.socialscrape.io/v1/instagram/highlight" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "id=18195781759377100"
Python
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,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
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);
}
n8n
{
  "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": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",
          "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=Mzk3NTA4OTg2NDE2OTE5MzY3MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZy...",
          "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...",
          "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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",
          "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=Mzk3NTA5NzYxODU1NjYxMzYzNw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZy...",
          "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...",
          "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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_c...",
        "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_sid=acbce5&_nc_ohc=PCbozJYubZ8Q7kNvwHBts6v&_nc_oc=Adq5fnBwqBGqFIJrXGiw7QY2WVkeTUl_i...",
      "updated_at": null,
      "extra": null
    }
  },
  "cursor": null,
  "has_more": false
}

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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
not_found404noThe 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:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_36fe96741e51211139accc41"
}

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.