OverviewProductsPlatformsAPI ReferenceResources

Get a post that mentions an Instagram account in its caption

GEThttps://zernio.com/api/v1/accounts/{accountId}/instagram/mentions/media/{mediaId}

Returns a post in which another Instagram user @mentioned the connected account in the caption. Meta sends the media ID in its mention notification and offers no list of mentions, so this reads one mention by ID. Mentions in Stories are not supported by Meta.

Requires an Instagram account connected via Facebook Login. Meta serves mentions on graph.facebook.com only, so accounts connected with classic Instagram Login receive a 400 (instagram_mentions_require_facebook_login) and must be reconnected choosing the Facebook option.

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).

mediaIdstring, max 32Required

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

Responses

Success· the request worked

Errors· the request failed

GET/v1/accounts/{accountId}/instagram/mentions/media/{mediaId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.instagram.getInstagramMentionedMedia({  path: {    accountId: 'account_abc123',    mediaId: '18027939643230671',  },});console.log(data);
{  "id": "string",  "caption": "string",  "mediaType": "string",  "mediaUrl": "string",  "timestamp": "string",  "username": "string",  "likeCount": 0,  "commentsCount": 0}
OpenAPI specification
Was this page helpful?