# app.zeens.getCollection

> Fetch a single collection record + a recent-items preview for the cover. Returns 404 if visibility=private and viewer != owner.

- Kind: query
- Authority: zeens.app
- Lexicon: 1
- Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection/analytics)

## Query (`app.zeens.getCollection`)

Type: query · GET

### Parameters (query string)

- `uri` (string · at-uri, required): AT-URI of the app.zeens.collection record.
- `viewer` (string · did): DID of the requester.

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch a single collection record + a recent-items preview for the cover. Returns 404 if visibility=private and viewer != owner.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "AT-URI of the app.zeens.collection record.",
            "format": "at-uri",
            "type": "string"
          },
          "viewer": {
            "description": "DID of the requester.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collection",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollection",
  "lexicon": 1
}
```
