---
title: "Get leaderboard for a community"
method: GET
path: "/public/communities/{subdomain}/leaderboard"
tags: ["leaderboard"]
---

# Get leaderboard for a community

`GET /public/communities/{subdomain}/leaderboard`

## Request

- Base URL: `https://api-v2.zealy.io`
- URL: `https://api-v2.zealy.io/public/communities/{subdomain}/leaderboard`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/zealy/apis/zealy-api/docs/public/communities/:subdomain/leaderboard/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `subdomain` string, required

## Query parameters

- `sprintId` string
- `page` number
- `limit` number, nullable

## Headers

- `x-api-key` string, required

## Response `200`

200

- object
  - `data` object[], required
    - `userId` string, uuid, required
    - `xp` number, required
    - `name` string, nullable, required
    - `avatar` string, uri, nullable, required
    - `ethAddress` string, nullable
    - `address` string, nullable
    - `twitterId` string, nullable
    - `twitterUsername` string, nullable
    - `discordHandle` string, nullable
    - `discordId` string, nullable
    - `connectedWallet` string, nullable
    - `numberOfQuests` number, required
    - `email` string, nullable
  - `totalPages` number, required
  - `page` number, required
  - `totalRecords` number, required
  - `status` 'computed' | 'resyncing' | 'outdated'

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/zealy/apis/zealy-api.md) - [All operations](https://skmtc.dev/zealy/apis/zealy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zealy/apis/zealy-api/revisions/1c24cb9f818b?raw)
