OverviewProductsPlatformsAPI ReferenceResources
Posting Analytics

Open a tracking window

POSThttps://zernio.com/api/v1/analytics/tracking

Starts watching a post's views and engagement.

Zernio fetches the numbers from the platform itself on its regular analytics sync, so every reading is verified. It is a value we read from the platform, never one the creator or the caller reported.

PlatformsTikTokLinkedInPinterestReddit

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json
Optional parameters5 fields
postIdstring

Id of an external post. Required unless accountId and url are both sent.

accountIdstring

Connected account the post belongs to. Send together with url.

urlstring

Public URL of the post on the platform. Send together with accountId.

trackingDaysintegerDefault 30

How many days the window stays open.

requestedBystringDefault api

Free-form label for who asked for the window. It is stored and returned as given.

Responses

Success· the request worked

Errors· the request failed

How it behaves

The window

  • Runs for trackingDays (30 by default, 90 at most).
  • Ends with one final read, after which the post.tracking_completed webhook fires.

Identifying the post

Send either postId (an external post id from Zernio), or accountId together with the post's url.

Responses

  • 201: a new window was opened.
  • 200: the post is already tracked; the existing window is returned.
POST/v1/analytics/tracking
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.openTrackingWindow({  body: {    accountId: '6507a1b2c3d4e5f6a7b8c9d0',    url: 'https://www.tiktok.com/@creator/video/7685731010461371662',    trackingDays: 30,  },});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"    }  }}
OpenAPI specification
Was this page helpful?