Instagram

Capture and share the world's moments.

Comment Endpoints

  • GET /media/media-id/comments Get a list of recent full list of comments on a media object.
  • POST /media/media-id/comments Create a comment on a media object. The ability to POST a comment on a media object is restricted to applications that offer business services and not consumer facing apps. In particular, we may approve only the following types of business services:Media rights management: for example a platform for businesses to request permission from the Instagram Community to use Instagram content for commercial purposes outside of Instagram.Customer service: for example a platform for businesses that want to provide direct customer service to members of the Instagram Community through comments on Instagram media.Brand promotions: for example a platform for businesses that want to run a reward campaign and need to respond to participant members of the Instagram Community.Use of this endpoint is subject to the following guidelines:Comments must be written in the voice of the user account from which it is being generated.Comments must not be automated.The total length of the comment cannot exceeed 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.To request access to this endpoint, please complete this form.
  • 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 https://api.instagram.com/v1/media/555/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 full list of comments on a media object. Required scope: comments

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.

The ability to POST a comment on a media object is restricted to applications that offer business services and not consumer facing apps. In particular, we may approve only the following types of business services:

  • Media rights management: for example a platform for businesses to request permission from the Instagram Community to use Instagram content for commercial purposes outside of Instagram.
  • Customer service: for example a platform for businesses that want to provide direct customer service to members of the Instagram Community through comments on Instagram media.
  • Brand promotions: for example a platform for businesses that want to run a reward campaign and need to respond to participant members of the Instagram Community.
Use of this endpoint is subject to the following guidelines:
  • Comments must be written in the voice of the user account from which it is being generated.
  • Comments must not be automated.
  • The total length of the comment cannot exceeed 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.
To request access to this endpoint, please complete this form.

Required scope: comments
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 https://api.instagram.com/v1/media/{media-id}/comments?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. Required scope: comments

Parameters
access_token A valid access token.