CS:GO custom APIs


#1

Hey folks,

we’ve developed some useful APIs for Nightbot which allow you to display your CS:GO stats directly in your chat!

Sample and always up to date docs: https://csgo-stats.net/tools/nightbot

Stats for a specific user
!stats

$(urlfetch https://csgo-stats.net/api/nightbot/stats/$(channel)/YOURCUSTOMURL)

Your watchers stats
!mystats [CUSTOMURL]

$(urlfetch https://csgo-stats.net/api/nightbot/stats/$(channel)/$(1))

Show your current inventory
!inventory

$(urlfetch https://csgo-stats.net/api/nightbot/inventory/$(channel)/YOURCUSTOMURL)

Your always up-to-date rank
!rank

$(urlfetch https://csgo-stats.net/api/nightbot/rank/$(channel)/YOURCUSTOMURL)

VAC status
!vac [steamname]

$(urlfetch https://vac-check.com/api/$(channel)/$(1))

Your own links and more information is available at https://csgo-stats.net/tools/nightbot

What do you think? Suggestions are highly appreciated!


#4

Is there a way to make it only show Awp Shots missed?


#5

Sure, but we would have to develop this feature.


#6

Hay there,

Having some problems with this command:

Your watchers stats
!mystats [steamname]

$(customapi http://csgo-stats.net/nightbot.php?user=$(1)&username=$(user))

My own stats are showing when only typing “!mystats”, can you please give an example how to use this command? :slight_smile:


#7

I managed to fix it, I forgot to include “[steamname]” as a part of the command. Thnx anyway for making the command :slight_smile:


#8

I agree with this. It would let everyone know just how lucky you’ve gotten instead of how skillful you appear to be.


#9

None of the commands are working for me they keep saying that no one has an account by that name

Can anyone help?


#10

You have a Typo in the command when you copy and paste it. Remove the 4 at the end of the comand like so :


#11

It still isn’t working do you think you could come into the chat and help? I am in my channel’s chat


#12

possible also to make a VAC check? !vac STEAMNAME

$(customapi https://vac-check.com/nightbot.php?user=$(1)&username=$(user)) ??


#13

senxai
this is posible
the site owner must make a script for that


#14

Hey senxai,

I think you wrote the email? We built the API for checking the VAC status for a specific user, if anyone else want to use, here’s the Nightbot command snippet:

VAC status
!vac [steamname]
$(urlfetch https://vac-check.com/api/$(channel)/$(1))

If anyone has another cool idea feel free to tell us, we’re always open for new things! You can talk to us directly on Discord: http://discord.me/csgostatsnet


#15

thank you so much! this did the trick!


#16

do you have any api for http://twitchlinkchecker.com ?

thank you


#17

Not for that website but for the Twitch API that is beneath that. What’s the exact purpose?


#18

just to check if they are twitch linked. maybe there’s a way to make it work?


#19

We can only check Twitch --> Steam, not the other way around.
So if someone e.g. enters !vac without a username as a parameter in the chat we could get his Twitch username, look up if he has his account connected to steam and query his vac status. Does this make sense?


#20

Yea but twitchchecker requries a twitch username and checks if he’s connected. Please can you help me make a command check so it checks the username like … !check (username)


#21

LOVE IT! Best api for my channel!


#22

I connected your Bot to my friendlist to update my rank and my competetive rank. So i want to know if there is a possibility to show these ranks now via !rank command or something.

Thank you <3