What i need to do is console.log all ip adresses and objects inside services and i have no idea what to do my current code is
fetch('https://search.censys.io/api/v2/hosts/search?q=' + option1 + '&per_page=' + option2 + '&virtual_hosts=' + option3, fetchauth)
.then(response => response.json())
.then(response => console.log(response.result.hits[0].ip))
.catch(err => console.error(err));
sample API response
Im planing to display these informations inside a discord embed
Via Active questions tagged javascript - Stack Overflow https://ift.tt/fjsQkOt
Comments
Post a Comment