# social.coves.feed.getCommunity

> 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.feed.getCommunity)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.getCommunity/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.getCommunity/examples)

## Definitions

### `social.coves.feed.getCommunity`

**Type**: `query`

Get a feed of posts from a specific community

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `sort` | `string` | No | Sort order for community feed |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `community` | `string` (at-identifier) | Yes | Get community feed for specific community (DID or handle) |
| `timeframe` | `string` | No | Timeframe for top sorting (only applies when sort=top) |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "social.coves.feed.getCommunity",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "feed"
          ],
          "properties": {
            "feed": {
              "type": "array",
              "items": {
                "ref": "social.coves.feed.defs#feedViewPost",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string",
              "maxLength": 500
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "community"
        ],
        "properties": {
          "sort": {
            "type": "string",
            "default": "hot",
            "maxLength": 64,
            "description": "Sort order for community feed",
            "knownValues": [
              "hot",
              "top",
              "new"
            ]
          },
          "limit": {
            "type": "integer",
            "default": 15,
            "maximum": 50,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 500
          },
          "community": {
            "type": "string",
            "format": "at-identifier",
            "description": "Get community feed for specific community (DID or handle)"
          },
          "timeframe": {
            "type": "string",
            "default": "day",
            "maxLength": 64,
            "description": "Timeframe for top sorting (only applies when sort=top)",
            "knownValues": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ]
          }
        }
      },
      "description": "Get a feed of posts from a specific community"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
