# 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 | Nombre de la comunidad. |
| `url` | string \| null | Enlace a la comunidad. |
| `description` | string \| null | De qué trata la comunidad, según ella misma. |
| `avatar_url` | string \| null | Icono de la comunidad. |
| `nsfw` | boolean \| null | Si está marcado como contenido para adultos. |
| `created_at` | string \| null | Cuándo se creó la comunidad. |
| `metrics` | CommunityMetrics | Cifras en el momento de la consulta. |
| `ext` | object | Datos adicionales propios de la plataforma. Solo se devuelven con view=full. |

### CommunityMetrics

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

## Endpoints that return a Community

- [Perfil de comunidad de 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`
