Skip to main content
POST
/
comments
/
collect
cURL
curl -X POST "https://api.brightdata.com/comments/collect" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.instagram.com/p/POST_ID/"}'
{
  "post_id": "POST_ID",
  "post_url": "https://www.instagram.com/p/POST_ID/",
  "post_user": "natgeo",
  "comments": [
    {
      "comment_id": "17895695668004550",
      "comment_user": "john_doe",
      "comment_user_url": "https://www.instagram.com/john_doe/",
      "comment_date": "2024-01-12T10:45:00Z",
      "comment": "Amazing shot 🔥",
      "likes_number": 120,
      "replies_number": 3,
      "replies": [
        {
          "reply_id": "17895695668009999",
          "reply_user": "natgeo",
          "reply": "Thanks!"
        }
      ],
      "hashtag_comment": [
        "travel"
      ],
      "tagged_users_in_comment": [
        "@friend"
      ]
    }
  ]
}

Collect by URL

This API allows users to collect the latest comments from a specific Instagram post by providing the post URL.
This API retrieves the most recent 10 comments along with associated metadata.
Input Parameters
URL
string
required
The Instagram post URL.
Output Structure Includes comprehensive data points:
  • Comment details
    • comment_id
    • comment_user
    • comment_user_url
    • comment_date
    • comment
    • likes_number
    • replies_number
    • replies
    • hashtag_comment
    • tagged_users_in_comment
    • and more
    For all data points, click here.
  • User details
    • user_name
    • user_id
    • user_url
    We provide a limited set of data points about the profile.
  • Post metadata
    • post_url
    • post_user
    • post_id

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

Instagram post URL

Response

Comments collected successfully

post_id
string
post_url
string
post_user
string
comments
object[]