IP2WHOIS Deno API#
IP2WhoisApi Class#
- class IP2WhoisApi#
Initialize the IP2WhoisApi class.
- lookup(domain)#
Lookup domain WHOIS information.
- Parameters:
domain (string) – (Required) The domain name.
- Returns:
IP2WHOIS Domain WHOIS result in JSON. Refer below table for the fields avaliable in the JSON.
- Return type:
json
RETURN FIELDS
Parameter
Type
Description
domain
string
Domain name.
domain_id
string
Domain name ID.
status
string
Domain name status.
create_date
string
Domain name creation date.
update_date
string
Domain name updated date.
expire_date
string
Domain name expiration date.
domain_age
integer
Domain name age in day(s).
whois_server
string
WHOIS server name.
registrar.iana_id
string
Registrar IANA ID.
registrar.name
string
Registrar name.
registrar.url
string
Registrar URL.
registrant.name
string
Registrant name.
registrant.organization
string
Registrant organization.
registrant.street_address
string
Registrant street address.
registrant.city
string
Registrant city.
registrant.region
string
Registrant region.
registrant.zip_code
string
Registrant ZIP Code.
registrant.country
string
Registrant country.
registrant.phone
string
Registrant phone number.
registrant.fax
string
Registrant fax number.
registrant.email
string
Registrant email address.
admin.name
string
Admin name.
admin.organization
string
Admin organization.
admin.street_address
string
Admin street address.
admin.city
string
Admin city.
admin.region
string
Admin region.
admin.zip_code
string
Admin ZIP Code.
admin.country
string
Admin country.
admin.phone
string
Admin phone number.
admin.fax
string
Admin fax number.
admin.email
string
Admin email address.
tech.name
string
Tech name.
tech.organization
string
Tech organization.
tech.street_address
string
Tech street address.
tech.city
string
Tech city.
tech.region
string
Tech region.
tech.zip_code
string
Tech ZIP Code.
tech.country
string
Tech country.
tech.phone
string
Tech phone number.
tech.fax
string
Tech fax number.
tech.email
string
Tech email address.
billing.name
string
Billing name.
billing.organization
string
Billing organization.
billing.street_address
string
Billing street address.
billing.city
string
Billing city.
billing.region
string
Billing region.
billing.zip_code
string
Billing ZIP Code.
billing.country
string
Billing country.
billing.phone
string
Billing phone number.
billing.fax
string
Billing fax number.
billing.email
string
Billing email address.
nameservers
array
Name servers
- getPunycode(domain)#
Get Punycode for domain name.
- Parameters:
domain (string) – (Required) Domain name.
- Returns:
Returns punycode in text.
- Return type:
string
- getNormalText(domain)#
Get Normal Text.
- Parameters:
domain (string) – (Required) The punycode domain name.
- Returns:
Returns normal domain name in text.
- Return type:
string
- getDomainName(url)#
Get domain name from a URL.
- Parameters:
url (string) – (Required) The URL that you want to extract domain name from.
- Returns:
Returns the extracted domain name in text.
- Return type:
string
- getDomainExtension(str)#
Get domain extension from a URL or domain.
- Parameters:
str (string) – (Required) The URL or domain.
- Returns:
Returns the domain extension in text.
- Return type:
string