Tutorial · Instagram · cURL, Python, Node.js, PHP, Go, Ruby

Get the stories inside an Instagram highlight

The stories inside a highlight. Complete code for GET /v1/instagram/highlights/{highlight} in six languages and both official SDKs, each tested against the documented response.

Short answer. One call returns the stories saved in one highlight, in the story shape: media_type, thumbnail_url, video_url, duration_seconds and taken_at. Pass the numeric highlight id from the highlights list.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • Save the media of a brand's highlights for content audits and agency archives.
  • Read product, FAQ or campaign highlights for competitor research.
  • Give an AI agent the stories of a highlight to describe or classify.

The request

GET https://api.handlehaul.com/v1/instagram/highlights/{highlight} with your key in the X-Api-Key header. The stories inside a highlight. The stories inside a highlight. 1 credit a page. Docs: https://api.handlehaul.com/docs/instagram-highlights-api

Parameters for The stories inside a highlight
ParameterInDescription
highlight requiredpathNumeric highlight id.
cursorquerynext_cursor from the previous page (opaque, sealed).
freshquerytrue skips the cache (full price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else, and follows pagination.next_cursor for up to 3 pages. The SDK versions do the retries for you.

instagram-highlight-stories.sh

# The stories inside a highlight. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
# Next page: add --data-urlencode "cursor=<pagination.next_cursor>" (stop when it is null).
curl -sS --fail --retry 3 "https://api.handlehaul.com/v1/instagram/highlights/30247747834927280" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

A list in data, with pagination.next_cursor and has_more, and meta with what the call cost. Example values; the stories inside a highlight use the story shape, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": [
    {
      "id": "4169566713557935031",
      "taken_at": "2026-11-28T12:00:00.000Z",
      "expires_at": "2026-11-29T12:00:00.000Z",
      "media_type": "photo",
      "thumbnail_url": "https://scontent.cdninstagram.com/…/4169566713557935031.jpg",
      "video_url": null,
      "duration_seconds": null,
      "owner": {
        "id": "4555656181",
        "username": "sage_sage52",
        "full_name": "Sage Sage",
        "is_private": false,
        "is_verified": false,
        "profile_pic_url": "https://scontent.cdninstagram.com/…/4555656181.jpg"
      }
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false,
    "page_size": 4
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per page. At $1.40 to $0.80 per 1,000 calls; the samples stop after 3 pages, so one run costs 3 credits at most. Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • Cache. Identical calls that arrive while an answer is cached are served from it. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • Get the highlight id from /users/{user}/highlights first. That list also gives item_count, so you know what to expect.
  • Every story has a video_url or a thumbnail_url. Photos have video_url: null.

Next steps

Instagram highlight stories API: questions

How do I get the stories in an Instagram highlight with an API?
List highlights with GET /v1/instagram/users/{user}/highlights, then call GET /v1/instagram/highlights/{id} for the one you want.
Where do I find an Instagram highlight id?
In the id field of the highlights list, or by passing a highlight link to the free URL resolver.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.