---
title: "Get Church Leaderboard"
method: GET
path: "/api/leaderboard/church"
tags: ["leaderboard"]
---

# Get Church Leaderboard

`GET /api/leaderboard/church`

Get the community leaderboard based on streak count.
Returns users from the authenticated user's church PLUS their friends
(community view used by the main LeaderboardView).

Note: This is the church + friends view. For a leaderboard restricted
to members of a specific church only, use GET /leaderboard/by-church/{church_id}.

## Query parameters

- `limit` integer
- `offset` integer

## Headers

- `x-user-id` string, nullable

## Response `200`

Successful Response

- LeaderboardResponse
  - `success` boolean, required
  - `entries` LeaderboardEntry[], required
    - `rank` integer, required
    - `user_id` string, required
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `profile_picture` string, nullable
    - `streak_count` integer
    - `church_id` integer, nullable
    - `church_name` string, nullable
  - `total_count` integer, required
  - `user_rank` integer, nullable
  - `user_entry` LeaderboardEntry
    - `rank` integer, required
    - `user_id` string, required
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `profile_picture` string, nullable
    - `streak_count` integer
    - `church_id` integer, nullable
    - `church_name` string, nullable
  - `context_name` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/versions/523833f9e819/schema)
