import requests import json domain = "https://mydomain.com" useragent = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)' s = requests.Session() url = 'https://sitereview.bluecoat.com/resource/lookup' postData = {'url': domain, 'captcha': ''} headers = {'User-Agent': useragent, 'Accept': 'application/json, text/plain, */*', 'Content-Type': 'application/json; charset=UTF-8', 'Referer': 'https://sitereview.bluecoat.com/lookup'} response = s.post(url, headers=headers, json=postData, verify=False) responseJSON = json.loads(response.text) print(responseJSON)