Instagram modelsapi generation api

instagram/v3/comment-replies

Get Instagram comment's child comments (replies) list Support pagination to fetch all replies Parent comment's comment_id can be obtained from get_post_comments API

Input
Idle

Example output — click Run to generate your own

API README

Get comment replies

Purpose:

  • Get Instagram comment's child comments (replies) list
  • Support pagination to fetch all replies
  • Parent comment's comment_id can be obtained from get_post_comments API Parameters:
  • media_id: Post media ID (numeric ID, required), can be obtained via /shortcode_to_media_id endpoint
  • comment_id: Parent comment ID (required, get pk field from get_post_comments response)
  • min_id: Pagination cursor, omit for first request, get from previous response data.next_min_child_cursor Return:
  • data.child_comments: Child comments list
    • user: Commenter info
    • text: Comment text
    • created_at: Comment timestamp
    • comment_like_count: Comment likes count
    • pk: Comment ID
  • data.next_min_child_cursor: Next page cursor (use as min_id in next request)
  • data.has_more_tail_child_comments: Whether has more child comments
  • data.num_tail_child_comments: Remaining child comments count Pagination usage:
  1. First request: Pass media_id and comment_id parameters
  2. Get data.next_min_child_cursor from response
  3. Next request: Pass next_min_child_cursor as-is to min_id parameter (no pre-processing needed, the API handles unescaping automatically)
  4. Repeat steps 2-3 until data.has_more_tail_child_comments is false

Note:

  • min_id may be an escaped JSON string (e.g. {"key":"val"}), just pass it as-is, the API handles unescaping internally Price:
  • 0.008 USD/request

media_id = "3829530490739515971" comment_id = "18065937092249736"

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Related Models