Example 2: How would i replace the $(channel) with the channel it is used in and the $(user) to the person who used it? https://twitch.api.scorpstuff.com/followed.php?caster=$(channel)&follower=$(user) and also when this is shown in chat it isnt a completed link, how would i fix that?

The retrieval of this data would require the use of sockets. You'd need to be familiar with HTTP protocols, specifically reading, and sending valid headers, and how to parse the data that follows after a header.

Here is a VERY primitive example using the URL in your first post. This is far from a complete solution to requests, it doesn't account for possible location redirects, nor does it account for the potential of multiple SOCKREAD event fires. Depending on the amount of data you're getting back, it may be impossible to fit it all within an entire buffer.

* Establishing a secure connection to api.scorpstuff.com on port 443
* Connection Success, building header and sending request.
* Attempting to retrieve return headers seperated by newlines.
HTTP/1.1 200 OK
Server: nginx/1.14.1
Date: Sat, 09 Feb 2019 21:51:49 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
* Attempting to retrieve any leftover data on the socket that may not have a new line character.
319

As for your question about links within mIRC, there's certain characters which aren't allowed within any given URI, you'll notice these characters get packed if you look in your browsers URL bar after doing a search on google or something. these forbidden characters are converted to a hex representation of it's ascii value in the form of %XX with the exception of a literal space, which becomes a plus "+". An example would be the "&" symbol, which would become "%26".

mIRC's URL catcher follows these rules and breaks upon detecting a character within a URI that it knows not to be valid, and stops processing here, assuming that anything beyond that illegal character most likely isn't part of the link.

here's another quick couple of aliases to help in formatting a properly escaped URI:

Which results in the following return:https://some.url.here/?caster=%23Joe+Bob&follower=Some+dude

of which the entire link is properly captured by mIRC.

Your GET/POST request which contains a query-string (get method, it's the "?..." stuff following the URL, post it's just the encoded stuff as a new line after the header, unless you're encoding in another method such as multipart/form-data) in a valid HTTP header MUST also be encoded in this manner for almost ALL http daemons to properly process your request, if mal-formed you may wind up getting a error code 400, Bad Request as a return.

I'd strongly recommend reading up on HTTP/1.0 and HTTP/1.1 protocols and learn the inner workings of communicating with a http server.

Thank you for your reply! So where would i put the command for it like if someone in a twitch chat does !followage where would i put that in the code, also where would i put the link i provided in the first post. Last question is where would I put "msg $chan and then the response of what the api directed to?