Instagram

Capture and share the world's moments.

Comment Endpoints

  • GET /media/media-id/comments Get a list of recent comments on a media object.
  • POST /media/media-id/comments Create a comment on a media object with the following rules: The total length of the comment cannot exceed 300 characters.The comment cannot contain more than 4 hashtags.The comment cannot contain more than 1 URL.The comment cannot consist of all capital letters.
  • DEL /media/media-id/comments/comment-id Remove a comment.

GET /media/media-id/comments

  • Response
https://api.instagram.com/v1/media/{media-id}}/comments?access_token=ACCESS-TOKEN
{ "meta": { "code": 200 }, "data": [ { "created_time": "1280780324", "text": "Really amazing photo!", "from": { "username": "snoopdogg", "profile_picture": "http://images.instagram.com/profiles/profile_16_75sq_1305612434.jpg", "id": "1574083", "full_name": "Snoop Dogg" }, "id": "420" }, ... ] } 

Get a list of recent comments on a media object.

POST /media/media-id/comments

  • Response
curl -F 'access_token=ACCESS-TOKEN' \ -F 'text=This+is+my+comment' \ https://api.instagram.com/v1/media/{media-id}/comments
{ "meta": { "code": 200 }, "data": null } 

Create a comment on a media object with the following rules:

  • The total length of the comment cannot exceed 300 characters.
  • The comment cannot contain more than 4 hashtags.
  • The comment cannot contain more than 1 URL.
  • The comment cannot consist of all capital letters.
Requirements
Scope: comments
To request access to this endpoint, please complete this form.
Parameters
access_token A valid access token.
text Text to post as a comment on the media object as specified in media-id.

DEL /media/media-id/comments/comment-id

  • Response
curl -X DELETE https://api.instagram.com/v1/media/{media-id}/comments/{comment-id}?access_token=ACCESS-TOKEN
{ "meta": { "code": 200 }, "data": null } 

Remove a comment either on the authenticated user's media object or authored by the authenticated user.

Requirements
Scope: comments
To request access to this endpoint, please complete this form.
Parameters
access_token A valid access token.