Help with get request in Json format 2
Posted: Fri Dec 15, 2017 3:09 pm
Hi,
Here is another json question. The code is the same but for a diferent service. The idea is to fetch the IPs and show to the user by getting the string "ip_str". Also if this is done right is it possible to save every "ip_str" as a individual string that can be called later?
I'm a noob i know. If possible include a few references/examples to how Json works.
Here is another json question. The code is the same but for a diferent service. The idea is to fetch the IPs and show to the user by getting the string "ip_str". Also if this is done right is it possible to save every "ip_str" as a individual string that can be called later?
ThanksIP: <a id='show'></a>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("show").innerHTML = myObj.matches.ip_str;
}
};
xmlhttp.open("GET", "https://api.shodan.io/shodan/host/searc ... uery=xampp", true);
xmlhttp.send();
</script>
I'm a noob i know. If possible include a few references/examples to how Json works.