import requests # get your current public ip's info: req = requests.get('https://utilities.tk/network/info') # or specify an ip to check req = requests.get('https://utilities.tk/network/info?ip=1.1.1.1') print(req.status_code) print(req.json())