usernamestringจำเป็น
Instagram username (required)
https://api.sandbase.ai/v1/api/instagram/v3/user-highlightsReturns profile highlights for a specified Instagram account. Supports forward and backward cursor-based pagination to browse collections.
[
{
"data": {
"_rid": "33fde7ae308e4",
"count": 7,
"items": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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=NRirPknCIUoQ7kNvwEdXxUe&_nc_oc=AdrLoF_S43nb8V6PmYx8GjH4XfgPj9JTvmu6MK3n45qEFFlQNcJYlL4edx0Pde-lBw4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO7ueR1AMhCJolIpqaXQEyyaUmht67kYwUyplTaH48bZA&oe=6AC18EFE",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-g4Q7kNvwGhh4F4&_nc_oc=AdoGee1gGLzrAOxOLrM7W9KyAjH6TNxvVBQS6l9WI6GT8J9Otkapaquq1GlSI36cboY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQOzHMuJiSsPsY7AMcSJDKVgZ03S60PlTIvLjf4AjdkZUw&oe=6AC1932F",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2026-07-21T22:50:39Z",
"id": "highlight:18612622252018257",
"media_count": 46,
"pk": "18612622252018257",
"title": "🎤🎶🎸"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-mhagr6bkQ7kNvwFG5VEV&_nc_oc=AdppEpdCLpwXQNKcgyYUsUYHNVpz3mf9nRbRNmznBVhi6jdQXSbrGvrsOzHSxU-t_vw&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO_P1NA8rVrhm0v0wCvzwZQeE4QhQ8_bviAxZxRjnSABg&oe=6AC18773",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-04-18T16:14:01Z",
"id": "highlight:18029499352961095",
"media_count": 47,
"pk": "18029499352961095",
"title": "what’s new"
},
"… 4 more items in the full response"
],
"tray": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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=NRirPknCIUoQ7kNvwEdXxUe&_nc_oc=AdrLoF_S43nb8V6PmYx8GjH4XfgPj9JTvmu6MK3n45qEFFlQNcJYlL4edx0Pde-lBw4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO7ueR1AMhCJolIpqaXQEyyaUmht67kYwUyplTaH48bZA&oe=6AC18EFE",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-g4Q7kNvwGhh4F4&_nc_oc=AdoGee1gGLzrAOxOLrM7W9KyAjH6TNxvVBQS6l9WI6GT8J9Otkapaquq1GlSI36cboY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQOzHMuJiSsPsY7AMcSJDKVgZ03S60PlTIvLjf4AjdkZUw&oe=6AC1932F",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2026-07-21T22:50:39Z",
"id": "highlight:18612622252018257",
"media_count": 46,
"pk": "18612622252018257",
"title": "🎤🎶🎸"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-mhagr6bkQ7kNvwFG5VEV&_nc_oc=AdppEpdCLpwXQNKcgyYUsUYHNVpz3mf9nRbRNmznBVhi6jdQXSbrGvrsOzHSxU-t_vw&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO_P1NA8rVrhm0v0wCvzwZQeE4QhQ8_bviAxZxRjnSABg&oe=6AC18773",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-04-18T16:14:01Z",
"id": "highlight:18029499352961095",
"media_count": 47,
"pk": "18029499352961095",
"title": "what’s new"
},
"… 4 more items in the full response"
]
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the story highlights on a public Instagram profile. Each highlight has a title, a cover image, a creation time, and a count of the stories inside it. The only required input is username.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/user-highlights" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "instagram"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Instagram username (required) |
after | string | No | Forward pagination cursor, from previous response data.page_info.end_cursor |
before | string | No | Backward pagination cursor, from previous response data.page_info.start_cursor |
first | integer | No | Number of highlights per page (default 10, max 50) |
last | integer | No | Highlights per page for backward pagination, use with before |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"_rid": "355f3072ef4ec",
"count": 7,
"items": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-xxc1-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
}
],
"tray": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-xxc1-1.cdninstagram.com/v/t51.71878-15/756700225_16539857623317…",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
}
]
}
| Field | Meaning |
|---|---|
count | Number of highlights in this response. |
items[] | List of highlight collections for the account. Each entry is one highlight. |
items[].title | Name of the highlight as shown under the profile. It can contain emoji. |
items[].id / items[].pk | Identifier of the highlight. id is the pk value with a highlight: prefix. |
items[].media_count | Number of stories stored in the highlight. |
items[].created_at | Creation time of the highlight, in ISO 8601 UTC format. |
items[].cover_media.cropped_image_version.url | URL of the cropped cover image for the highlight. |
items[].cover_media.cropped_image_version.width / items[].cover_media.cropped_image_version.height | Pixel size of the cover image. Both are 150 in the sample. |
tray[] | List of highlights with the same entries as items[] in this response. |
username, for example instagram, without the @ sign.first to change the page size (default 10, max 50). Use after for forward paging and before with last for backward paging.pk value of a highlight with Instagram Highlight Detail to read the stories inside it.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/user-highlights" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first": 5,
"username": "instagram"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
usernamestringจำเป็นInstagram username (required)
afterstringForward pagination cursor, from previous response `data.page_info.end_cursor`
beforestringBackward pagination cursor, from previous response `data.page_info.start_cursor`
firstintegerNumber of highlights per page (default 10, max 50)
ค่าเริ่มต้น: 10
lastintegerHighlights per page for backward pagination, use with `before`
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"_rid": "33fde7ae308e4",
"count": 7,
"items": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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=NRirPknCIUoQ7kNvwEdXxUe&_nc_oc=AdrLoF_S43nb8V6PmYx8GjH4XfgPj9JTvmu6MK3n45qEFFlQNcJYlL4edx0Pde-lBw4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO7ueR1AMhCJolIpqaXQEyyaUmht67kYwUyplTaH48bZA&oe=6AC18EFE",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-g4Q7kNvwGhh4F4&_nc_oc=AdoGee1gGLzrAOxOLrM7W9KyAjH6TNxvVBQS6l9WI6GT8J9Otkapaquq1GlSI36cboY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQOzHMuJiSsPsY7AMcSJDKVgZ03S60PlTIvLjf4AjdkZUw&oe=6AC1932F",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2026-07-21T22:50:39Z",
"id": "highlight:18612622252018257",
"media_count": 46,
"pk": "18612622252018257",
"title": "🎤🎶🎸"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-mhagr6bkQ7kNvwFG5VEV&_nc_oc=AdppEpdCLpwXQNKcgyYUsUYHNVpz3mf9nRbRNmznBVhi6jdQXSbrGvrsOzHSxU-t_vw&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO_P1NA8rVrhm0v0wCvzwZQeE4QhQ8_bviAxZxRjnSABg&oe=6AC18773",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-04-18T16:14:01Z",
"id": "highlight:18029499352961095",
"media_count": 47,
"pk": "18029499352961095",
"title": "what’s new"
},
"… 4 more items in the full response"
],
"tray": [
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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=NRirPknCIUoQ7kNvwEdXxUe&_nc_oc=AdrLoF_S43nb8V6PmYx8GjH4XfgPj9JTvmu6MK3n45qEFFlQNcJYlL4edx0Pde-lBw4&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO7ueR1AMhCJolIpqaXQEyyaUmht67kYwUyplTaH48bZA&oe=6AC18EFE",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-06-28T20:31:11Z",
"id": "highlight:18223279177302854",
"media_count": 52,
"pk": "18223279177302854",
"title": "close friends"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-g4Q7kNvwGhh4F4&_nc_oc=AdoGee1gGLzrAOxOLrM7W9KyAjH6TNxvVBQS6l9WI6GT8J9Otkapaquq1GlSI36cboY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQOzHMuJiSsPsY7AMcSJDKVgZ03S60PlTIvLjf4AjdkZUw&oe=6AC1932F",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2026-07-21T22:50:39Z",
"id": "highlight:18612622252018257",
"media_count": 46,
"pk": "18612622252018257",
"title": "🎤🎶🎸"
},
{
"cover_media": {
"crop_rect": null,
"cropped_image_version": {
"height": 150,
"scans_profile": "",
"url": "https://scontent-mia5-2.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-mhagr6bkQ7kNvwFG5VEV&_nc_oc=AdppEpdCLpwXQNKcgyYUsUYHNVpz3mf9nRbRNmznBVhi6jdQXSbrGvrsOzHSxU-t_vw&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=cjeEvkW9_pPgzQSNhCL6oQ&_nc_ss=7e3ba&oh=00_AQO_P1NA8rVrhm0v0wCvzwZQeE4QhQ8_bviAxZxRjnSABg&oe=6AC18773",
"width": 150
},
"full_image_version": null,
"media_id": null,
"upload_id": null
},
"created_at": "2024-04-18T16:14:01Z",
"id": "highlight:18029499352961095",
"media_count": 47,
"pk": "18029499352961095",
"title": "what’s new"
},
"… 4 more items in the full response"
]
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Instagram | $0.008 ต่อการเรียก | JSON |
Instagram | $0.008 ต่อการเรียก | JSON |
Instagram | $0.008 ต่อการเรียก | JSON |
Instagram | $0.008 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.008 ต่อการเรียก | JSON |
คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v3/user-highlights โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.008 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: username (string). ตัวเลือก: after (string), before (string), first (integer) และ last (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Instagram User Highlights (V3) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก