# Stats

What the numbers in tiktornado's post stats and daily stats mean, when they first appear and refresh, and which arrive 24 to 48 hours late.

There are two reads, both with the `stats:read` scope:

- `GET /posts/{postId}/stats`: one post's latest numbers and its readings over time.
- `GET /stats/daily`: what each UTC day added, for all your accounts or one.

Both read what tiktornado has stored. Neither asks TikTok when you call it.

## A post's stats [#a-posts-stats]

```bash
curl https://api.tiktornado.com/api/v1/posts/k174wq9nrm6t2f0bd3xh8pz5a87v1c2e/stats \
  -H "Authorization: Bearer $TIKTORNADO_API_KEY"
```

```json operation="GET /posts/{postId}/stats" kind="response" status="200"
{
  "stats": {
    "views": 12840,
    "likes": 1105,
    "comments": 48,
    "shares": 37,
    "saves": 92,
    "updatedAt": "2026-12-03T09:00:00.000Z",
    "reach": 10230,
    "completionRate": 0.41,
    "avgWatchTimeMs": 6200
  },
  "hourly": [
    { "takenAt": "2026-12-02T16:00:00.000Z", "views": 910, "likes": 74, "comments": 3, "shares": 2 },
    { "takenAt": "2026-12-02T17:00:00.000Z", "views": 2310, "likes": 196, "comments": 9, "shares": 6 }
  ],
  "daily": []
}
```

### `stats`: the latest numbers [#stats-the-latest-numbers]

The post's totals since it went out, and `updatedAt`, when they were read from TikTok. `stats` is `null` until the first reading.

| Field | Meaning |
| --- | --- |
| `views`, `likes`, `comments`, `shares`, `saves` | The post's totals |
| `reach` | How many people saw the post |
| `follows` | New followers from the post |
| `clicks` | Clicks on every profile link |
| `websiteClicks` | Clicks on the profile's website link |
| `profileViews` | Profile views from the post |
| `completionRate` | The share of views that watched to the end, 0 to 1 |
| `avgWatchTimeMs` | The average watch time, in milliseconds |
| `totalWatchTimeMs` | The total watch time, in milliseconds |

The fields from `reach` on arrive 24 to 48 hours after the post went out, each one only once TikTok has reported it. A missing field hasn't been reported yet: it is not 0. Saves can arrive 24 to 48 hours late too, so a young post's saves can jump up once they do.

### `hourly` and `daily`: readings over time [#hourly-and-daily-readings-over-time]

Each point is the post's running totals at `takenAt`: views, likes, comments and shares.

- `hourly` covers the 48 hours starting with the hour the post went out, at most one point an hour.
- `daily` follows, at most one point a day, until 90 days after the post went out.
- A point is saved only when one of the four numbers changed, so hours or days with no change have no point.
- Both lists are oldest first.

## Daily stats [#daily-stats]

```bash
curl "https://api.tiktornado.com/api/v1/stats/daily?from=2026-11-01&to=2026-11-30" \
  -H "Authorization: Bearer $TIKTORNADO_API_KEY"
```

```json operation="GET /stats/daily" kind="response" status="200"
{
  "days": [
    { "day": "2026-11-28", "views": 15210, "likes": 1340, "comments": 61, "shares": 44 },
    { "day": "2026-11-29", "views": 8720, "likes": 702, "comments": 30, "shares": 19 }
  ]
}
```

- Each entry is what that UTC day added in views, likes, comments and shares, over all the account's posts.
- `from` and `to` are UTC days, `YYYY-MM-DD`, both included, at most 366 days. Add `accountId` for one account.
- A day with nothing new has no entry. Fill the gaps with zeros.
- A day's numbers can be negative when TikTok corrects a count down.
- The totals for all accounts can be up to 6 hours behind. One account's days are not.
- Accounts whose subscription isn't active are left out of the totals for all accounts. For one of those accounts the answer is `access_locked`.

## When numbers appear [#when-numbers-appear]

tiktornado checks for new numbers every 10 minutes, and sooner when new ones are ready. A new post usually has its first numbers within an hour of going out. Until then `stats` is `null` and the lists are empty.

A post that is `in_drafts` has no stats: they start once it is posted publicly.