Instagram

Comment on a post

Comments on a post, or replies to a comment. A comment cannot be edited or removed through this API.

POST

/api/v1/instagram/posts/{postId}/comments

Path parameters

postId

required

string

postId from a posts listing, or the short code from the post URL.

Request bodyrequired

connectedAccountIdrequired

string · uuid

Connected account to act as

textrequired

string

The comment. Write @username to mention someone.

commentIdoptional

string

Reply to this comment instead of commenting on the post.

Response

201Comment result.

result

object

commentId

string | null

createdAt

string · date-time

remainingToday

integer

Remaining daily allowance for this action on the connected account. Each action type has its own limit.

Errors

  • 400: Bad request
  • 401: Unauthorized: missing or invalid API key
  • 403: Forbidden
  • 404: Not found
  • 422: Invalid request payload

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy