How to Check a Domain Name’s Quality Score in Node.JS
When advertising, posting your content, or working with an external website, it is important to know how the transaction will benefit your organization. This API will allow you to check a domain name’s quality score. Domain names with higher levels of trust and authority online will carry heavier weight and help ensure your online security where a less trustworthy site might not.
First, we need to install our client:
npm install cloudmersive-validate-api-client –save
Alternatively, you can add this snippet to your package.json:
"dependencies": {
"cloudmersive-validate-api-client": "^1.2.4"
}
Then, we can call our function, DomainQualityScore:
var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';var apiInstance = new CloudmersiveValidateApiClient.DomainApi();var domain = "domain_example"; // String | Domain name to check, for example \"cloudmersive.com\".var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.domainQualityScore(domain, callback);
Rest assured that with this API, you can know who you are working with and maintain your online security. You can access your personal API Key from the Cloudmersive website. This will give you access to 800 free calls per month across our library of APIs.