# dev.tsunagite.listGames

> Published by [tsunagite.dev](https://lexicon.garden/identity/did:plc:pz4sp2vf5w26wnaee253gfms)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.listGames)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.listGames/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pz4sp2vf5w26wnaee253gfms/dev.tsunagite.listGames/examples)

## Definitions

### `dev.tsunagite.listGames`

**Type**: `query`

Batch game fetch

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | How many records to return. |
| `cursor` | `string` | No | Opaque string - receive from a previous request as the `cursor` value |
| `player` | `string` (at-identifier) | No | The handle or DID of the player to search for profile records on. Will only return games the player has a profile for. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `games` | `array` | Yes |  |
| `cursor` | `string` | No | Opaque string - pass back in a future request as the `cursor` value |

## Raw Schema

```json
{
  "id": "dev.tsunagite.listGames",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "games"
          ],
          "properties": {
            "games": {
              "type": "array",
              "items": {
                "ref": "dev.tsunagite.game",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string",
              "description": "Opaque string - pass back in a future request as the `cursor` value"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "description": "How many records to return."
          },
          "cursor": {
            "type": "string",
            "description": "Opaque string - receive from a previous request as the `cursor` value"
          },
          "player": {
            "type": "string",
            "format": "at-identifier",
            "description": "The handle or DID of the player to search for profile records on. Will only return games the player has a profile for."
          }
        }
      },
      "description": "Batch game fetch"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
