# CloudmersiveValidateApiClient::DomainApi All URIs are relative to *https://api.cloudmersive.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**domain_check**](DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name [**domain_post**](DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain [**domain_url_full**](DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully [**domain_url_syntax_only**](DomainApi.md#domain_url_syntax_only) | **POST** /validate/domain/url/syntax-only | Validate a URL syntactically # **domain_check** > CheckResponse domain_check(domain) Validate a domain name Check whether a domain name is valid or not. API performs a live validation by contacting DNS services to validate the existence of the domain name. ### Example ```ruby # load the gem require 'cloudmersive-validate-api-client' # setup authorization CloudmersiveValidateApiClient.configure do |config| # Configure API key authorization: Apikey config.api_key['Apikey'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Apikey'] = 'Bearer' end api_instance = CloudmersiveValidateApiClient::DomainApi.new domain = "domain_example" # String | Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. begin #Validate a domain name result = api_instance.domain_check(domain) p result rescue CloudmersiveValidateApiClient::ApiError => e puts "Exception when calling DomainApi->domain_check: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. | ### Return type [**CheckResponse**](CheckResponse.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml # **domain_post** > WhoisResponse domain_post(domain) Get WHOIS information for a domain Validate whether a domain name exists, and also return the full WHOIS record for that domain name. WHOIS records include all the registration details of the domain name, such as information about the domain's owners. ### Example ```ruby # load the gem require 'cloudmersive-validate-api-client' # setup authorization CloudmersiveValidateApiClient.configure do |config| # Configure API key authorization: Apikey config.api_key['Apikey'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Apikey'] = 'Bearer' end api_instance = CloudmersiveValidateApiClient::DomainApi.new domain = "domain_example" # String | Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. begin #Get WHOIS information for a domain result = api_instance.domain_post(domain) p result rescue CloudmersiveValidateApiClient::ApiError => e puts "Exception when calling DomainApi->domain_post: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **domain** | **String**| Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. | ### Return type [**WhoisResponse**](WhoisResponse.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml # **domain_url_full** > ValidateUrlResponseFull domain_url_full(request) Validate a URL fully Validate whether a URL is syntactically valid (does not check endpoint for validity), whether it exists, and whether the endpoint is up and passes virus scan checks. Accepts various types of input and produces a well-formed URL as output. ### Example ```ruby # load the gem require 'cloudmersive-validate-api-client' # setup authorization CloudmersiveValidateApiClient.configure do |config| # Configure API key authorization: Apikey config.api_key['Apikey'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Apikey'] = 'Bearer' end api_instance = CloudmersiveValidateApiClient::DomainApi.new request = CloudmersiveValidateApiClient::ValidateUrlRequestFull.new # ValidateUrlRequestFull | begin #Validate a URL fully result = api_instance.domain_url_full(request) p result rescue CloudmersiveValidateApiClient::ApiError => e puts "Exception when calling DomainApi->domain_url_full: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **request** | [**ValidateUrlRequestFull**](ValidateUrlRequestFull.md)| | ### Return type [**ValidateUrlResponseFull**](ValidateUrlResponseFull.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml # **domain_url_syntax_only** > ValidateUrlResponseSyntaxOnly domain_url_syntax_only(request) Validate a URL syntactically Validate whether a URL is syntactically valid (does not check endpoint for validity). Accepts various types of input and produces a well-formed URL as output. ### Example ```ruby # load the gem require 'cloudmersive-validate-api-client' # setup authorization CloudmersiveValidateApiClient.configure do |config| # Configure API key authorization: Apikey config.api_key['Apikey'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Apikey'] = 'Bearer' end api_instance = CloudmersiveValidateApiClient::DomainApi.new request = CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly.new # ValidateUrlRequestSyntaxOnly | begin #Validate a URL syntactically result = api_instance.domain_url_syntax_only(request) p result rescue CloudmersiveValidateApiClient::ApiError => e puts "Exception when calling DomainApi->domain_url_syntax_only: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **request** | [**ValidateUrlRequestSyntaxOnly**](ValidateUrlRequestSyntaxOnly.md)| | ### Return type [**ValidateUrlResponseSyntaxOnly**](ValidateUrlResponseSyntaxOnly.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded - **Accept**: application/json, text/json, application/xml, text/xml