# pub.chive.collection.getContaining

> 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.getContaining)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.getContaining/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.getContaining/examples)

## Definitions

### `pub.chive.collection.getContaining`

**Type**: `query`

Get collections that contain a specific item

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum results to return |
| `itemUri` | `string` | Yes | AT-URI of the item to find containing collections for |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `collections` | `array` | Yes | Collections containing the item |

## Raw Schema

```json
{
  "id": "pub.chive.collection.getContaining",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "collections"
          ],
          "properties": {
            "collections": {
              "type": "array",
              "items": {
                "ref": "pub.chive.collection.defs#collectionView",
                "type": "ref"
              },
              "description": "Collections containing the item"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "itemUri"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum results to return"
          },
          "itemUri": {
            "type": "string",
            "description": "AT-URI of the item to find containing collections for"
          }
        }
      },
      "description": "Get collections that contain a specific item"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
