urlstringจำเป็น
Full Instagram post or reel URL the comment belongs to.
https://api.sandbase.ai/v1/api/instagram/comment-repliesList the replies to an Instagram comment with cursor pagination (text, author, likes).
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns the replies to one Instagram comment. It needs the post or reel url and the commentId of the parent comment. Each reply includes its text, author, like count and creation time.
author values.curl -X POST "https://api.sandbase.ai/v1/api/instagram/comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.instagram.com/p/C8rKmYvsrck/", "commentId": "18126632131325044"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
commentId | string | Yes | Instagram comment ID (a comment's id from the Instagram Post Comments endpoint). |
url | string | Yes | Full Instagram post or reel URL the comment belongs to. |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"comments": [
{
"author": "frau.pom",
"avatarUrl": "https://scontent-lax3-2.cdninstagram.com/v/t51.2885-19/106036945_317567719266309…",
"createdUtc": 1723278872,
"id": "18345120157141050",
"likes": 1,
"text": "@lektorat.schreibwege Das klingt ja toll. Wie bist du an den Job gekommen?",
"userId": "1437336707",
"verified": false
}
],
"nextCursor": null
},
"found": true
}
| Field | Meaning |
|---|---|
data.comments[].id | ID of the reply. |
data.comments[].text | Text of the reply. It often starts with an @mention of the user being answered. |
data.comments[].author | Username of the account that wrote the reply. |
data.comments[].userId | Numeric ID of the author's account. |
data.comments[].likes | Number of likes on the reply. |
data.comments[].createdUtc | Time the reply was posted, as a Unix timestamp in seconds (UTC). |
data.comments[].verified | true if the author has a verified badge, false otherwise. |
data.comments[].avatarUrl | URL of the author's profile picture. |
data.nextCursor | Cursor for the next page of replies. It is null when there are no more pages. |
found | true when the lookup returned a result. |
commentId from the id field of a comment returned by Instagram Post Comment List.data.nextCursor as cursor. A null value means the list is complete.id values are strings. Keep them as strings in your code.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/instagram/comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.instagram.com/p/C8rKmYvsrck/",
"commentId": "18126632131325044"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
urlstringจำเป็นFull Instagram post or reel URL the comment belongs to.
commentIdstringจำเป็นInstagram comment ID (a comment's id from the Instagram Post Comments endpoint).
cursorstringPagination cursor from a previous response's nextCursor.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Instagram Comment RepliesAPI นี้ Instagram | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Instagram | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Instagram | เริ่มต้นที่ $0.001 ต่อครั้ง | JSON |
Instagram | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Instagram | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Instagram | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/comment-replies โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0011 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: url (string) และ commentId (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Instagram Comment Replies ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก