Validate a Domain Name’s Quality Score in Python

Cloudmersive
1 min readDec 24, 2020

--

It is important that you know which domains you can trust and which should be avoided. With support for over 9 million domain names, the following API will validate the quality score of an input domain with values ranging from 0.0 to 10.0. The value of 0.0 is the lowest quality and 10.0 is the highest quality.

Run this command to install the SDK:

pip install cloudmersive-validate-api-client

Then, you can call the function:

from __future__ import print_function
import time
import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_validate_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = cloudmersive_validate_api_client.DomainApi(cloudmersive_validate_api_client.ApiClient(configuration))
domain = 'domain_example' # str | Domain name to check, for example \"cloudmersive.com\".
try:
# Validate a domain name's quality score
api_response = api_instance.domain_quality_score(domain)
pprint(api_response)
except ApiException as e:
print("Exception when calling DomainApi->domain_quality_score: %s\n" % e)

This will ensure that you and your information remain safe. You can retrieve the API Key from the Cloudmersive website at no cost and with no commitment. This will provide you with 800 monthly calls across our library of APIs.

--

--

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.