# investigate average risk
result = dt_api.iris_investigate(mailserver_ip='107.152.46.105').response()
average = utils.get_average_risk_score(result.get('results'))
# detect average risk
result = dt_api.iris_detect_new_domains(include_domain_data=True).response()
average = utils.get_average_risk_score(result.get('watchlist_domains'))
# investigate average age
result = dt_api.iris_investigate(mailserver_ip='107.152.46.105').response()
average = utils.get_average_age(result.get('results'))
# investigate average age
result = dt_api.iris_detect_new_domains(include_domain_data=True).response()
average = utils.get_average_age(result.get('watchlist_domains'))
Closes https://domaintools.atlassian.net/browse/ID-1388
Examples: