Get a post that mentions an Instagram account in its caption
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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
The ID of a connected Instagram account (Facebook Login).
Instagram media ID of the post that mentions the account (digits only).
^[0-9]+$length <= 32Response Body
application/json
application/json
application/json
application/json
application/json
application/json
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}Get a comment that mentions an Instagram account
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. 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.
Get Instagram publishing limit
Returns the account's remaining content-publishing quota for Instagram's rolling 24-hour window, so you can pace publishing and warn before the cap is reached. `quotaUsage` counts containers published since the start of the window. Always compare against the returned `quotaTotal` rather than hardcoding a number: Meta's prose documentation and the live API disagree on the value, and the live value is authoritative.