# support.supper.comments.getCommentCounts

> Published by [supper.support](https://lexicon.garden/identity/did:plc:mcsqdltevtjpu26xthzzmm2l)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.comments.getCommentCounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.comments.getCommentCounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.comments.getCommentCounts/examples)

## Definitions

### `support.supper.comments.getCommentCounts`

**Type**: `query`

Return public Supper comment totals for a bounded set of site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll records. This count-only query is intended for feed cards and other batched summaries.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `probes` | `array` | No | Optional public comment record URIs whose presence in the valid counted thread set should be confirmed for cache reconciliation. |
| `subjects` | `array` | Yes | AT URIs of site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll records whose public Supper comments should be counted. The service must reject subjects outside those collections. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `counts` | `array` | Yes |  |

### `support.supper.comments.getCommentCounts#countView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes |  |
| `subject` | `string` (at-uri) | Yes | Exact site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll AT URI represented by this count. |
| `countedUris` | `array` | Yes | The requested probe URIs that currently belong to this subject's valid counted thread set. |

## Raw Schema

```json
{
  "id": "support.supper.comments.getCommentCounts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "counts"
          ],
          "properties": {
            "counts": {
              "type": "array",
              "items": {
                "ref": "#countView",
                "type": "ref"
              },
              "maxLength": 25
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "subjects"
        ],
        "properties": {
          "probes": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 100,
            "description": "Optional public comment record URIs whose presence in the valid counted thread set should be confirmed for cache reconciliation."
          },
          "subjects": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 25,
            "minLength": 1,
            "description": "AT URIs of site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll records whose public Supper comments should be counted. The service must reject subjects outside those collections."
          }
        }
      },
      "description": "Return public Supper comment totals for a bounded set of site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll records. This count-only query is intended for feed cards and other batched summaries."
    },
    "countView": {
      "type": "object",
      "required": [
        "subject",
        "total",
        "countedUris"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "subject": {
          "type": "string",
          "format": "at-uri",
          "description": "Exact site.standard.document, support.supper.feed.post, fm.plyr.track, or support.supper.poll.poll AT URI represented by this count."
        },
        "countedUris": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "at-uri"
          },
          "maxLength": 100,
          "description": "The requested probe URIs that currently belong to this subject's valid counted thread set."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
