Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Instagram User Highlights (V2)

Tài liệu 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.

Giá
$0.002USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
User ID (either username or user_id required)
Username (either username or user_id required)
Đầu raVí dụ
Phản hồioutputs · 9.8 KB · 167 dòng
[
  {
    "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
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON

Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Instagram User Highlights (V2)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v2/user-highlights với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Instagram User Highlights (V2) có giá bao nhiêu?

$0.002 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Instagram User Highlights (V2) chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: user_id (string) và username (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram User Highlights (V2) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Instagram không?

Không. Instagram User Highlights (V2) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Instagram.