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 Facebook post monetization earnings GET
Returns lifetime monetization earnings for ONE Facebook post, read live from Meta on every request. Requires the Analytics add-on. Earnings are CUMULATIVE since the post was published, not earnings within a date range, so this endpoint takes no since/until and the totals must not be summed across dates or across posts. Page-level daily earnings live on /v1/analytics/facebook/page-insights. A post on a Page that is not enrolled in monetization, or that earned nothing, returns "total": 0 rather than an error: Meta does not distinguish the two. A metric Meta returned no bucket for at all is reported in "unavailableMetrics" and omitted from "metrics", never as a 0. Amounts are the platform's raw numbers in the stated "unit" and are never rescaled by Zernio. Breakdown dimensions are not exposed and a "breakdown" param is rejected with 400. So are "since", "until", "period", and "metricType": scoping this endpoint to a window is not possible, and silently returning the lifetime total for one would let a caller sum a year of weekly requests into a figure ~52x the post's real earnings.