Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Instagram Comments API

Comment management and moderation

Instagram Comments API is one of 9 APIs that Instagram publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Comments. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, an API reference, authentication docs, and a changelog.

This API exposes 7 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 21.0.

Requests are made against 2 base URLs: https://graph.facebook.com/v21.0, https://graph.instagram.com/v21.0.

7 operations 3 paths 4 schemas 1 DELETE3 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
21.0
Base URL
https://graph.instagram.com
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Instagram Comments API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 7 scopes.

  • oauth2 — OAuth 2.0 authentication via Instagram Login or Facebook Login.

Paths & Operations 7

Across 3 paths, the API surfaces 7 operations — 1 DELETE, 3 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Comments 7

Comment management and moderation

GET
/{media_id}/comments
Instagram Get Media Comments
getMediaComments 3 params → 200
POST
/{media_id}/comments
Instagram Create Comment
createComment 1 param body → 200
GET
/{comment_id}
Instagram Get Comment
getComment 3 params → 200
POST
/{comment_id}
Instagram Hide or Unhide Comment
hideComment 1 param body → 200
DELETE
/{comment_id}
Instagram Delete Comment
deleteComment 2 params → 200
GET
/{comment_id}/replies
Instagram Get Comment Replies
getCommentReplies 3 params → 200
POST
/{comment_id}/replies
Instagram Create Comment Reply
createCommentReply 1 param body → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Comment (7 properties), Paging (3 properties), CommentList (2 properties), SuccessResponse (1 property). Each schema is shown below with its type and property counts.

Paging
object
3 properties
Comment
object
7 properties
SuccessResponse
object
1 property
CommentList
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

instagram-comments-api-openapi.yml Raw ↑

Other APIs Instagram publishes across the network.

Instagram Messaging API
Instagram oEmbed API
Instagram Hashtags API
Instagram Insights API
Instagram Media API
Instagram Mentions API
Instagram Publishing API
Instagram Users API