# Retrieve a leaderboard

## Overview

This endpoint allows you to retrieve a leaderboard from a community. The page and limit query parameters are required.

By default, the endpoint returns the all time leaderboard. You can retrieve a sprint leaderboard by specifying the `sprintId` in the query parameters.

To get the ID of a sprint, head to:

{% content-ref url="list-sprints" %}
[list-sprints](https://docs.zealy.io/api-reference/leaderboards/list-sprints)
{% endcontent-ref %}

## The leaderboard record object

***

**userId** - *String*

Zealy ID of the user

***

**name** - *String*

Zealy username of the user

***

**connectedWallet** - *String*

This field holds the address of the wallet the user connected to Zealy

***

**address** - *String*

Wallet address of the user on the blockchain the community is on. When the blockchain is one we support, the user is required to connect a wallet. In that case, the address ownership is verified.

When it's not a blockchain we support, the user manually enters the address. In that case, we can't assure the ownership.

List of supported blockchains: Ethereum, Optimism, Arbitrum, Polygon, Base, Solana, Binance Smart Chain (BNB), Linea, Avalanche, Fantom, Cronos, Palm, Gnosis, Chiliz, Moonbeam, Polygon zkEVM, zkSync, and TON.

***

**xp** - *Number*

XP of the user in the leaderboard

***

**avatar** - *String*

URL of the user's avatar

***

**twitterId** - *String*

Twitter ID of the user

***

**twitterUsername** - *String*

Twitter username of the user

***

**discordHandle** - *String*

Discord handle of the user

***

**discordId** - *String*

Discord ID of the user

***

**email** - *String*

Email of the user

***

## API Reference

{% openapi src="<https://api-v2.zealy.io/swagger.json>" path="/public/communities/{subdomain}/leaderboard" method="get" %}
<https://api-v2.zealy.io/swagger.json>
{% endopenapi %}
