# Community

> A community or group on a platform, such as a subreddit or an X community.

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

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; pass it as is to the endpoints that take one. |
| `name` | string | Название сообщества. |
| `url` | string \| null | Ссылка на сообщество. |
| `description` | string \| null | Тематика сообщества, по его собственному описанию. |
| `avatar_url` | string \| null | Иконка сообщества. |
| `nsfw` | boolean \| null | Отмечено ли как контент для взрослых. |
| `created_at` | string \| null | Когда создано сообщество. |
| `metrics` | CommunityMetrics | Значения на момент получения. |
| `ext` | object | Дополнительные поля конкретной платформы. Возвращаются только при view=full. |

### CommunityMetrics

| Field | Type | Description |
|---|---|---|
| `members` | integer \| null | Участники. |

## Endpoints that return a Community

- [Профиль сообщества X](https://okdata.online/apis/x/communities/get/) (`x.communities.get`): $0.0004 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`, `description`, `metrics`
- standard: `avatar_url`, `nsfw`, `created_at`
- full: `ext`
