pub.chive.collection.getContaining

chive.pub View official

Documentation

Get collections that contain a specific item

main query

Get collections that contain a specific item

Parameters

itemUri string Required

AT-URI of the item to find containing collections for

limit integer Optional

Maximum results to return

Output

Encodingapplication/json
collections array Required

Collections containing the item

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
AT-URI of the item to find containing collections for
Maximum results to return
View raw schema
{
  "description": "Get collections that contain a specific item",
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "collections": {
          "description": "Collections containing the item",
          "items": {
            "ref": "pub.chive.collection.defs#collectionView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "collections"
      ],
      "type": "object"
    }
  },
  "parameters": {
    "properties": {
      "itemUri": {
        "description": "AT-URI of the item to find containing collections for",
        "type": "string"
      },
      "limit": {
        "default": 50,
        "description": "Maximum results to return",
        "maximum": 100,
        "minimum": 1,
        "type": "integer"
      }
    },
    "required": [
      "itemUri"
    ],
    "type": "params"
  },
  "type": "query"
}

Lexicon Garden

@