> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galxe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryLeaderboardDataByUser

Arguments:

| Name | Description |
| - | - |
| `id` | Space id. |
| `seasonId` | Query for season ranking. Overall ranking is null |
| `address` | User address |

Request:

```graphql theme={null}
query SpaceLoyaltyPoints(
  $id: Int,
  $address: String!,
  $sprintId: Int) {
  space(id: $id) {
    id
    addressLoyaltyPoints(address: $address, sprintId: $sprintId) {
      id
      points
      rank
    }
  }
}
```

Variables:

```json theme={null}
{
  "id": 40,
  "address": "0x1fa5b7fc4da7777d211ed41d31f8b84735fd41b1",
  "sprintId": null
}
```

Response:

```json theme={null}
{
  "data": {
    "space": {
      "id": "40",
      "addressLoyaltyPoints": {
        "id": "sa-lb-0x1fa5b7fc4da7777d211ed41d31f8b84735fd41b1-40",
        "points": 180,
        "rank": 2
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.