---
title: "Get daily leaderboard"
method: GET
path: "/api/v1/leaderboard/daily"
tags: ["Leaderboard"]
---

# Get daily leaderboard

`GET /api/v1/leaderboard/daily`

Returns the daily leaderboard of coding time. Public, no authentication required. The leaderboard is cached and regenerated periodically.

## Response `200`

successful

- object
  - `period` string
  - `start_date` string, date
  - `date_range` string
  - `generated_at` string, date_time
  - `entries` LeaderboardEntry[]
    - `rank` integer
    - `user` object
      - `id` integer
      - `username` string
      - `avatar_url` string
    - `total_seconds` number — Total coding duration in seconds for the period

## Other responses

- `503` — service unavailable — Leaderboard is being generated

---

[API](https://skmtc.net/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.net/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/versions/4214f8ab061e/schema)
