# support.supper.feed.getCheerCounts

> 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.feed.getCheerCounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.feed.getCheerCounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mcsqdltevtjpu26xthzzmm2l/support.supper.feed.getCheerCounts/examples)

## Definitions

### `support.supper.feed.getCheerCounts`

**Type**: `query`

Batched public Cheers counts, deduplicated by actor and subject URI. Viewer is a public actor DID, not authentication. No authentication is required; responses contain public records only.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `viewer` | `string` (did) | No |  |
| `subjects` | `array` | Yes |  |
| `additionalSubjects` | `array` | No | Optional additional public subject to union with one primary subject. Actors are deduplicated across both. Clients must verify the relationship; this query does not assert that the subjects identify the same post. For counts, requires exactly one primary subject. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `counts` | `array` | Yes |  |
| `additionalSubjects` | `array` | No | Echoes the additional subject included in the actor-deduplicated union, when requested. |

### `support.supper.feed.getCheerCounts#count`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes |  |
| `subject` | `string` (at-uri) | Yes |  |
| `viewerCheerUri` | `string` (at-uri) | No |  |

## Raw Schema

```json
{
  "id": "support.supper.feed.getCheerCounts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "counts"
          ],
          "properties": {
            "counts": {
              "type": "array",
              "items": {
                "ref": "#count",
                "type": "ref"
              },
              "maxLength": 25
            },
            "additionalSubjects": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "maxLength": 1,
              "description": "Echoes the additional subject included in the actor-deduplicated union, when requested."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "subjects"
        ],
        "properties": {
          "viewer": {
            "type": "string",
            "format": "did"
          },
          "subjects": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 25,
            "minLength": 1
          },
          "additionalSubjects": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 1,
            "description": "Optional additional public subject to union with one primary subject. Actors are deduplicated across both. Clients must verify the relationship; this query does not assert that the subjects identify the same post. For counts, requires exactly one primary subject."
          }
        }
      },
      "description": "Batched public Cheers counts, deduplicated by actor and subject URI. Viewer is a public actor DID, not authentication. No authentication is required; responses contain public records only."
    },
    "count": {
      "type": "object",
      "required": [
        "subject",
        "count"
      ],
      "properties": {
        "count": {
          "type": "integer",
          "minimum": 0
        },
        "subject": {
          "type": "string",
          "format": "at-uri"
        },
        "viewerCheerUri": {
          "type": "string",
          "format": "at-uri"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
