Hi, I created an small faceit (.com) api to retrieve last CSGO matches, elo, last match stats and ladder info given a faceit user name.
Usage examples
!elo
!addcom -cd=5 !elo $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user), my elo is '+ api.elo +' (Lvl: '+ api.level +')' })
output: Xxx, my elo is 2001 (Lvl: 10)
!elo
(short format)
!addcom -cd=5 !elo $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (!api.error) { 'Lvl: '+ api.level + ' Elo: '+ api.elo })
output: Lvl: 10 Elo: 2001
!last
(last matches report)
!addcom -cd=5 !last $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user) my last matches -> ' + api.report; })
output: Xxx, my last matches -> WIN 16:9 Inferno (+11), LOSE 16:13 Nuke (-24), ...)
!stats
(stats from the last played match)
!addcom -cd=5 !stats $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user) my last match stats -> ' + api.last_match })
output: Xxx my last match stats -> Victory on Inferno (16:9), KAD: 12/5/20 KDR: 0.6 HS: 50% MVP: 2 ELO: +11)
!ladder
(ladder info)
!addcom -cd=5 !ladder $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { '$(user), I\'m ranked '+ api.ladder })
output: I'm ranked 24 on EU Master League (PTS: 797 W/P: 100/167 WR: 0.6))
!fplc
(eu fplc ranking, if playing it)
!addcom -cd=5 !fplc $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=YOUR_FACEIT_USER); if (api.error) {api.message;} else { api.fplc })
output: Ranking: 144 (Pts: 1482 WR: 0/2 Last: LOSE 16:9 Mirage)
Remember that your FACEIT USER NAME IS CASE SENSITIVE, copy it from faceit.
Ladder data may not be available for active PRO players like s1mple cause they don’t participate.
Examples to get data from any faceit user in your chat (eg: !elo s1mple)
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 (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 (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 })
Ladder info (usage: !ladder FlipiN)
!addcom -cd=5 !ladder $(eval const api = $(urlfetch json http://api.faceit.myhosting.info:81/?n=$(touser)); if (api.error) {api.message;} else { '$(user), $(touser) is ranked '+ api.ladder })
Contact me here if you will find some bugs/errors.