Get Facebook post reactions
Returns the reaction breakdown for a Facebook Page post: a count per reaction type plus the overall total.
The whole breakdown is fetched in a single Graph call. Note that the post analytics
endpoint reports only an aggregate reaction count (surfaced there as likes), so use
this endpoint when you need per-type counts.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
The ID of the Facebook Page account
Query Parameters
The Facebook post ID
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.analytics.getFacebookPostReactions({ path: { accountId: 'account_abc123', }, query: { postId: 'post_abc123', },});console.log(data);{
"accountId": "60f7a1b2c3d4e5f6a7b8c9d0",
"platform": "facebook",
"username": "My Page",
"postId": "1234567890_9876543210",
"total": 28,
"breakdown": {
"like": 10,
"love": 5,
"haha": 4,
"wow": 3,
"sad": 2,
"angry": 1,
"care": 3
},
"lastUpdated": "2026-07-09T09:43:50.000Z"
}{
"error": "Unauthorized"
}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.
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/.