# Get a post's stats

A post's latest numbers, and its readings over time. GET /posts/{postId}/stats.

`GET https://api.tiktornado.com/api/v1/posts/{postId}/stats`

Scope: `stats:read`.

A post's latest numbers, and its readings over time: hourly for the first 48 hours after it went out, then daily up to day 90. `stats` is `null` until the first reading.

## Path parameters

- `postId` string, required: The post, from `POST /posts` or `GET /posts`. Matches `^[A-Za-z0-9]{1,64}$`.

## Examples

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

```js
const response = await fetch("https://api.tiktornado.com/api/v1/posts/k174wq9nrm6t2f0bd3xh8pz5a87v1c2e/stats", {
  headers: {
    Authorization: `Bearer ${process.env.TIKTORNADO_API_KEY}`,
  },
});
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.tiktornado.com/api/v1/posts/k174wq9nrm6t2f0bd3xh8pz5a87v1c2e/stats",
    headers={
        "Authorization": f"Bearer {os.environ['TIKTORNADO_API_KEY']}",
    },
)
data = response.json()
```

## Response 200

The post's stats.

- `stats` object or null, required: The latest numbers, or `null` before the first reading.
  - `views` number, required
  - `likes` number, required
  - `comments` number, required
  - `shares` number, required
  - `saves` number, required
  - `updatedAt` string, required: When these numbers were read. An ISO 8601 date and time.
  - `reach` number: How many people saw the post.
  - `follows` number: New followers from the post.
  - `clicks` number: Clicks on every profile link.
  - `websiteClicks` number: Clicks on the profile's website link.
  - `profileViews` number: Profile views from the post.
  - `completionRate` number: The share of views that watched to the end, 0 to 1. 0 to 1.
  - `avgWatchTimeMs` number: The average watch time, in milliseconds.
  - `totalWatchTimeMs` number: The total watch time, in milliseconds.
- `hourly` array of objects, required: Readings for the first 48 hours after the post went out, oldest first.
  - `takenAt` string, required: An ISO 8601 date and time.
  - `views` number, required
  - `likes` number, required
  - `comments` number, required
  - `shares` number, required
- `daily` array of objects, required: Daily readings after the first 48 hours, up to day 90 after publish, oldest first. No readings after day 90.
  - `takenAt` string, required: An ISO 8601 date and time.
  - `views` number, required
  - `likes` number, required
  - `comments` number, required
  - `shares` number, required

A post with readings:

```json
{
  "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": []
}
```

A post with no reading yet:

```json
{
  "stats": null,
  "hourly": [],
  "daily": []
}
```

## Errors

| Status | Reason | Message |
| --- | --- | --- |
| 401 | `api_key_invalid` | This API key isn't valid. Check it, or create a new one in the app. |
| 403 | `access_locked` | Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it. |
| 403 | `api_scope_missing` | This API key can't do this. Create a key with the access it needs in the app. |
| 404 | `not_found` | We couldn't find this. |
| 429 | `slow_down` | You're going a bit fast. Wait a moment and try again. |
| 500 | `unknown_error` | Something went wrong on our side. We're on it. |
| 503 | `service_unavailable` | Something went wrong on our side. We're on it. |