Blog · · 4 min read
List a Profile's Instagram Highlights With an API
Read the story highlights of a public Instagram profile as JSON: id, title and cover image. Working code, what private accounts show, and the limits.
Highlights are the part of an Instagram profile that stays up after stories disappear, so they show what an account wants new visitors to see first. Brands read them to understand a creator, and researchers use them to track what a public account pins. This guide shows how to list a profile's highlights with a single GET request, what each field means, and how to handle accounts that have none.
Request the highlights
Send the username, with or without the @, or paste a profile link. Every call needs an API key. New accounts get 100 free credits and a first key is created automatically on sign-up (it is shown once on the dashboard). Sign in at scrapingrabbit.com/login, then send the key in the x-api-key header (a Bearer token also works). The code below reads it from the SCRAPINGRABBIT_API_KEY environment variable, so no key is ever written into your code.
curl -H "x-api-key: $SCRAPINGRABBIT_API_KEY" "https://api.scrapingrabbit.com/v1/instagram/highlights?username=nasa"
A successful call costs 5 credits, as the OpenAPI file lists it. Failed calls are not charged.
A shortened real answer, read on 3 December 2026 for NASA's public profile. We kept three of the six highlights and left out the cover links, which are long:
{
"success": true,
"data": {
"username": "nasa",
"private": false,
"highlights": [
{ "id": "18145966027591735", "title": "MAX POWER" },
{ "id": "18123023338592759", "title": "Wallpapers" },
{ "id": "18131565715482962", "title": "Artemis II" }
],
"hasMore": false
}
}
Each highlight in the real answer also has a coverUrl, the address of its small cover image. The profile had six highlights in total, and hasMore was false, which means that was the whole list.
What the fields mean
| Field | Meaning |
|---|---|
username | The profile the highlights belong to |
private | true for a private account, which may show no highlights |
highlights[].id | The highlight's own id, a long number kept as text |
highlights[].title | The name the owner gave it |
highlights[].coverUrl | A link to the small cover image on Instagram's servers |
hasMore | Whether there are more highlights than the answer holds |
Keep the id as a string. It is a long number, and some tools round long numbers if you read them as numbers.
Read it in code
async function highlightTitles(username) {
const url = `https://api.scrapingrabbit.com/v1/instagram/highlights?username=${encodeURIComponent(username)}`;
const res = await fetch(url, { headers: { "x-api-key": process.env.SCRAPINGRABBIT_API_KEY } });
const body = await res.json();
if (!body.success) return null;
const { private: isPrivate, highlights, hasMore } = body.data;
return {
isPrivate,
complete: !hasMore,
titles: highlights.map((h) => h.title),
};
}
console.log(await highlightTitles("nasa"));
The code returns null when the call fails, reports whether the list is complete, and extracts just the titles. A profile that has no highlights, or is private, comes back with an empty titles list, so check isPrivate before you decide what an empty list means.
The same in Python:
import os
import requests
res = requests.get(
"https://api.scrapingrabbit.com/v1/instagram/highlights",
params={"username": "nasa"},
headers={"x-api-key": os.environ["SCRAPINGRABBIT_API_KEY"]},
timeout=60,
)
body = res.json()
if body.get("success"):
data = body["data"]
print(data["private"], [h["title"] for h in data["highlights"]])
Go further
The highlight titles often match what the account is promoting right now. For NASA, the titles we read included Artemis II, Artemis III, Wallpapers and MoonTunes. To see the account itself, read its follower counts and bio with the Instagram profile endpoint, which our profile guide covers. Together the two calls give you a quick picture of an account for 10 credits.
Things to plan for
- Private accounts may show nothing. Check
privatebefore you read an empty list as "no highlights". - Cover links can stop working. They come from Instagram's own servers, so save the images you need soon after you read them.
- Check
hasMore. When it istrue, the answer does not hold the whole list. - The answer is the list, not the stories. You get each highlight's id, title and cover.
- Highlights change. Owners add and remove them, so store the date you read the list.
- Rate limits and credits. Each key is limited per minute: 10 requests on the free plan, 60 on Starter, 120 on Pro and 300 on Scale. A call costs 5 credits, so cache each profile.
- Always check
success. A failed request returnssuccess: false, acodesuch asRATE_LIMITEDorINVALID_API_KEY, and amessage.
Try it without code
The free Instagram highlight viewer works in the browser with no key and shows a profile's highlights for any public username you type.
Try it yourself
Frequently asked questions
Why do I see no highlights?
The account may be private, or it may simply have no highlights. The answer has a private field that tells you which.
Do I need an Instagram account?
No. The endpoint reads the same public list a logged-out visitor can see, so there is no login and the account owner is not told.
Do the image links last?
Not necessarily. The cover links come from Instagram's own servers and may stop working after a while, so open or save them while you need them.