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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
The ID of the Instagram account
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.instagram.getInstagramPublishingLimit({ path: { accountId: 'account_abc123', },});console.log(data);{
"quotaUsage": 3,
"quotaTotal": 50,
"quotaDurationSeconds": 86400
}{
"error": "Unauthorized"
}Get Instagram audio metadata GET
Fetch one audio asset's metadata by ID. Use it to re-validate a stored `audioId` before a scheduled Reel publishes, or to refresh the preview `downloadUrl` (Meta expires preview URLs after roughly 1.5 days). Same connection requirement as the search endpoint: Facebook-Login Instagram accounts only.
Get Instagram story insights GET
Returns metrics for a single story. The `source` field discriminates between three states: - `live` — fetched from Meta in real time (story is still active) - `cached` — fetched from a persisted `story_insights` webhook payload (story has expired but we received its final-state metrics from Meta) - `unavailable` — story has expired and we never received its webhook payload (for example, the account connected after the story expired) Meta can report an expired story as an empty successful result rather than an error, so an expired story resolves to `cached` or `unavailable` even though the upstream request itself succeeded. Field semantics follow Meta's API. Counts below 5 may be returned as 0 due to Meta's privacy floor on small audiences. The `navigation` field is the sum of `tapsForward + tapsBack + exits + swipesForward`.