Story highlight reels of a public Instagram account by handle: ids, titles, cover images and owner.
curl -X POST "https://api.primaryapi.com/v1/run/instagram.user_highlights" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"nasa"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"highlights": [
{
"title": "<string | null>",
"mediaCount": "<integer | null>",
"createdUtc": "<integer | null>",
"ownerHandle": "<string | null>", …
}
]
}
},
"credits": 3
}Input and output
3 fields
nasa.8 fields
Good to know
Use instagram.highlight_detail for the items inside a highlight.
Unknown handle? It comes back as not found, not as an error.
The same key and credits work for every API.