# pub.chive.collection.getFeed

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.getFeed)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.getFeed/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.getFeed/examples)

## Definitions

### `pub.chive.collection.getFeed`

**Type**: `query`

Get the activity feed for a collection, aggregating events from tracked items

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` | Yes | AT-URI of the collection |
| `limit` | `integer` | No | Maximum events to return |
| `cursor` | `string` | No | Pagination cursor |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Pagination cursor for next page |
| `events` | `array` | Yes | Feed events in reverse chronological order |
| `hasMore` | `boolean` | Yes | Whether more events exist |

## Raw Schema

```json
{
  "id": "pub.chive.collection.getFeed",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "events",
            "hasMore"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for next page"
            },
            "events": {
              "type": "array",
              "items": {
                "ref": "pub.chive.collection.defs#feedEventView",
                "type": "ref"
              },
              "description": "Feed events in reverse chronological order"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more events exist"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "description": "AT-URI of the collection"
          },
          "limit": {
            "type": "integer",
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum events to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          }
        }
      },
      "description": "Get the activity feed for a collection, aggregating events from tracked items"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
