# games.gamesgamesgamesgames.getContributionStats

> 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.getContributionStats)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.getContributionStats/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.getContributionStats/examples)

## Definitions

### `games.gamesgamesgamesgames.getContributionStats`

**Type**: `query`

Get contribution statistics and badges for a user.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `stats` | `ref` → `#contributionStats` | Yes |  |
| `badges` | `array` | Yes |  |

### `games.gamesgamesgamesgames.getContributionStats#badge`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `description` | `string` | No |  |

### `games.gamesgamesgamesgames.getContributionStats#contributionStats`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `newGames` | `integer` | Yes |  |
| `additions` | `integer` | Yes |  |
| `corrections` | `integer` | Yes |  |
| `ownerAccepted` | `integer` | Yes |  |
| `uniqueEntities` | `integer` | Yes |  |
| `totalContributions` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.getContributionStats",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "stats",
            "badges"
          ],
          "properties": {
            "stats": {
              "ref": "#contributionStats",
              "type": "ref"
            },
            "badges": {
              "type": "array",
              "items": {
                "ref": "#badge",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          }
        }
      },
      "description": "Get contribution statistics and badges for a user."
    },
    "badge": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "contributionStats": {
      "type": "object",
      "required": [
        "totalContributions",
        "corrections",
        "additions",
        "newGames",
        "uniqueEntities",
        "ownerAccepted"
      ],
      "properties": {
        "newGames": {
          "type": "integer"
        },
        "additions": {
          "type": "integer"
        },
        "corrections": {
          "type": "integer"
        },
        "ownerAccepted": {
          "type": "integer"
        },
        "uniqueEntities": {
          "type": "integer"
        },
        "totalContributions": {
          "type": "integer"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
