Get daily aggregated metrics
Returns daily aggregated analytics metrics and a per-platform breakdown. Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views). Defaults to the last 180 days. Requires the Analytics add-on.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
Filter by profile ID. Omit for all profiles.
Filter by social account ID
Inclusive start date (ISO 8601). Defaults to 180 days ago.
date-timeInclusive end date (ISO 8601). Defaults to now.
date-timeFilter by post origin. "late" for posts published via Zernio, "external" for posts imported from platforms.
"all""all" | "late" | "external"Response Body
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.analytics.getDailyMetrics();console.log(data);{
"dailyData": [
{
"date": "2025-12-01",
"postCount": 3,
"platforms": {
"instagram": 2,
"twitter": 1
},
"metrics": {
"impressions": 4520,
"reach": 3200,
"likes": 312,
"comments": 45,
"shares": 28,
"saves": 67,
"clicks": 89,
"views": 1560
}
}
],
"platformBreakdown": [
{
"platform": "instagram",
"postCount": 142,
"impressions": 89400,
"reach": 62100,
"likes": 8930,
"comments": 1204,
"shares": 567,
"saves": 2103,
"clicks": 3402,
"views": 45200
}
]
}{
"error": "Unauthorized"
}{
"error": "Analytics add-on required",
"code": "analytics_addon_required"
}Get content performance decay GET
Returns how engagement accumulates over time after a post is published. Each bucket shows what percentage of the post's total engagement had been reached by that time window. Useful for understanding content lifespan (e.g. "posts reach 78% of total engagement within 24 hours"). Requires the Analytics add-on.
Get Facebook Page insights GET
Returns page-level Facebook insights (media views, views, post engagements, video metrics, follower counts). Response shape matches /v1/analytics/instagram/account-insights so the same client handling works across platforms. Metric names track the current (post-November 2025) Meta Graph API. The legacy page_impressions / page_fans / page_fan_adds / page_fan_removes metrics were deprecated by Meta on November 15, 2025 and are NOT accepted by this endpoint. Use the replacements below. Because Meta did not provide direct adds/removes replacements, Zernio synthesizes followers_gained / followers_lost from the daily follower snapshotter. Max 89 days, defaults to last 30 days. Requires the Analytics add-on.