Skip to main content
GET
Fetch one user's 7 / 14 / 30-day trend data (v2)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

query_uid
string
required

The user whose daily records are read.

Example:

"user123"

Query Parameters

trend_type
enum<string>
default:all

Which trend windows to return. all returns 7d, 14d and 30d together.

Available options:
7d,
14d,
30d,
all
Example:

"all"

start_day
string

Start date in YYYY-MM-DD format (e.g., 2025-01-01)

Example:

"2025-01-01"

end_day
string

End date in YYYY-MM-DD format (e.g., 2025-01-31)

Example:

"2025-01-31"

format
enum<string>
default:json

json (default) returns the records inline; csv returns a file download.

Available options:
csv,
json
Example:

"json"

Response

Trend data fetched successfully. A json request always answers with one array per requested period, empty when the range holds no rows; format=csv answers with a file download.