Skip to main content
BloxCord records tracked playtime for every member. These methods let your game read those totals in real time.

getUserMinutes

Returns a user’s tracked minutes over a time range, optionally scoped to a single place.
Batchable as the minutes.get op with args { userId, placeId, timeStart, timeEnd } — see apiBatch.

Parameters

number | string
required
The UserId whose minutes to fetch.
table
Optional filters.

Returns

table | nil
A totals table, or nil if the request was rejected or the backend was unreachable.

Examples


getLeaderboard

Returns a playtime leaderboard over a time range, optionally scoped to specific group ranks or a specific set of users.
Batchable as the leaderboard.get op with args { timeStart, timeEnd, includeAFK, ranks, userIds } — see apiBatch.

Parameters

table
required
Leaderboard options.

Returns

table | nil
A leaderboard payload, or nil if the request was rejected (e.g. range over 5 years) or the backend was unreachable.

Example