# games.gamesgamesgamesgames.listGames

> Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.listGames)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.listGames/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.listGames/examples)

## Definitions

### `games.gamesgamesgamesgames.listGames`

**Type**: `query`

Get a list of games on the network.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Restrict results to games in this DID's repo. Omitting it returns games from every repo — it does NOT default to the authenticated caller. Owner-facing surfaces must pass it explicitly. |
| `sort` | `string` | No | Field to sort by. Constrained because the value reaches an ORDER BY clause, which cannot be parameterised. |
| `limit` | `integer` | No |  |
| `modes` | `array` | No |  |
| `cursor` | `string` | No |  |
| `genres` | `array` | No |  |
| `themes` | `array` | No |  |
| `ageRatings` | `array` | No | Filter by age rating in 'organization:rating' format (e.g. esrb:M, pegi:Eighteen). |
| `sortDirection` | `string` | No | Sort direction. |
| `includeUnrated` | `boolean` | No | When age rating filters are active, also include games with no age ratings. |
| `applicationTypes` | `array` | No | Filter by application type (e.g. game, dlc, bundle). |
| `includeCancelled` | `boolean` | No |  |
| `includeUnpublished` | `boolean` | No | Include the caller's own unpublished drafts. Requires authentication and `did` set to the caller's own DID; the request is rejected otherwise. |
| `playerPerspectives` | `array` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `games` | `array` | Yes |  |
| `cursor` | `string` | No |  |

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.listGames",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "games"
          ],
          "properties": {
            "games": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#gameSummaryView",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string",
              "maxLength": 256
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "Restrict results to games in this DID's repo. Omitting it returns games from every repo — it does NOT default to the authenticated caller. Owner-facing surfaces must pass it explicitly."
          },
          "sort": {
            "enum": [
              "indexed_at",
              "createdAt",
              "name"
            ],
            "type": "string",
            "default": "indexed_at",
            "maxLength": 64,
            "description": "Field to sort by. Constrained because the value reaches an ORDER BY clause, which cannot be parameterised."
          },
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            }
          },
          "cursor": {
            "type": "string",
            "maxLength": 256
          },
          "genres": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            }
          },
          "themes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            }
          },
          "ageRatings": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "description": "Filter by age rating in 'organization:rating' format (e.g. esrb:M, pegi:Eighteen)."
          },
          "sortDirection": {
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "default": "desc",
            "maxLength": 64,
            "description": "Sort direction."
          },
          "includeUnrated": {
            "type": "boolean",
            "default": false,
            "description": "When age rating filters are active, also include games with no age ratings."
          },
          "applicationTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64,
              "knownValues": [
                "addon",
                "bundle",
                "dlc",
                "episode",
                "expandedGame",
                "expansion",
                "fork",
                "game",
                "mod",
                "pack",
                "port",
                "remake",
                "remaster",
                "season",
                "standaloneExpansion",
                "update"
              ]
            },
            "description": "Filter by application type (e.g. game, dlc, bundle)."
          },
          "includeCancelled": {
            "type": "boolean",
            "default": false
          },
          "includeUnpublished": {
            "type": "boolean",
            "default": false,
            "description": "Include the caller's own unpublished drafts. Requires authentication and `did` set to the caller's own DID; the request is rejected otherwise."
          },
          "playerPerspectives": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            }
          }
        }
      },
      "description": "Get a list of games on the network."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
