# app.zeens.getCollections

> List collections owned by an actor. Private collections are only returned when viewer == actor.

- 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.getCollections)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollections/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollections/analytics)

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

Type: query · GET

### Parameters (query string)

- `actor` (string · did, required): DID of the collection owner.
- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `viewer` (string · did): DID of the requester. When equal to actor, private collections are included.

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List collections owned by an actor. Private collections are only returned when viewer == actor.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "DID of the collection owner.",
            "format": "did",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "description": "DID of the requester. When equal to actor, private collections are included.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collection",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollections",
  "lexicon": 1
}
```
