# 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 | Hesabın sayısal ID'si (sorgulanan). |
| `name` | string \| null | Görünen ad. |
| `url` | string \| null | Profil bağlantısı. |
| `avatar_url` | string \| null | Avatar. |
| `days` | integer | How many of the most recent days the figures cover. |
| `gained` | AccountGain | Hesabın dönem boyunca kazandıkları. |
| `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 | Şu anki toplamlar. |
| `ext` | object | Platforma özgü ek alanlar. Yalnızca view=full ile döner. |

### AccountGain

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Net followers gained; negative when the account lost followers. |
| `likes` | integer \| null | Alınan beğeniler. |
| `comments` | integer \| null | Alınan yorumlar. |
| `shares` | integer \| null | Alınan paylaşımlar. |
| `posts` | integer \| null | Yayımlanan gönderiler. |

### AccountChange

| Field | Type | Description |
|---|---|---|
| `followers` | number \| null | Net takipçi kazanımındaki değişim. |
| `likes` | number \| null | Alınan beğenilerdeki değişim. |
| `comments` | number \| null | Alınan yorumlardaki değişim. |
| `shares` | number \| null | Alınan paylaşımlardaki değişim. |
| `posts` | number \| null | Yayımlanan gönderilerdeki değişim. |

### AccountTotals

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Şu anki takipçiler. |
| `likes` | integer \| null | Alınan toplam beğeni. |
| `posts` | integer \| null | Toplam gönderi. |

## Endpoints that return a AccountHistory

- [Douyin hesap büyümesi](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`
