Hi Nightbot community.
Today, I want to introduce my little api.satont.ru that can display your CSGO level and elo on faceit.com. It’s super easy to use with the eval filter. Why eval? Well, because it allows you to customize the response format in the chat according to your preferences!
Here’s an example:
$(eval const api = $(urlfetch json https://api.satont.ru/faceit?nick=USERNAME); if (api.error) {'Error';} else { 'Lvl: ' + api['lvl'] + ' Elo: ' + api['elo'] })
Just make sure to replace USERNAME
with your actual username on faceit!
What’s great is that it also supports a custom view using a string format. You can simply use it like this:
$(urlfetch http://api.satont.ru/faceit?nick=USERNAME&view=Lvl: {lvl}, elo: {elo} trend: {latestMatchesTrend.simple}), Current match gain: {currentMatch.gain})
Complex example looks like that:
$(urlfetch http://api.satont.ru/faceit?nick=scoffy&view=Lvl: {lvl}, elo: {elo} trend: {latestMatchesTrend.simple}), Current match gain/lose: {currentMatch.gain}/{currentMatch.lose}, Lifetime Wins: {stats.lifetime.Wins})
It result as: Lvl: 10, elo: 3121 trend: L, Current match gain/lose: 25/-25, Lifetime Wins: 2186
You can check supported variables in http://api.satont.ru/docs, current example response is:
{
"lvl": 10,
"elo": 3000,
"currentMatch": {
"gain": 28,
"lose": -30
},
"latestMatchesTrend": {
"simple": "WLWLW",
"extended": "W +10 | L -22 | W +24 | L -35 | W +28",
"score": {
"wins": 3,
"loses": 2
}
},
"todayEloDiff": "+14",
"latestMatches": [
{
"team": "team_-HEi5",
"teamScore": "16 / 11",
"map": "de_mirage",
"kd": "0.81",
"hs": {
"percentage": "69",
"number": "9"
},
"eloDiff": "+27",
"kills": "13",
"death": "16",
"result": "Won"
},
{
"team": "team_-HEi5",
"teamScore": "9 / 16",
"map": "de_mirage",
"kd": "0.76",
"hs": {
"percentage": "62",
"number": "10"
},
"eloDiff": "-25",
"kills": "16",
"death": "21",
"result": "Lost"
}
],
"stats": {
"Total Headshots %": "338592",
"Current Win Streak": "2",
"Longest Win Streak": "19",
"K/D Ratio": "10318.69",
"Average K/D Ratio": "1.21",
"Win Rate %": "60",
"Average Headshots %": "40",
"Matches": "8559",
"Wins": "5163"
}
}
Discord server for support: Satont API.