KWGT wg help

I've been using $wg(jsonip.com, json, .ip)$ from the wg examples to get my current outside IP address, but today it started intermittently returning my IPv6 address rather than the IPv4 address I want. I have no idea what changed or why, and it's back to returning the IPv4 address again. So I thought I'd just use my own web site, which happens to display the "incoming" v4 IP address as part of its html on the home page. I can't figure out if or how to do it with the examples provided. As part of my web page button code that sends you to robtex to analyze your IP my page html will send this text line as part of everything else it sends:

<input type="text" id="QueryURL" size="13" value="123.456.789.012">

The only place the page html will send the string "value=" is in that one line. I would like to be able to grab the IP address from that. Can you help me with the proper $wg$ command that will return me the IP address. I don't know if it matters to KWGT, but my web site "requires" a secure connection. If you get there via http:// it will redirect you to https://. Thanks!