API Reference

Learn how to intereact with the Member Counter's HTTPS/REST API

The API is temporarily unaviable, if you need it, contact me eduardozgz#5695

Base URL:

https://member-counter.eduardozgz.com/api/v1

Use this url as a base for all requests, e.g: when you wanna do a GET in the /ping endpoint:

https://eduardozgz.com/member-counter/api/v1/ping

Content type:

HTTP header
Content-Type: application/json

All requests/responses has a json body, so when you make requests, remember to include aContent-Type HTTP header with the application/json value.

Authentication:

HTTP header
Authorization: your.token.here

Almost all requests require authorization, remember to include a Authorization HTTP header with your token as value.

To get your token, send mc!api to Member Counter in a DM channel

Never share your token, it's not revocable, if you need to authorize a user to perform actions in your guild, see role whitelisting.

Record object

Property

Type

Description

timestamp

ISO 8601 Date

When the record was created

count

number

The count for that timestamp

Example

{
"timestamp": "2019-12-05T19:58:13.735Z",
"count": 1337
}