---
title: "Leaderboard"
method: GET
path: "/campaigns/{campaignId}/leaderboard"
---

# Leaderboard

`GET /campaigns/{campaignId}/leaderboard`

This endpoint allows you to query leaderboard data for a campaign.  It provides information such as player rankings, scores, and time played. Use this endpoint if you want to display a real-time leaderboard in your system to showcase player achievements and encourage competition.

## Path parameters

- `campaignId` integer, required

## Query parameters

- `limit` integer, required
- `player` string
- `sorting` 'score' | 'time'
- `fromDate` string

## Response `200`

200

- object
  - `me` object
    - `place` string
    - `score` integer
    - `gameDurationInSeconds` integer
    - `leaderboardName` string
  - `leaderboards` object[]
    - `place` string
    - `score` integer
    - `gameDurationInSeconds` integer
    - `leaderboardName` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/optimove/apis/optimove-api.md) · [All operations](https://skmtc.net/optimove/apis/optimove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimove/optimove-api/revisions/fc55c5b1bec5/schema)
