DISCORD PREVNAME API
const Mxtorie = require('discord-prevname')
const api = new Mxtorie("authorization key")
api.getBalance().then(data => {
console.log(data)
})
api.fetchNames("user Id", false).then(data => {
console.log(data)
})
Balance_data
{
code: number,
name: string,
message: string,
data: float,
}
Name_data
{
code: number,
name: string,
message: string,
data: prevnames[]
}
prevnames
{
old: string,
new: string,
date: string|Date,
dateFormat: boolean,
}
"18/5/2022 8:53:31"
"<t:1535563350>"
Code
200 = succes
403 = forbidden
400 = not synchronized
406 = invalid authorization
429 = rate limit (will ban your authorization key)
405 = banned authorization
407 = user Id invalid
Note
You can do max 12 request all 10 seconds without being banned.
Succes prevnames request cost 0.05€
.
You can add credit in discord.
You can use the command /create
to create your first key and get 2€
on it.