# 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 numerik akun (yang ditanyakan). |
| `name` | string \| null | Nama tampilan. |
| `url` | string \| null | Tautan profil. |
| `avatar_url` | string \| null | Avatar. |
| `days` | integer | How many of the most recent days the figures cover. |
| `gained` | AccountGain | Pertambahan akun selama periode tersebut. |
| `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 | Total hingga saat ini. |
| `ext` | object | Data tambahan khusus platform. Hanya dikembalikan dengan view=full. |

### AccountGain

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Net followers gained; negative when the account lost followers. |
| `likes` | integer \| null | Suka yang diterima. |
| `comments` | integer \| null | Komentar yang diterima. |
| `shares` | integer \| null | Bagikan yang diterima. |
| `posts` | integer \| null | Postingan yang dipublikasikan. |

### AccountChange

| Field | Type | Description |
|---|---|---|
| `followers` | number \| null | Perubahan pertambahan pengikut bersih. |
| `likes` | number \| null | Perubahan suka yang diterima. |
| `comments` | number \| null | Perubahan komentar yang diterima. |
| `shares` | number \| null | Perubahan share yang diterima. |
| `posts` | number \| null | Perubahan jumlah postingan terbit. |

### AccountTotals

| Field | Type | Description |
|---|---|---|
| `followers` | integer \| null | Pengikut saat ini. |
| `likes` | integer \| null | Total suka yang diterima. |
| `posts` | integer \| null | Total postingan. |

## Endpoints that return a AccountHistory

- [Pertumbuhan akun 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`
