# blue.moji.feed.getReactionCounts

> Batch version of blue.moji.feed.getReactions for timelines: aggregated reaction groups (counts only, no paginated individual reactions) for many posts in one call, avoiding an N+1 fetch per rendered post. Use getReactions for a single post's full detail (e.g. its own dedicated view with an actor list).

- Kind: query
- Authority: feed.moji.blue
- Lexicon: 1
- Published by [moji.blue](https://lexicon.garden/identity/did:plc:kmzpsik7s5y5fwu7nnkngfx4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.feed.getReactionCounts)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.feed.getReactionCounts/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.feed.getReactionCounts/analytics)

## Query (`blue.moji.feed.getReactionCounts`)

Type: query · GET

### Parameters (query string)

- `uris` (array, required): AT-URIs of the subject posts. Send as a single comma-joined value (e.g. 'uris=at://a,at://b'), not repeated 'uris=' keys — this AppView's implementation currently only sees the last occurrence of a repeated query key. AT-URIs never contain commas (record keys exclude them), so this is unambiguous.
  - Constraints: maxLength: 50
  - `items` (string · at-uri)

### Output (application/json)

- `counts` (array, required)
  - `items` (ref)
    - Reference: `#subjectReactionCounts`

## #subjectReactionCounts (`blue.moji.feed.getReactionCounts#subjectReactionCounts`)

Type: object

### Properties

- `groups` (array, required)
  - `items` (ref)
    - Reference: `blue.moji.feed.defs#reactionGroup`
- `uri` (string · at-uri, required): AT-URI of the subject post. Subjects with zero reactions are omitted from the response rather than included with an empty groups array.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Batch version of blue.moji.feed.getReactions for timelines: aggregated reaction groups (counts only, no paginated individual reactions) for many posts in one call, avoiding an N+1 fetch per rendered post. Use getReactions for a single post's full detail (e.g. its own dedicated view with an actor list).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "counts": {
              "items": {
                "ref": "#subjectReactionCounts",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "counts"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uris": {
            "description": "AT-URIs of the subject posts. Send as a single comma-joined value (e.g. 'uris=at://a,at://b'), not repeated 'uris=' keys — this AppView's implementation currently only sees the last occurrence of a repeated query key. AT-URIs never contain commas (record keys exclude them), so this is unambiguous.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          }
        },
        "required": [
          "uris"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "subjectReactionCounts": {
      "properties": {
        "groups": {
          "items": {
            "ref": "blue.moji.feed.defs#reactionGroup",
            "type": "ref"
          },
          "type": "array"
        },
        "uri": {
          "description": "AT-URI of the subject post. Subjects with zero reactions are omitted from the response rather than included with an empty groups array.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "groups"
      ],
      "type": "object"
    }
  },
  "id": "blue.moji.feed.getReactionCounts",
  "lexicon": 1
}
```
