NightDev Community Forums

[CustomAPI] faceit last games/matches api

Hi, I created an small faceit (.com) api to retrieve last CSGO matches given a faceit user name.

Examples

Elo command (usage: !elo s1mple)
!addcom -cd=5 !elo $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=$(touser)); if (api.error) {api.message;} else { '$(user), $(touser) elo is '+ api.elo +' (Lvl: '+ api.level +')' })

Last games report command (usage: !last s1mple)
!addcom -cd=5 !last $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=$(touser)); if (api.error) {api.message;} else { '$(user) last $(touser) matches -> ' + api.report; })

Last game stats command (usage: !stats s1mple)
!addcom -cd=5 !stats $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=$(touser)); if (api.error) {api.message;} else { '$(user) last $(touser) match stats -> ' + api.last_match })

You can replace $(touser) with your faceit username to force only your faceit stats in your channel.

Remember that your faceit user name is case sensitive, copy it from faceit.

Contact me here if you will find some bugs/errors.

Current api output:

{

"elo": 1560,
"level": "7",
"report": "LOSS 14:16 Overpass (-44), WIN 13:16 Inferno (+23), LOSS 16:14 Mirage (-25), LOSS 3:16 Mirage (-2), LOSS 16:10 Mirage (-33)",
"trend": "LWLLL",
"last_match": "KAD: 18/6/25 KDR: 0.72 HS: 56% MVP: 0 ELO: -44",
"error": false

}