# AccountHistory

> How much an account gained over its last days, and how that compares with the period before.

Canonical page: https://okdata.online/docs/objects/account_history/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | Die numerische ID des Kontos (des angefragten). |
| `name` | string \| null | Anzeigename. |
| `url` | string \| null | Profillink. |
| `avatar_url` | string \| null | Profilbild. |
| `days` | integer | How many of the most recent days the figures cover. |
| `gained` | AccountGain | Zuwachs des Kontos im Zeitraum. |
| `change` | AccountChange | Each gain against the same length of time before, as a ratio: 0.3 is 30% more, -0.5 is half. |
| `totals` | AccountTotals \| null | Summen zum aktuellen Stand. |
| `ext` | object | Plattformspezifische Zusatzfelder. Nur mit view=full. |

### AccountGain

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Net followers gained; negative when the account lost followers. |
| `likes` | integer \| null | Erhaltene Likes. |
| `comments` | integer \| null | Erhaltene Kommentare. |
| `shares` | integer \| null | Erhaltene Shares. |
| `posts` | integer \| null | Veröffentlichte Beiträge. |

### AccountChange

| Field | Type | Description |
|---|---|---|
| `followers` | number \| null | Veränderung der netto gewonnenen Follower. |
| `likes` | number \| null | Veränderung der erhaltenen Likes. |
| `comments` | number \| null | Veränderung der erhaltenen Kommentare. |
| `shares` | number \| null | Veränderung der erhaltenen Shares. |
| `posts` | number \| null | Veränderung der veröffentlichten Beiträge. |

### AccountTotals

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Aktuelle Follower. |
| `likes` | integer \| null | Insgesamt erhaltene Likes. |
| `posts` | integer \| null | Beiträge insgesamt. |

## Endpoints that return a AccountHistory

- [Douyin-Kontowachstum](https://okdata.online/apis/douyin/users/history/) (`douyin.users.history`): $0.002 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `name`, `url`, `days`, `gained`, `change`
- standard: `avatar_url`, `totals`
- full: `ext`
