Statistics

Activity by hour

GET/v1/guilds/:guildId/stats/hourly
NeedsOwner's keynyx+stats:read

When the server is busy: messages and member joins over the range, by weekday and hour of the day in the time zone you ask for. Shaped for a heatmap.

messages and joins are 7 rows of 24 numbers, read as messages[weekday][hour]. Weekday 0 is Sunday; hour 0 is midnight in timezone.

from and to still pick UTC days; tz only decides which weekday and hour each message or join lands in. Daylight-saving changes inside the range are applied day by day.

Query parameters

fromdate
First day, inclusive, in UTC. Defaults to 29 days before to, so the default range is 30 days.
todate
Last day, inclusive, in UTC. Defaults to today. The range may span at most 365 days.
tzstring · default UTC
IANA time zone for the weekday and hour buckets, such as Europe/Vilnius or America/New_York. Fixed offsets like +02:00 are not accepted, since they ignore daylight saving.

Errors

400 BAD_REQUEST when:

  • from or to is not a real date in YYYY-MM-DD form.
  • from is after to.
  • The range spans more than 365 days, counting both ends.
  • tz is not an IANA time zone name.

Plus the failures every endpoint shares, listed under errors & limits.