# pub.chive.collection.listPublic

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

## Definitions

### `pub.chive.collection.listPublic`

**Type**: `query`

List publicly visible collections with optional tag filtering

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | No | Filter by tag |
| `limit` | `integer` | No | Maximum results to return |
| `cursor` | `string` | No | Pagination cursor |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes | Total count of matching collections |
| `cursor` | `string` | No | Pagination cursor for next page |
| `hasMore` | `boolean` | Yes | Whether more results exist |
| `collections` | `array` | Yes | Public collections |

## Raw Schema

```json
{
  "id": "pub.chive.collection.listPublic",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "collections",
            "hasMore",
            "total"
          ],
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total count of matching collections"
            },
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for next page"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more results exist"
            },
            "collections": {
              "type": "array",
              "items": {
                "ref": "pub.chive.collection.defs#collectionView",
                "type": "ref"
              },
              "description": "Public collections"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "tag": {
            "type": "string",
            "description": "Filter by tag"
          },
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum results to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          }
        }
      },
      "description": "List publicly visible collections with optional tag filtering"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
