Guild statistics

When you create a channel name counter, those counts will be saved with a timestamp

get
Get available types

https://member-counter.eduardozgz.com/api/v1/guilds/:guildID/count-history
Returns an array with the existing types of records
Request
Response
Request
Path Parameters
guildID
required
string
ID of the guild
Headers
Authentication
required
string
Authentication token
Response
200: OK
[
"online_member_count_history",
"member_count_history",
"vc_connected_members_count_history",
"channel_count_history"
]

get
Get records by type

https://member-counter.eduardozgz.com/api/v1/guilds/:guildID/count-history/:type
Returns an array of record objects of the given guild id filtered by a type
Request
Response
Request
Path Parameters
guildID
required
string
ID of the guild
type
required
string
Any of the values returned in /v1/guilds/:guildID/count-history
Headers
Authorization
required
string
Authentication token
Query Parameters
after
optional
number
Default: Now, returns records created after a given date, expressed in milliseconds
before
optional
number
Default: One week ago, returns records created before a given date, expressed in milliseconds
limit
optional
number
Default 500, limits the returned records
every
optional
number
Default: 0, every record, the given number of records will be skiped to the next one
Response
200: OK
[
{
"timestamp": "2019-12-05T19:58:13.735Z",
"count": 1339
},
{
"timestamp": "2019-12-05T20:00:24.237Z",
"count": 1315
},
{
"timestamp": "2019-12-05T20:02:19.063Z",
"count": 1303
},
{
"timestamp": "2019-12-05T20:04:39.414Z",
"count": 1303
}
]