handlestring必填
Instagram username without the leading @.
https://api.sandbase.ai/v1/api/instagram/user-highlightsList an Instagram account's story highlight reels by handle.
您的输出将显示在这里
完成输入,然后点击运行。
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.
userId and avatar URL in the same call.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.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Instagram username without the leading @. |
requireFields | array | No | 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 |
userId | string | No | Instagram numeric user id (optional, faster than handle). |
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
}
| Field | Meaning |
|---|---|
found | true when the account was found. A lookup that finds nothing returns false. |
data.highlights[] | One entry per highlight reel on the account. |
data.highlights[].id | Identifier of the highlight reel. Use it to look up the reel's contents. |
data.highlights[].title | Name of the highlight as shown on the profile, for example Artemis III. |
data.highlights[].ownerHandle | Instagram handle of the account that owns the highlight. |
data.highlights[].userId | Numeric Instagram id of the owning account. |
data.highlights[].avatarUrl | URL of the owner's profile picture, not of the highlight cover. |
data.highlights[].coverUrl | URL of the highlight cover image. It can be an empty string. |
data.highlights[].createdUtc / data.highlights[].mediaCount | Creation time and number of items in the highlight. Both can be null in the default response. |
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.id to Instagram Highlight Detail to get the contents of one reel.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
handlestring必填Instagram username without the leading @.
userIdstringInstagram numeric user id (optional, faster than handle).
requireFieldsarrayOptional; 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.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Instagram | 每次调用从 $0.0012 起 | JSON |
Instagram | 每次调用从 $0.0011 起 | JSON |
Instagram | 每次调用从 $0.001 起 | JSON |
Instagram | 每次调用从 $0.0011 起 | JSON |
Instagram | 每次调用从 $0.0012 起 | JSON |
Instagram | 每次调用从 $0.0011 起 | JSON |
指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/instagram/user-highlights 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.0012,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:handle (string)。 可选:userId (string) 和 requireFields (array)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Instagram User Highlights 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Instagram API 访问权限。