Answers for "ip js"

0

javascript ip

fetch('https://api.ipify.org?format=json')
    .then(results => results.json())    
    .then(data => console.log(data.ip));
Posted by: Guest on July-24-2021
0

javascript ip address

$.getJSON('https://ipgeolocation.abstractapi.com/v1/?api_key=<your_api_key>', function(data) {
  console.log(JSON.stringify(data, null, 2));
});
Posted by: Guest on March-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language