# 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 | Числовой ID аккаунта (запрошенного). |
| `name` | string \| null | Отображаемое имя. |
| `url` | string \| null | Ссылка на профиль. |
| `avatar_url` | string \| null | Аватар. |
| `days` | integer | How many of the most recent days the figures cover. |
| `gained` | AccountGain | Прирост аккаунта за период. |
| `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 | Итоги на текущий момент. |
| `ext` | object | Дополнительные поля конкретной платформы. Возвращаются только при view=full. |

### AccountGain

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Net followers gained; negative when the account lost followers. |
| `likes` | integer \| null | Полученные лайки. |
| `comments` | integer \| null | Полученные комментарии. |
| `shares` | integer \| null | Полученные репосты. |
| `posts` | integer \| null | Опубликовано публикаций. |

### AccountChange

| Field | Type | Description |
|---|---|---|
| `followers` | number \| null | Изменение чистого прироста подписчиков. |
| `likes` | number \| null | Изменение полученных лайков. |
| `comments` | number \| null | Изменение полученных комментариев. |
| `shares` | number \| null | Изменение полученных репостов. |
| `posts` | number \| null | Изменение числа опубликованных постов. |

### AccountTotals

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Подписчиков сейчас. |
| `likes` | integer \| null | Всего полученных лайков. |
| `posts` | integer \| null | Всего публикаций. |

## Endpoints that return a AccountHistory

- [Рост аккаунта Douyin](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`
