---
title: "[ADMIN] Get community work hours summary for a specific user"
method: GET
path: "/api/v1/community/hours/{userId}"
tags: ["community"]
---

# \[ADMIN\] Get community work hours summary for a specific user

`GET /api/v1/community/hours/{userId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/community/hours/{userId}`
- Auth: HTTP bearer

[ADMIN] Get community work hours summary for a specific user

## Path parameters

- `userId` string, required

## Query parameters

- `days` number

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `totalHours` number: Total active hours worked
    - `payableHours` number: Payable hours (capped at 8 hours per day)
    - `totalEarnings` number: Total earnings from community work (based on payable hours)
    - `shiftCount` number: Number of completed shifts
    - `periodDays` number: Number of days in the period
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

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