How do I forward Nightbot output to my API

Hey there,

I started to create my own API with PHP. My Problem now is I cant find a way to give Twitchname and Query to PHP via Nightbot.
I would Like to know if and how it is possible to exchange those infos.
Thanks in advance!


Heya, to pass through these variables you need to add them to your url, for example:



Now these variables will be send as GET variables. So in your PHP code check if $_GET[‘name’] and $_GET[‘query’] are set, and if so use them.

Something good to know is Nightbot also sends some variables as headers with each request as described here. So for username you dont need to add it to the url, just check the headers with for example getallheaders(), but thats up to you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.