# Tracking and authenticity

Watch a post's views for a set period, read the raw samples, and get an authenticity score with the reasons behind it.

Watch a post's views, read every sample, and score whether they look organic. Numbers come from the platform via Zernio's analytics sync, never self-reported.

## Track a post [#tracking-windows]

`POST /v1/analytics/tracking` opens a window for `trackingDays` days (default 30, max 90). It ends with one final read and [`post.tracking_completed`](/webhooks/social/post-tracking-completed).

```bash
curl -X POST https://zernio.com/api/v1/analytics/tracking \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "accountId": "6507a1b2c3d4e5f6a7b8c9d0", "url": "https://www.tiktok.com/@creator/video/7685731010461371662", "trackingDays": 30 }'
```

Pass `postId`, or `accountId` and the post's `url`. New window: `201`. Existing window: returned with `200`.

| Request | What it does |
|---|---|
| [`GET /v1/analytics/tracking`](/analytics/list-tracking-windows) | List |
| [`GET /v1/analytics/tracking/{windowId}`](/analytics/get-tracking-window) | Read; `latest` = newest verified numbers |
| [`DELETE /v1/analytics/tracking/{windowId}`](/analytics/cancel-tracking-window) | Cancel |

| Status | Meaning |
| --- | --- |
| `open` | Collecting samples. |
| `completing` | Ended, final read in progress. |
| `completed` | Done; see `completionReason`. |
| `cancelled` | You cancelled it. No final read, no webhook. |

`completionReason`: `final_read` (succeeded), `unreachable` (sync failed or no sample), `post_deleted` (gone from the platform) or `cancelled`.

## Read the samples

[`GET /v1/analytics/samples?postId=...`](/analytics/get-post-samples) returns every reading, oldest first: one sample per analytics sync.

Each sample holds the running totals the platform reports, including views from before the window opened. Creator campaigns pay on those totals.

- **`shares`, `saves`:** `null` (not zero) where the platform lacks that counter.
- **`watchSeconds`, `completionRate`:** `null` without a watch signal.
- **Threads:** `shares` counts reposts and quotes; `saves` is `null`.
- **Pinterest:** `views` are video views, so an image pin reads 0; `shares` is `null`.
- **Facebook:** `views` come from the reel or video itself; `saves` is `null`; only reels carry watch time.
- **X:** `views` are impressions, because X's video view count adds up every post that carries the same video.

## Get the authenticity score [#authenticity-score]

[`GET /v1/posts/{postId}/authenticity`](/analytics/get-post-authenticity) returns Zernio's own 0 to 100 score from the verified samples. Higher looks more organic.

```json
{
  "postId": "6507a1b2c3d4e5f6a7b8c9d0",
  "score": 62,
  "confidence": 0.8,
  "reasons": [{ "code": "late_block", "weight": 35 }],
  "version": "2026-10-29.1",
  "computedAt": "2026-10-23T03:00:00.000Z",
  "sampleCount": 14
}
```

`confidence` (0 to 1) reflects how much data backs it. List an account's stored scores with [`GET /v1/analytics/authenticity`](/analytics/list-post-authenticity), filtered by `minScore` and `maxScore`.

Each reason subtracts its `weight` in points:

| Code | What it means |
| --- | --- |
| `late_block` | One large view jump long after publishing, not gradual growth. |
| `flat_engagement` | Likes, comments and other counters low for the views. |
| `view_follower_gap` | Views far above follower count, no shares. |
| `cap_seeking` | Views repeatedly near a payout cap. |
| `prior_flags` | Earlier posts of the account were flagged. |
| `no_watch_signal` | No watch-time or completion data. Weight is 0; only confidence drops. |

## How it behaves

- **Score cache.** Stored scores under 30 minutes old are returned; older ones are recomputed.
- **Authenticity webhook.** [`post.authenticity_changed`](/webhooks/social/post-authenticity-changed) fires when a tracked post's score crosses 40 either way while its window is open, never on a first score. Payload: new and previous score, confidence, reasons.

## Related

- [Webhooks](/webhooks): create an endpoint, retries, signatures.
- [Get analytics](/analytics/get-analytics): metrics for every post.