GET /v1/instagram/highlights_tray

Instagram highlights API: a profile's story highlights by username

Returns the story highlights of one Instagram account as Highlight[]: id, title, cover URL and owner. Send the handle, then pass a highlight id to the highlight stories API for its stories.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/instagram/highlights_tray?handle=instagram&max_highlights_to_fetch_on_pagination=100' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/instagram/highlights_tray",
    params={
        "handle": "instagram",
        "max_highlights_to_fetch_on_pagination": "100",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
handle requiredquerystringInstagram account handle (a leading @ is accepted). On the operations whose upstream call takes the numeric account id, the crawler resolves it; a handle it has never seen costs one extra anonymous profile read. Example instagram.
max_highlights_to_fetch_on_pagination queryintegerNative list size, a positive integer. Instagram controls the returned count. Defaults to 100 when omitted; omission is forwarded unchanged. Default 100.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Instagram (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. A saved read is an earlier answer of this operation for the same arguments; an account in the profile library (/v1/instagram/profile) is not one until this operation has read it. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as Instagram answered it instead of the normalized Highlight[]. Default false.

Example response

The example response of the API reference.

json
{
  "data": [
    {
      "id": "18223279177302854",
      "title": "close friends",
      "cover_url": "https://scontent.cdninstagram.com/close-friends.jpg",
      "items": null,
      "created_at": null,
      "owner": {
        "id": "25025320",
        "username": "instagram",
        "full_name": "Instagram",
        "is_verified": true,
        "is_private": false,
        "avatar_url": "https://scontent.cdninstagram.com/avatar.jpg",
        "latest_story_at": null,
        "extra": {}
      },
      "stories": []
    },
    {
      "id": "18612622252018257",
      "title": "🎀🎢🎸",
      "cover_url": "https://scontent.cdninstagram.com/second.jpg",
      "items": null,
      "created_at": null,
      "owner": {
        "id": "25025320",
        "username": "instagram",
        "full_name": "Instagram",
        "is_verified": true,
        "is_private": false,
        "avatar_url": "https://scontent.cdninstagram.com/avatar.jpg",
        "latest_story_at": null,
        "extra": {}
      },
      "stories": []
    }
  ],
  "meta": {
    "source": "live",
    "fetched_at": "2026-09-09T03:10:22Z",
    "cost": "$0.0005",
    "balance": "$0.3777",
    "request_id": "req_f1abb41157ca15c565d48a90bacef554"
  }
}

How it works

Wraps doc_id PolarisLoggedOutDesktopWWWProfileRootContentQuery (lox_highlights_connection, first 10). Returns Highlight[] under data; with get_raw=true returns the upstream JSON.

Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

The example response is the crawler's own projection of a synthetic upstream document into Highlight[], not a live capture.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
403Instagram does not show this account to logged-out readers: it is private, hidden or restricted, or it no longer exists. Retrying will not change the answer until the account changes. You are not charged.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the account, post, highlight, or location does not exist (not_found).
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

Instagram API guide