# games.gamesgamesgamesgames.getGenreCounts

> Published by [trezy.codes](https://lexicon.garden/identity/did:plc:4jrld6fwpnwqehtce56qshzv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4jrld6fwpnwqehtce56qshzv/games.gamesgamesgamesgames.getGenreCounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4jrld6fwpnwqehtce56qshzv/games.gamesgamesgamesgames.getGenreCounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4jrld6fwpnwqehtce56qshzv/games.gamesgamesgamesgames.getGenreCounts/examples)

## Definitions

### `games.gamesgamesgamesgames.getGenreCounts`

**Type**: `query`

Get game counts grouped by genre.

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.getGenreCounts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "genres"
          ],
          "properties": {
            "genres": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "genre",
                  "count"
                ],
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "genre": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Get game counts grouped by genre."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
