Overall sessions statistics
GET {{baseUrl}}/{{version}}/stats/sessions/count?by_reps=true&limit=10&from_date=2023-06-01&to_date=2024-05-31&team_id=176
This endpoint returns the training stats for a given team Team UID
By setting the by parameter it allows you to control what kind of data you want back. For example:
- number of sets
- number of reps
- number of sessions
This endpoint also groups the data by month or by day depending on whether there a more than 31 days gap between the start_date and end_date .
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
by_reps | boolean | nullable | |
limit | number | nullable | |
from_date | string | nullable | |
to_date | string | nullable | |
team_id | number | nullable |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Count sessions","sessions_count":[{"reps_count":"5","year":2023,"month":7},{"reps_count":"1","year":2023,"month":8}]}