Get frequency vs engagement
Returns the correlation between posting frequency (posts per week) and engagement rate, broken down by platform. Helps find the optimal posting cadence for each platform. Each row represents a specific (platform, posts_per_week) combination with the average engagement rate observed across all weeks matching that frequency. 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. Omit for all accounts.
Filter 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.getPostingFrequency();console.log(data);{
"frequency": [
{
"platform": "instagram",
"posts_per_week": 2,
"avg_engagement_rate": 44.4,
"avg_engagement": 512,
"weeks_count": 18
},
{
"platform": "instagram",
"posts_per_week": 4,
"avg_engagement_rate": 5.9,
"avg_engagement": 203,
"weeks_count": 6
},
{
"platform": "facebook",
"posts_per_week": 3,
"avg_engagement_rate": 12.5,
"avg_engagement": 87,
"weeks_count": 10
}
]
}{
"error": "Unauthorized"
}{
"error": "Analytics add-on required",
"requiresAddon": true
}Get post analytics timeline GET
Returns a daily timeline of analytics metrics for a specific post, showing how impressions, likes, and other metrics evolved day-by-day since publishing. Each row represents one day of data per platform. For multi-platform Zernio posts, returns separate rows for each platform. Requires the Analytics add-on.
Get TikTok account-level insights GET
Returns account-level TikTok insights from /v2/user/info/ (live) plus historical time series joined from Zernio's daily snapshotter (AccountStats). Response shape matches /v1/analytics/instagram/account-insights. Max 89 days, defaults to last 30 days. Requires the Analytics add-on and the user.info.stats scope on the account (412 if missing). Scope intentionally narrow. TikTok's public API exposes only the four counter metrics below. The deep metrics that live in TikTok Studio are NOT available on any public TikTok API, even for Business accounts: - profile_views - account-level impressions / reach - follower inflow / outflow breakdown - video watch time, average watch time, full-watched rate - impression_sources (FYP / Following / Hashtag / Search / Personal profile) TikTok's Research API doesn't expose those fields either, and is restricted to non-commercial academic use per TikTok's eligibility policy. There is no public API workaround. Post-level metrics (views, likes, comments, shares per video) are available via /v1/analytics?postId=... from TikTok's /v2/video/query/.