# blue.moji.feed.getTrending

> AppView-computed "Weekly Top Bluemoji": the custom emoji reacted with by the most distinct actors in a recent window. Purely a discovery/trending signal derived from indexed blue.moji.feed.reaction records verified against their source blue.moji.collection.item — not a network-wide count (only reflects reactions this AppView has indexed), and not the same per-post cap applied by getReactions/getReactionCounts.

- 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.getTrending)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.feed.getTrending/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kmzpsik7s5y5fwu7nnkngfx4/blue.moji.feed.getTrending/analytics)

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

Type: query · GET

### Parameters (query string)

- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 25
- `period` (string): Trending window: 'day', 'week', or 'month'. Any other value is rejected.
  - Constraints: default: "week"

### Output (application/json)

- `items` (array, required): blue.moji.feed.defs#reactionGroup entries reused here: 'count' is the distinct-reactor count within the window (not a per-post count), and 'viewer' is always omitted since there's no single subject.
  - `items` (ref)
    - Reference: `blue.moji.feed.defs#reactionGroup`
- `period` (string, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "AppView-computed \"Weekly Top Bluemoji\": the custom emoji reacted with by the most distinct actors in a recent window. Purely a discovery/trending signal derived from indexed blue.moji.feed.reaction records verified against their source blue.moji.collection.item — not a network-wide count (only reflects reactions this AppView has indexed), and not the same per-post cap applied by getReactions/getReactionCounts.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "items": {
              "description": "blue.moji.feed.defs#reactionGroup entries reused here: 'count' is the distinct-reactor count within the window (not a per-post count), and 'viewer' is always omitted since there's no single subject.",
              "items": {
                "ref": "blue.moji.feed.defs#reactionGroup",
                "type": "ref"
              },
              "type": "array"
            },
            "period": {
              "type": "string"
            }
          },
          "required": [
            "period",
            "items"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 25,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "period": {
            "default": "week",
            "description": "Trending window: 'day', 'week', or 'month'. Any other value is rejected.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "blue.moji.feed.getTrending",
  "lexicon": 1
}
```
