OverviewProductsPlatformsAPI ReferenceResources

Get a comment that mentions an Instagram account

GEThttps://zernio.com/api/v1/accounts/{accountId}/instagram/mentions/comments/{commentId}

Returns a comment in which another Instagram user @mentioned the connected account, with the post it was left on.

Meta sends the comment ID in its mention notification and offers no list of mentions, so this reads one mention by ID. Meta answers an error when comments are disabled on that post.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

The ID of a connected Instagram account (Facebook Login).

commentIdstring, max 32Required

Instagram comment ID of the comment that mentions the account (digits only).

Responses

Success· the request worked

Errors· the request failed

How it behaves

Requires Facebook Login

The Instagram account must be connected via Facebook Login. Meta serves mentions on graph.facebook.com only.

Accounts connected with classic Instagram Login receive a 400 (instagram_mentions_require_facebook_login) and must be reconnected choosing the Facebook option.

GET/v1/accounts/{accountId}/instagram/mentions/comments/{commentId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.instagram.getInstagramMentionedComment({  path: {    accountId: 'account_abc123',    commentId: '17894227972186120',  },});console.log(data);
{  "id": "string",  "text": "string",  "timestamp": "string",  "likeCount": 0,  "media": {    "id": "string"  }}
OpenAPI specification
Was this page helpful?