DiscordRep API

get user info and reputation

get
Reputation

https://discordrep.com/api/rep/id?authorization=key
Request
Response
Path Parameters
id
required
string
ID of user to fetch
Query Parameters
authorization
required
string
API key
200: OK
{
"id":"538855659714641960",
"upvotes":13,
"downvotes":0,
"reputation":3,
"xp":12409
}
401: Unauthorized
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code":"404",
"error":"User not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Users

https://discordrep.com/api/u/id?authorization=key
Request
Response
Path Parameters
id
required
string
ID of the user to fetch.
Query Parameters
authorization
required
string
API key
200: OK
user successfully fetched.
{
"id":"538855659714641960",
"bio":":sweat_smile:",
"donator":0,
"partner":false,
"admin":true,
"mod":false
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
Could not find a user matching this query.
{
"code":"404",
"error":"User not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Bans

https://discordrep.com/api/bans/id?authorization=key
Request
Response
Path Parameters
id
required
string
ID of the user
Query Parameters
authorization
required
string
API key
200: OK
Ban found
{
"id": "678912395614195123",
"reason": "Scammer",
"moderator": "538855659714641960",
"date":1568730054259
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code":"404",
"error":"Ban not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}

get
Warns

https://discordrep.com/api/warns/id?authorization=key
Request
Response
Path Parameters
id
required
string
ID of the user
Query Parameters
authorization
required
string
API key
200: OK
{
"id": "678912395614195123",
"reason": "Probable scammer",
"moderator": "538855659714641960",
"date":1568730054259
}
401: Unauthorized
Invalid API key
{
"code":"401",
"error":"unauthorized"
}
404: Not Found
{
"code": "404",
"error": "Warn not found"
}
429: Too Many Requests
{
"code":"429",
"error": "Too Many Requests"
}