I got some code, Im using SkriptWebAPI and idk if this is reqn too. ChatGPT made it and I modified it to the docs. Its not receiving though..:
command /resetvar:
trigger:
set {variable1} to 0
command /addvar:
trigger:
add 1 to {variable1}
broadcast {variable1}
command /sendData:
trigger:
set {_url} to "https://html-skript-http-get-test.cirga5twitch.repl.co" # Replace with your actual endpoint URL
set {_header} to "Content-Type: application/json"
set {_body} to "{ 'variable1': '%{variable1}%', 'variable2': '%{variable2}%', 'variable3': '%{variable3}%', 'variable4': '%{variable4}%' }"
send post request to {_url} with header {_header} and body {_body}
broadcast "Done"