Python AvailabilityCheck

Availability Check modes

Speed Check (Fast)

The Speed Check will rely on cached data only. The cached data is derived primarily by the zone crawler that collects raw names from zones and similar data sources every day.

This means, that when a Speed Check is performed, the system will look for the name in the database and based on the finding it will reply with available or not available.

The Speed Check is as the name implies the fastest way of performing an availability check and it should be used when many names are checked in one operation. As the fast check is based on cached information there will be situations where the information is not up to date and therefore returns an incorrect answer. If the cached data has not been recently updated, the result of the Speed Check will therefore reply with available or not available and a description telling that the result is based on older data. Another limitation to the Speed Check is, that it will not be able to tell if an available domain is regular or premium.

Smart Check (Smart)

The Smart check will start looking for the name in the cached data and if not found here, it will continue to look for the name using NS lookup.

This means that if the name is found in the cached data the system will answer with not available; if the name is not found, the system will continue to search for the availability via NS lookup.

The Smart check will not reply with the same speed as the Speed check, as NS lookups take longer time. Instead the Smart check will respond with a higher certainty, as the answer is based on several data sources. The Smart check can be used for both high and low volume searches – though the importance of response time should be considered for high volume searches. This check is the optimum choice when multiple TLDs are involved.

Smart-Live Check (SmartLive)

The Smart-Live check will start looking for the name in the cached data. If the name is not found here, it will continue to search for the name using NS lookup. If the name is not found here, it continues to search for the name using live lookup.

This means that if the name is found in at any stage of the method, it will answer with not available.

This check should only be used for low volume checks, as the response time is high

Live Check (Live)

The Live check will only perform live lookup of a name. The checks are based on EPP, WHOIS server, WHOIS at a web site or finger at the registry level. As Ascio is accredited at many registries, the availability-check can query most TLDs directly via EPP.

This means that the name is always checked at the authoritative source: the Registry, which should guarantee that the answer is accurate. In practice, experience tells us that some of the small Registries do not always respond correctly, so there will always be a risk that the answer is not correct – but the Live Check will always provide the best answer.

Result Codes

CodeMessageDescription
200Available or Available - check based on old data.The domain name is available, if the check is based on old data this is stated as well.
201Unavailable or Unavailable – check based on old data.The domain name is unavailable, if the check is based on old data this is stated as well.
203Premium name available.This can be for newTLDs
204Unknown result received.Unknown result received from live lookup at Registry. This might happen if the Registry experience problems or has changed the format of their whois.
206Premium queue entry.The domain name is present in current queue entry.

Error Codes

CodeMessageDescription
402Quality not supported for TLDThe TLD is not supported for the given quality. When Ascio is not supporting a TLD under quality 1 it is because the Registry is not sharing zone files or other sources to registered names. If a TLD under quality 3 is not supported it is because there is no access to online check at the Registry. If a TLD under quality 2 is not supported it is because neither quality 1 or 3 is supported.
412Speed Check failedAn error message given when the Speed Check fails. If the Speed Check fails it should be reported to our support team stating date, time and request that failed.
413Live check failedAn error message given when the Live check fails. If the Live check fails it should be reported to Ascio stating date, time and request that failed.
414Invalid domain nameAn error message given an invalid domain name format is entered. Valid domain name includes the character set of a to z, 0 to 9 and with a maximum number of character of 63. .
415IDN not availableIDN is not supported for this TLD.

Response AvailabilityCheck(string sessionId,string[] domains,string[] tlds,QualityType[] quality,)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

AvailabilityCheck request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
domainsExample: "test"
tlds
qualityExample: "SmartLive"

AvailabilityCheckResponse

Property
AvailabilityCheckResult
results

Python example

import zeep
import base64

wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl"
client = zeep.Client(wsdl=wsdl,strict=False])

result = client.service.AvailabilityCheck(sessionId = "sessionId", domains =  ["domains"], tlds =  ["tlds"], quality = "Fast")
print(result)
WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)