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

Tài liệu API
https://api.sandbase.ai/v1/api/instagram/user-highlights

List an Instagram account's story highlight reels by handle.

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

Phòng thử nghiệm

Đầu vào
Instagram username without the leading @.
Instagram numeric user id (optional, faster than handle).
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `mediaCount`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a highlight that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Instagram User Highlights API

This API returns the story highlight reels of an Instagram account. It needs the account's handle, and it also accepts a numeric userId. Each highlight comes back with its id, title, owner and avatar image.

Use cases

  • Show the titles of an account's highlight reels in a brand monitoring dashboard.
  • Collect highlight ids for a list of accounts, then fetch the stories inside each one.
  • Check whether a creator or brand keeps highlights such as product or campaign collections.
  • Map a handle to its numeric userId and avatar URL in the same call.

Request

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

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

Parameters

NameTypeRequiredDescription
handlestringYesInstagram username without the leading @.
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example mediaCount, and it is served only by a source that returns every one
userIdstringNoInstagram numeric user id (optional, faster than handle).

Example response

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

{
  "data": {
    "highlights": [
      {
        "avatarUrl": "https://scontent-iad6-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_…",
        "coverUrl": "",
        "createdUtc": null,
        "id": "18195781759377100",
        "mediaCount": null,
        "ownerHandle": "nasa",
        "title": "Roman",
        "userId": "528817151"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the account was found. A lookup that finds nothing returns false.
data.highlights[]One entry per highlight reel on the account.
data.highlights[].idIdentifier of the highlight reel. Use it to look up the reel's contents.
data.highlights[].titleName of the highlight as shown on the profile, for example Artemis III.
data.highlights[].ownerHandleInstagram handle of the account that owns the highlight.
data.highlights[].userIdNumeric Instagram id of the owning account.
data.highlights[].avatarUrlURL of the owner's profile picture, not of the highlight cover.
data.highlights[].coverUrlURL of the highlight cover image. It can be an empty string.
data.highlights[].createdUtc / data.highlights[].mediaCountCreation time and number of items in the highlight. Both can be null in the default response.

Notes

  • Pass userId along with handle for a faster lookup. The userId appears in each highlight, so you can reuse it on later calls.
  • createdUtc and mediaCount can be null. Add them to requireFields to get a source that returns them. This can raise the price of the call.
  • Pass a highlight id to Instagram Highlight Detail to get the contents of one reel.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
InstagramTừ $0.0012 mỗi lần gọiJSON
InstagramTừ $0.0011 mỗi lần gọiJSON
InstagramTừ $0.001 mỗi lần gọiJSON
InstagramTừ $0.0011 mỗi lần gọiJSON
InstagramTừ $0.0012 mỗi lần gọiJSON
InstagramTừ $0.0011 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?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/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 có giá bao nhiêu?

Từ $0.0012 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 chấp nhận những tham số nào?

Bắt buộc: handle (string). Tùy chọn: userId (string) và requireFields (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram User Highlights 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 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.