Instagram Post Comments (V2)

https://api.sandbase.ai/v1/api/instagram/v2/post-comments

Returns comments from an Instagram post, including comment text, user details, and like counts. Accepts a post shortcode or URL with options to sort by recent or popular comments and paginate results.

Price
$0.003USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 2 optional
Production route

Try the model

Playground

Open playground
Input
Post shortcode or full URL
Pagination token from previous response
Sort by "recent" or "popular", default recent
OutputExample
Responseoutputs · 21.6 KB · 449 lines
[
  {
    "data": {
      "data": {
        "additional_data": {
          "ai_topic_filters": [],
          "caption": {
            "content_type": "comment",
            "created_at": 1770377722,
            "created_at_for_fb_app": 1770377722,
            "created_at_utc": 1770377722,
            "did_report_as_spam": false,
            "hashtags": [],
            "id": "18066362081641928",
            "is_covered": false,
            "is_created_by_media_owner": true,
            "is_ranked_comment": true,
            "mentions": [],
            "private_reply_status": 0,
            "share_enabled": true,
            "text": "breeze breeze breeze 🌀🌀🌀",
            "type": 1,
            "user": {
              "fbid_v2": "17841464450204076",
              "full_name": "Gigi",
              "id": "64352612340",
              "is_private": false,
              "is_unpublished": false,
              "is_verified": false,
              "profile_pic_id": "3946880307500807853",
              "profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-19/754250350_17963106291148341_7483633330144180762_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=102&ig_cache_key=GG7y9Cw15ouZWdE-ABp6hCDdNNtnbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy42NTkuQzMifQ%3D%3D&_nc_ohc=J6aAV0S8ML8Q7kNvwEiDNBP&_nc_oc=AdoD1aYQJV16v6a40an6OAAnlTumJ14wAJvYBYJFWMtDt1a7jfeOr-o80ue-G4vrRvk&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-1.cdninstagram.com&_nc_gid=nybIcFULET-rfVhRFHFpEg&_nc_ss=733ba&oh=00_AQM1aqRQyZs-6xox3DK9xvJy1aOrcg0-2iqBn-cksND0tQ&oe=6ACAC23F",
              "username": "hiyroze"
            },
            "user_id": "64352612340"
          },
          "caption_is_edited": false,
          "comment_cover_pos": "bottom",
          "comment_filter_param": "no_filter",
          "comment_likes_enabled": true,
          "fb_comments": [],
          "filter_options": [],
          "foundation_improvements_enabled": true,
          "geoblocked_comment_notices": [],
          "has_more_headload_fb_comments": false,
          "media_header_display": "none",
          "quick_response_emojis": [
            {
              "unicode": "❤️"
            },
            {
              "unicode": "🙌"
            },
            {
              "unicode": "🔥"
            },
            {
              "unicode": "👏"
            },
            {
              "unicode": "😢"
            },
            {
              "unicode": "😍"
            },
            {
              "unicode": "😮"
            },
            {
              "unicode": "😂"
            }
          ],
          "should_render_upsell": false,
          "sort_options": []
        },
        "count": 7,
        "items": [
          {
            "child_comment_count": 0,
            "comment_index": 0,
            "comment_like_count": 2,
            "content_type": "comment",
            "created_at": 1770378260,
            "created_at_for_fb_app": 1770378260,
            "created_at_utc": 1770378260,
            "did_report_as_spam": false,
            "has_disliked_comment": false,
            "has_liked_comment": false,
            "hashtags": [],
            "id": "17970092114852855",
            "inline_composer_display_condition": "never",
            "is_covered": false,
            "is_edited": false,
            "is_photo_comments_enabled_for_comment_author": false,
            "is_pinned": false,
            "is_ranked_comment": true,
            "is_text_editable": false,
            "keywords_data": [],
            "liked_by_media_coauthors": [],
            "mentions": [],
            "meta_ai_comment_type": "NONE",
            "other_preview_users": [],
            "preview_child_comments": [],
            "private_reply_status": 0,
            "share_enabled": true,
            "text": "luvvvvvvv🖤🖤🖤",
            "type": 0,
            "user": {
              "aigm_account_label_info": {
                "is_auto_detected": false,
                "is_enabled": false,
                "is_manually_enabled": false
              },
              "fbid_v2": "17841403408954840",
              "full_name": "Lingga S. P.",
              "id": "3558721631",
              "is_mentionable": true,
              "is_private": false,
              "is_verified": false,
              "latest_reel_media": 1791258994,
              "profile_pic_id": "3955241250307294885",
              "profile_pic_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/762008208_18466154488113632_2591129171500260587_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=101&ig_cache_key=GJBSay3gqaGi3ppBAOvcbMpAivUjbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=efdE1myYa4cQ7kNvwHva9hx&_nc_oc=AdrJnOR9Y8JblRT3rOxFWHV_w6xo_LItPjtziNucaNRldK21Js4sjxsYUmWryRSfUfw&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_gid=nybIcFULET-rfVhRFHFpEg&_nc_ss=733ba&oh=00_AQNZr2S6grVa2PGC7mLCdhCJ0atW6ZtlYJ4T1qQCQ39J3A&oe=6ACAADEE",
              "qe_use_smaller_comment_like_tap_target": false,
              "username": "xxggaandwx"
            },
            "user_id": "3558721631"
          },
          {
            "child_comment_count": 0,
            "comment_index": 1,
            "comment_like_count": 1,
            "content_type": "comment",
            "created_at": 1770380760,
            "created_at_for_fb_app": 1770380760,
            "created_at_utc": 1770380760,
            "did_report_as_spam": false,
            "has_disliked_comment": false,
            "has_liked_comment": false,
            "hashtags": [],
            "id": "18120101017510226",
            "inline_composer_display_condition": "never",
            "is_covered": false,
            "is_edited": false,
            "is_photo_comments_enabled_for_comment_author": false,
            "is_pinned": false,
            "is_ranked_comment": true,
            "is_text_editable": false,
            "keywords_data": [],
            "liked_by_media_coauthors": [],
            "mentions": [],
            "meta_ai_comment_type": "NONE",
            "other_preview_users": [],
            "preview_child_comments": [],
            "private_reply_status": 0,
            "share_enabled": true,
            "text": "😍",
            "type": 0,
            "user": {
              "aigm_account_label_info": {
                "is_auto_detected": false,
                "is_enabled": false,
                "is_manually_enabled": false
              },
              "fbid_v2": "17841408399082142",
              "full_name": "8386",
              "id": "8257143969",
              "is_mentionable": false,
              "is_private": true,
              "is_verified": false,
              "profile_pic_id": "3913622255758952741",
              "profile_pic_url": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-19/718942755_18316389538279970_7470716281683790025_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=111&ig_cache_key=GCMy2ioiMv-DqBJBAMlIfWvgUK1nbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=Y-HSlOF_224Q7kNvwHl6XiI&_nc_oc=Adp9vqPSQGjN0SktXdZzw8YjWc9zBAihSl18PhKsDCZ-QS_768P_Fwh9MbrUh9SE2CU&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=nybIcFULET-rfVhRFHFpEg&_nc_ss=733ba&oh=00_AQNi3IsNxDbZGAc0elUpQvZGFCAoucg4Xlrw66VWmlEg0w&oe=6ACAC5AF",
              "qe_use_smaller_comment_like_tap_target": false,
              "username": "konroi50"
            },
            "user_id": "8257143969"
          },
          {
            "child_comment_count": 0,
            "comment_index": 2,
            "comment_like_count": 1,
            "content_type": "comment",
            "created_at": 1770465430,
            "created_at_for_fb_app": 1770465430,
            "created_at_utc": 1770465430,
            "did_report_as_spam": false,
            "has_disliked_comment": false,
            "has_liked_comment": false,
            "hashtags": [],
            "id": "18020751824801830",
            "inline_composer_display_condition": "never",
            "is_covered": false,
            "is_edited": false,
            "is_photo_comments_enabled_for_comment_author": false,
            "is_pinned": false,
            "is_ranked_comment": true,
            "is_text_editable": false,
            "keywords_data": [],
            "liked_by_media_coauthors": [],
            "mentions": [],
            "meta_ai_comment_type": "NONE",
            "other_preview_users": [],
            "preview_child_comments": [],
            "private_reply_status": 0,
            "share_enabled": true,
            "text": "So incredibly beautiful ❤️",
            "type": 0,
            "user": {
              "aigm_account_label_info": {
                "is_auto_detected": false,
                "is_enabled": false,
                "is_manually_enabled": false
              },
              "fbid_v2": "17841478113898658",
              "full_name": "jim blaze",
              "id": "78149267796",
              "is_mentionable": true,
              "is_private": false,
              "is_verified": false,
              "latest_reel_media": 0,
              "profile_pic_id": "3764395301835210036",
              "profile_pic_url": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-19/581679422_17846129121603797_59515419485813003_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=106&ig_cache_key=GD65qyLVsOi69WY-AAs5HG31cNMAbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy45NjAuQzMifQ%3D%3D&_nc_ohc=vMKlccx1yKYQ7kNvwFCg6Ij&_nc_oc=Adq6hyEYWVao8vjsS3gjBrS8q2VrS-llBZaasjbWl24SFJeJK87ur12k3u3TrB5h39o&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-2.cdninstagram.com&_nc_gid=nybIcFULET-rfVhRFHFpEg&_nc_ss=733ba&oh=00_AQMonoDTJE57WMqbkb44lCLiag-uDbsAgbBg8FDcXRQb5g&oe=6ACACEA1",
              "qe_use_smaller_comment_like_tap_target": false,
              "username": "sockmonkey79"
            },
            "user_id": "78149267796"
          },
          {
            "child_comment_count": 0,
            "comment_index": 3,
            "comment_like_count": 1,
            "content_type": "comment",
            "created_at": 1770471636,
            "created_at_for_fb_app": 1770471636,
            "created_at_utc": 1770471636,
            "did_report_as_spam": false,
            "has_disliked_comment": false,
            "has_liked_comment": false,
            "hashtags": [],
            "id": "17953670049069884",
            "inline_composer_display_condition": "never",
            "is_covered": false,
            "is_edited": false,
            "is_photo_comments_enabled_for_comment_author": false,
            "is_pinned": false,
            "is_ranked_comment": true,
            "is_text_editable": false,
            "keywords_data": [],
            "liked_by_media_coauthors": [],
            "mentions": [],
            "meta_ai_comment_type": "NONE",
            "other_preview_users": [],
            "preview_child_comments": [],
            "private_reply_status": 0,
            "share_enabled": true,
            "text": "Awesome babe 🔥🔥🔥",
            "type": 0,
            "user": {
              "aigm_account_label_info": {
                "is_auto_detected": false,
                "is_enabled": false,
                "is_manually_enabled": false
              },
              "fbid_v2": "17841448457165671",
              "full_name": "Azam Ansari",
              "id": "48445375238",
              "is_mentionable": true,
              "is_private": false,
              "is_verified": false,
              "latest_reel_media": 0,
              "profile_pic_id": "3600975870661063179",
              "profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.2885-19/488583213_1177266957459172_7726365723229829668_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=109&ig_cache_key=GC0wHx3kHs7Sty4EACQ63nGwkDlrbkULAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=YqLkGIiRd2IQ7kNvwH109sN&_nc_oc=AdqV9LcMGRSKgZxWpEgFOOeq6scD6yiQnUHQjVW5mx-7b_Qwc883hZzc5dWel_T8RfE&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax3-1.cdninstagram.com&_nc_ss=733ba&oh=00_AQO4AgHVYfKBij7PJU9ScOkDwkxKkVrBRilDIxGi6vEzyw&oe=6ACAA94A",
              "qe_use_smaller_comment_like_tap_target": false,
              "username": "an_sari3363"
            },
            "user_id": "48445375238"
          },
          {
            "child_comment_count": 0,
            "comment_index": 4,
            "comment_like_count": 1,
            "content_type": "comment",
            "created_at": 1770764573,
            "created_at_for_fb_app": 1770764573,
            "created_at_utc": 1770764573,
            "did_report_as_spam": false,
            "has_disliked_comment": false,
            "has_liked_comment": false,
            "hashtags": [],
            "id": "18068278451216170",
            "inline_composer_display_condition": "never",
            "is_covered": false,
            "is_edited": false,
            "is_photo_comments_enabled_for_comment_author": false,
            "is_pinned": false,
            "is_ranked_comment": true,
            "is_text_editable": false,
            "keywords_data": [],
            "liked_by_media_coauthors": [],
            "mentions": [],
            "meta_ai_comment_type": "NONE",
            "other_preview_users": [],

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.003 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

code_or_url
string · required
pagination_token
string · optional
sort_by
string · optional

Access

Provider
Instagram
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/instagram/v2/post-comments
Authentication
Bearer API key

API README

Instagram Post Comments (V2) API

Retrieve comments for an Instagram post using code_or_url. Optional parameters include sort_by to reorder results and pagination_token for navigating through multiple pages.

Use cases

  • Analyze audience sentiment and feedback on specific Instagram posts.
  • Track popular or recent discussions under brand and influencer media.
  • Extract user replies and interaction counts for social listening reports.

Request

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

Parameters

NameTypeRequiredDescription
code_or_urlstringYesPost shortcode or full URL
sort_bystringNoSort by "recent" or "popular", default recent
pagination_tokenstringNoPagination token from previous response

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "data": {
    "items": [
      {
        "child_comment_count": 0,
        "comment_like_count": 2,
        "content_type": "comment",
        "id": "17970092114852855",
        "meta_ai_comment_type": "NONE",
        "private_reply_status": 0,
        "text": "luvvvvvvv🖤🖤🖤",
        "type": 0,
        "user_id": "<user>",
        "user": {
          "full_name": "Lingga S. P.",
          "id": "3558721631",
          "profile_pic_id": "3955241250307294885",
          "profile_pic_url": "https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/762008208_18466154488113…",
          "username": "<user>"
        }
      }
    ]
  }
}

Notes

  • sort_by accepts "recent" or "popular", defaulting to "recent".
  • code_or_url accepts either an Instagram post shortcode or a full URL.
  • Pass pagination_token from a previous response to page through additional comments.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/instagram/v2/post-comments
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/instagram/v2/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "sort_by": "recent",
  "code_or_url": "DUajw4YkorV",
  "pagination_token": ""
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026
Instagram$0.003 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Instagram Post Comments (V2) API?

Send a POST request to https://api.sandbase.ai/v1/api/instagram/v2/post-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Instagram Post Comments (V2) API cost?

$0.003 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Instagram Post Comments (V2) API accept?

Required: code_or_url (string). Optional: pagination_token (string) and sort_by (string). The Parameters table and the Playground on this page list every field.

What does the Instagram Post Comments (V2) API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Instagram developer account or API key?

No. Instagram Post Comments (V2) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.