# app.zeens.getCollectionItems

> Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollectionItems)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollectionItems/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollectionItems/examples)

## Definitions

### `app.zeens.getCollectionItems`

**Type**: `query`

List items inside a collection. Returns 404 if the collection is private and viewer != owner. Items are returned newest-first by addedAt.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `collection` | `string` (at-uri) | Yes | AT-URI of the parent app.zeens.collection record. |
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `viewer` | `string` (did) | No |  |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List items inside a collection. Returns 404 if the collection is private and viewer != owner. Items are returned newest-first by addedAt.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "collection": {
            "description": "AT-URI of the parent app.zeens.collection record.",
            "format": "at-uri",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "collection"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collectionItem",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollectionItems",
  "lexicon": 1
}
```
