Check IP addresses for abuse and threats
Use this free public API to get IP information. Replace 8.8.8.8 with any valid IP address.
curl https://www.digitallodge.cloud/api/ipinfo/8.8.8.8
fetch('https://www.digitallodge.cloud/api/ipinfo/8.8.8.8')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
axios.get('https://www.digitallodge.cloud/api/ipinfo/8.8.8.8')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});
import requests
response = requests.get('https://www.digitallodge.cloud/api/ipinfo/8.8.8.8')
data = response.json()
print(data)
import urllib.request
import json
with urllib.request.urlopen('https://www.digitallodge.cloud/api/ipinfo/8.8.8.8') as response:
data = json.loads(response.read().decode())
print(data)