> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Count Collections

Returns the count of collections matching the provided filters. Uses the same filter parameters as the list endpoint.

` GET /collections/count `

Count Collections

Returns the count of collections matching the provided filters. Uses the same filter parameters as the list endpoint.

## Servers

- ` https://createkit.b3.fun ` — Production server

## Parameters

### ` creator ` (query, optional)

Filter by creator wallet address

- ` value `: type ` string `

  - pattern: ` "^0x[a-fA-F0-9]{40}$" `

### ` symbol ` (query, optional)

Filter by collection symbol

- ` value `: type ` string `

### ` referrer ` (query, optional)

Filter by referrer ID

- ` value `: type ` string `

  - pattern: ` "^[a-z0-9]+$" `

### ` chainId ` (query, optional)

Filter by blockchain chain ID

- ` value `: type ` integer `

### ` gameOwner ` (query, optional)

Filter by game owner wallet address

- ` value `: type ` string `

  - pattern: ` "^0x[a-fA-F0-9]{40}$" `

### ` gameId ` (query, optional)

Filter by game ID

- ` value `: type ` string `

## Responses

### ` 200 ` — Count retrieved successfully

Content type: ` application/json `

- ` value `: type ` object `

  - ` success `: type ` boolean `

    - example: ` true `

  - ` count `: type ` integer ` — Number of collections matching filters

### ` 400 ` — Bad Request - Must provide at least one filter

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` success `, ` error `

  - ` success `: type ` boolean `

    - example: ` false `

  - ` error `: type ` string ` — Error message describing what went wrong

## Request examples

### cURL

```curl
curl -X GET 'https://createkit.b3.fun/collections/count'
```

### JavaScript

```javascript
const response = await fetch('https://createkit.b3.fun/collections/count', {
  method: 'GET'
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.get('https://createkit.b3.fun/collections/count')
print(response.json())
```