# social.coves.community.getSubscribers

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.getSubscribers)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.getSubscribers/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.getSubscribers/examples)

## Definitions

### `social.coves.community.getSubscribers`

**Type**: `query`

Get list of users subscribed to a community

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `community` | `string` (at-identifier) | Yes | DID or handle of the community |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `subscribers` | `array` | Yes |  |

### `social.coves.community.getSubscribers#subscriberView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `avatar` | `string` (uri) | No |  |
| `handle` | `string` (handle) | No |  |
| `isMember` | `boolean` | No | Whether this subscriber has membership status |
| `reputation` | `integer` | No | User's reputation in this community |
| `displayName` | `string` | No |  |
| `subscribedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "social.coves.community.getSubscribers",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "subscribers"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "maxLength": 500
            },
            "subscribers": {
              "type": "array",
              "items": {
                "ref": "#subscriberView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "community"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 500
          },
          "community": {
            "type": "string",
            "format": "at-identifier",
            "description": "DID or handle of the community"
          }
        }
      },
      "description": "Get list of users subscribed to a community"
    },
    "subscriberView": {
      "type": "object",
      "required": [
        "did",
        "subscribedAt"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "avatar": {
          "type": "string",
          "format": "uri"
        },
        "handle": {
          "type": "string",
          "format": "handle"
        },
        "isMember": {
          "type": "boolean",
          "description": "Whether this subscriber has membership status"
        },
        "reputation": {
          "type": "integer",
          "description": "User's reputation in this community"
        },
        "displayName": {
          "type": "string",
          "maxLength": 1280,
          "maxGraphemes": 128
        },
        "subscribedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
