# games.atplay.getProfile

> Published by [atplay.games](https://lexicon.garden/identity/did:plc:xawtkr77srkxlwhxjf7whbml)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xawtkr77srkxlwhxjf7whbml/games.atplay.getProfile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xawtkr77srkxlwhxjf7whbml/games.atplay.getProfile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xawtkr77srkxlwhxjf7whbml/games.atplay.getProfile/examples)

## Definitions

### `games.atplay.getProfile`

**Type**: `query`

Fetch a player's profile as the appview has it indexed.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | Whose profile to fetch. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `records` | `array` | Yes | The player's profile, or empty if they haven't written one. |

## Raw Schema

```json
{
  "id": "games.atplay.getProfile",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "records"
          ],
          "properties": {
            "records": {
              "type": "array",
              "items": {
                "ref": "games.atplay.player.profile",
                "type": "ref"
              },
              "description": "The player's profile, or empty if they haven't written one."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "Whose profile to fetch."
          }
        }
      },
      "description": "Fetch a player's profile as the appview has it indexed."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
