# 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`
