Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Instagram User Highlights (V2)

API 文件
https://api.sandbase.ai/v1/api/instagram/v2/user-highlights

Returns an Instagram user's list of highlights and saved story collections. Query using either a target user ID or account username.

價格
$0.002美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 2 個選填

Playground

輸入
User ID (either username or user_id required)
Username (either username or user_id required)
輸出範例
回應outputs · 9.8 KB · 167 行
[
  {
    "data": {
      "data": {
        "count": 7,
        "highlights_tray_type": "DEFAULT",
        "items": [
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/756700225_1653985762331725_8429300849500507026_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=NRirPknCIUoQ7kNvwFs_pKx&_nc_oc=AdpQVi6qoxGwDzA1RZQZoLhHi1VCW7IemM6qqPyZelVe3Oq6TsAvLlORdgv9psEEc3s&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQPivLIjTuqutcc7NkWrHE9MX89wiuKDeXtfzYgAG6LC3A&oe=6AC18EFE",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/756700225_1653985762331725_8429300849500507026_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=NRirPknCIUoQ7kNvwFs_pKx&_nc_oc=AdpQVi6qoxGwDzA1RZQZoLhHi1VCW7IemM6qqPyZelVe3Oq6TsAvLlORdgv9psEEc3s&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQPs7XpUoBawANIDyChR_I6g60eIa_8TPa5I1VF-JTELxQ&oe=6AC18EFE",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1719606671,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18223279177302854",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1790008940,
            "media_count": 52,
            "prefetch_count": 0,
            "ranked_position": -1790118702,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1790118702,
            "title": "close friends",
            "updated_timestamp": 1790118702,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755867844_1751720619182762_5430881549273743299_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=XXsKiZVU-g4Q7kNvwHylJ1S&_nc_oc=Ado3TsHFm1rvPC85lDOiFVoPjEg5WqzJ9avkGUzdap8njLbWQZYRz6OJ1-Fnp0szAVg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQMftQvNJSZF9vJ7hvfmEdie3c4X-WcRCGIkt-_ixqaR7w&oe=6AC1932F",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755867844_1751720619182762_5430881549273743299_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=XXsKiZVU-g4Q7kNvwHylJ1S&_nc_oc=Ado3TsHFm1rvPC85lDOiFVoPjEg5WqzJ9avkGUzdap8njLbWQZYRz6OJ1-Fnp0szAVg&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQOgRGgus1jCTcYI3qoznzIetqXlZGIQqh5hp-TxXzXNrg&oe=6AC1932F",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1784674239,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18612622252018257",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1789738467,
            "media_count": 46,
            "prefetch_count": 0,
            "ranked_position": -1790118665,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1790118665,
            "title": "🎤🎶🎸",
            "updated_timestamp": 1790118665,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          {
            "can_gif_quick_reply": true,
            "can_react_with_avatar": false,
            "can_reply": false,
            "can_reshare": true,
            "contains_stitched_media_blocked_by_rm": false,
            "cover_media": {
              "crop_rect": null,
              "cropped_image_version": {
                "height": 150,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755331856_1609699020573638_4426177467586352650_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=a7-mhagr6bkQ7kNvwHfPZdG&_nc_oc=AdrwWheOYVUqGdhd8l21lCe0-QYOMb8jr0jX3ExVMiBhTJ17qJ2AmNck1eQESv4chdc&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQORP1jqVC-adfsjVUxWJj8zVsqtbeglb6SjToTAi8R_7Q&oe=6AC18773",
                "width": 150
              },
              "full_image_version": {
                "height": 1080,
                "url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.71878-15/755331856_1609699020573638_4426177467586352650_n.jpg?stp=dst-jpg_s1080x1080_tt6&_nc_cat=1&ccb=7-5&_nc_sid=acbce5&_nc_ohc=a7-mhagr6bkQ7kNvwHfPZdG&_nc_oc=AdrwWheOYVUqGdhd8l21lCe0-QYOMb8jr0jX3ExVMiBhTJ17qJ2AmNck1eQESv4chdc&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&_nc_ss=723ba&oh=00_AQP-h_4bUaXcn5lO2i5FrBqa2u7q6Wd1iFPeRxjiyCHREQ&oe=6AC18773",
                "width": 1080
              },
              "id": "None",
              "upload_id": null
            },
            "created_at": 1713456841,
            "highlight_pog_unseen": null,
            "highlight_reel_type": "DEFAULT",
            "id": "highlight:18029499352961095",
            "is_archived": false,
            "is_converted_to_clips": false,
            "is_nux": false,
            "is_pinned_highlight": false,
            "latest_reel_media": 1789070386,
            "media_count": 47,
            "prefetch_count": 0,
            "ranked_position": -1789070420,
            "reel_type": "highlight_reel",
            "seen_ranked_position": -1789070420,
            "title": "what’s new",
            "updated_timestamp": 1789070420,
            "user": {
              "account_badges": [],
              "fifa_country_code": "CA",
              "full_name": "Instagram",
              "id": "25025320",
              "interop_messaging_user_fbid": "117943452927407",
              "is_creator_agent_enabled": false,
              "is_private": false,
              "is_verified": true,
              "profile_pic_id": "3725434617063385984",
              "profile_pic_url": "https://scontent-dfw6-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGriiE6UjMnnDkprfM34bxZwMIoELMXTquSZRT4IAMlFsg7Ak3hStiTUxYS_cP3KHE&_nc_ohc=f5sphjxPT3EQ7kNvwEbW-CU&_nc_gid=GwLBFeZh4oQFlrfWyA2piQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AQOj9_wAnatBtLmsiF7ApUhzm1THP0vBiPgAx9L78Alwtg&oe=6AC1A1A7&_nc_sid=10d13b",
              "username": "instagram"
            }
          },
          "… 4 more items in the full response"
        ]
      },
      "pagination_token": null
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Instagram User Highlights (V2) API

Returns the list of story highlights on a public Instagram profile, with title, cover image, item count and timestamps for each one. Send either username or user_id.

Use cases

  • List every highlight title and cover image to show a profile's highlight row in a custom viewer.
  • Compare media_count across highlights to see which collections hold the most stories.
  • Track updated_timestamp over time to detect when an account adds to or edits a highlight.
  • Collect highlight IDs for an account, then fetch the stories inside each one.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/user-highlights" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "instagram", "user_id": "18527"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
user_idstringNoUser ID (either username or user_id required)
usernamestringNoUsername (either username or user_id required)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "count": 7,
    "highlights_tray_type": "DEFAULT",
    "items": [
      {
        "can_gif_quick_reply": true,
        "can_react_with_avatar": false,
        "can_reply": false,
        "can_reshare": true,
        "contains_stitched_media_blocked_by_rm": false,
        "cover_media": {
          "crop_rect": null,
          "cropped_image_version": {
            "height": 150,
            "url": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
            "width": 150
          },
          "full_image_version": {
            "height": 1080,
            "url": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
            "width": 1080
          },
          "id": "None",
          "upload_id": null
        },
        "created_at": 1719606671,
        "highlight_pog_unseen": null,
        "highlight_reel_type": "DEFAULT",
        "id": "highlight:18223279177302854",
        "is_archived": false,
        "is_converted_to_clips": false
      }
    ]
  },
  "pagination_token": null
}

Response fields

FieldMeaning
data.countNumber of highlights returned for the account.
data.items[].idHighlight ID in the form highlight:<number>.
data.items[].titleName of the highlight as shown under the profile.
data.items[].media_countNumber of stories inside the highlight.
data.items[].cover_media.cropped_image_version.url / data.items[].cover_media.full_image_version.urlCover image URLs. The cropped version is 150 by 150 pixels and the full version is 1080 by 1080 pixels.
data.items[].created_at / data.items[].updated_timestamp / data.items[].latest_reel_mediaUnix timestamps in seconds. They mark when the highlight was created, when it was last updated, and its latest story media.
data.items[].is_pinned_highlightWhether the highlight is pinned on the profile.
data.items[].user.id / data.items[].user.full_nameID and display name of the account that owns the highlight.
data.items[].user.is_verified / data.items[].user.is_privateWhether the owner account is verified and whether it is private.

Notes

  • Pass username or user_id. The request needs at least one of them.
  • The response has a pagination_token field, and it is null in this example.
  • Highlight IDs look like highlight:18223279177302854. Use them with Instagram Highlight Stories to get the stories inside a highlight.
  • To find a user_id from a name, call Instagram User Profile.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON

指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Instagram User Highlights (V2) API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/instagram/v2/user-highlights。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Instagram User Highlights (V2) API 的費用是多少?

每次 $0.002,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Instagram User Highlights (V2) API 接受哪些參數?

不需要任何參數。 選填:user_id (string) 和 username (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram User Highlights (V2) API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Instagram 開發者帳號或 API 金鑰嗎?

不需要。Instagram User Highlights (V2) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Instagram API 存取權。