Get a tracking window
Returns one tracking window with the latest verified numbers we read from the platform. Once the window
has completed, finalReadAt and completionReason say how it closed. Requires the Analytics add-on.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Response Body
application/json
application/json
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.getTrackingWindow({ path: { windowId: 'window_abc123', },});console.log(data);{ "window": { "id": "string", "postId": "string", "accountId": "string", "platform": "string", "platformPostId": "string", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "status": "open", "finalReadAt": "2019-08-24T14:15:22Z", "completionReason": "final_read", "requestedBy": "string", "latest": { "views": 0, "likes": 0, "comments": 0, "shares": 0, "saves": 0, "syncedAt": "2019-08-24T14:15:22Z" } }}Get post samples
Returns the raw readings behind a post's numbers, oldest first. Each sample is one analytics sync: the views and engagement as the platform reported them at `syncedAt`. Zernio only stores what it fetched from the platform, so nothing here was self-reported. `shares` and `saves` are null on platforms that do not return that counter, which is different from a real zero. `watchSeconds` and `completionRate` are null when the platform gives no watch signal. Requires the Analytics add-on.
List the posts a Facebook Page is tagged in
Returns the public posts where other people or Pages tagged the connected Facebook Page, as Meta returns them from the Page's `tagged` edge. Cursor-paginated: pass `nextCursor` from the previous response as `cursor` to read the next page. `nextCursor` is null when there are no more pages. Meta does not say whether a page is the last one, so the final page can come back empty with `nextCursor` null. Works for `facebook` accounts with a Page selected. Meta needs the `pages_read_user_content` permission on the connection: a connection made without it gets Meta's refusal back as `platform_api_error`, and reconnecting the account grants it.