# 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 | Name der Community. |
| `url` | string \| null | Link zur Community. |
| `description` | string \| null | Worum es laut Community geht. |
| `avatar_url` | string \| null | Icon der Community. |
| `nsfw` | boolean \| null | Ob es als Inhalt für Erwachsene markiert ist. |
| `created_at` | string \| null | Gründungsdatum der Community. |
| `metrics` | CommunityMetrics | Zahlen zum Abrufzeitpunkt. |
| `ext` | object | Plattformspezifische Zusatzfelder. Nur mit view=full. |

### CommunityMetrics

| Field | Type | Description |
|---|---|---|
| `members` | integer \| null | Mitglieder. |

## Endpoints that return a Community

- [X-Community-Profil](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`
