Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Instagram Post Comment List

เอกสาร API
https://api.sandbase.ai/v1/api/instagram/post-comments

Get top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or analyze discussion around a known post.

ราคา
$0.014286USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
The unique shortcode for the Instagram post.
Pagination cursor returned as next_min_id from the previous response.
Sort order for the comments.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Instagram Post Comment List API

Returns top-level comments for an Instagram post, plus the post caption and the total comment count. It needs the post shortcode as code. You can sort by popular or newest.

Use cases

  • Pull the latest comments on a known post to review audience feedback.
  • Sort by popular to find the comments that drew the most likes.
  • Collect comment text and commenter names to analyze the discussion around a campaign post.
  • Find comments that have replies and fetch those threads with a separate call.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "DfAOoAXRg3L"}'

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

Parameters

NameTypeRequiredDescription
codestringYesThe unique shortcode for the Instagram post.
minIdstringNoPagination cursor returned as next_min_id from the previous response.
sortOrderstringNoSort order for the comments.

Example response

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

{
  "_rid": "1318fda1bfbe9",
  "ai_topic_filters": [],
  "can_view_more_preview_comments": false,
  "caption": {
    "bit_flags": 0,
    "content_type": "comment",
    "created_at": 1793116772,
    "created_at_for_fb_app": 1793116772,
    "created_at_utc": 1793116772,
    "did_report_as_spam": false,
    "is_covered": false,
    "is_created_by_media_owner": true,
    "is_ranked_comment": true,
    "media_id": "4017275189435174347",
    "pk": "18115995458110011",
    "private_reply_status": 0
  },
  "caption_is_edited": false,
  "comment_count": 14729,
  "comment_cover_pos": "bottom",
  "comment_filter_param": "no_filter",
  "comment_likes_enabled": true,
  "comments": [
    {
      "bit_flags": 0,
      "child_comment_count": 0,
      "comment_index": 0,
      "comment_like_count": 5,
      "content_type": "comment",
      "created_at": 1793544285,
      "created_at_for_fb_app": 1793544285,
      "created_at_utc": 1793544285,
      "did_report_as_spam": false,
      "has_disliked_comment": false,
      "has_liked_comment": false,
      "inline_composer_display_condition": "never"
    }
  ],
  "fb_comments": [],
  "filter_options": []
}

Response fields

FieldMeaning
comments[]List of top-level comments on the post.
comments[].pkID of the comment, as a string.
comments[].textText of the comment, including emoji.
comments[].created_at_utcTime the comment was posted, as a Unix timestamp.
comments[].comment_like_countNumber of likes on the comment.
comments[].child_comment_countNumber of replies to the comment. 0 means no replies.
comments[].user.id / comments[].user.full_nameID and display name of the person who wrote the comment.
comments[].user.is_verifiedWhether the commenter has a verified account.
comment_countTotal number of comments on the post.
caption.textCaption of the post. The text can be cut short.
next_min_idCursor for the next page. Pass it as minId in the next request.

Notes

  • The shortcode is the part of a post URL after /p/ or /reel/, for example DfAOoAXRg3L.
  • For the next page, send the next_min_id value from the response as minId. Keep the same sortOrder.
  • next_min_id is a JSON string. Pass it back as is.
  • To read replies under a comment with child_comment_count above 0, use Instagram Comment Replies.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Instagram$0.014286 ต่อการเรียก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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Instagram Post Comment List API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/post-comments โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Instagram Post Comment List API ราคาเท่าไร?

$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Instagram Post Comment List API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: code (string). ตัวเลือก: minId (string) และ sortOrder (หนึ่งใน popular, newest). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Instagram Post Comment List API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Instagram ไหม?

ไม่จำเป็น Instagram Post Comment List ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก