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.002 每次调用JSON
Instagram$0.002 每次调用JSON
Instagram$0.002 每次调用JSON
Instagram$0.002 每次调用JSON
Instagram$0.002 每次调用JSON
Instagram$0.002 每次调用JSON

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

问题

常见问题

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

向 https://api.sandbase.ai/v1/api/instagram/v2/user-highlights 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?

不需要。Instagram User Highlights (V2) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Instagram API 访问权限。