close page icon

Hostname API

default parameters description
r type of the request, in this case: hostname
apikey your private unique api key
function parameters description
domain full domain name, including the tld e.g. whoapi.com
ip specify direct IP to check; we usually resolve IP from domain name; this parameter overrides domain name
Hostname API icon

Host name

Get domain/server hostname.

Sign up

Let's make an example request:

http://api.whoapi.com/?domain=whoapi.com&r=hostname&apikey=demokey
Output in JSON format:
{
    "status": "0",
    "ip": "78.47.103.206",
    "basedomain": "whoapi.com",
    "hostname": "host.whoapi.com",
    "requests_available": 100
}

Hostname API use case

What is the fastest way to get a domain’s IP address, host name, and base domain? It’s by using Hostname API, and this comes especially handy if you are doing large-scale research (like mapping out the entire Internet). Maybe the Hostname API isn’t the most attractive API out there, but it sure comes in handy combined with some of our other APIs!

Hostname API Pricing

Request limit 20,000 / month 60,000 / month 180,000 / month 540,000 / month 1,620,000 / month
Hostname information Check icon Check icon Check icon Check icon Check icon
Basedomain and IP Check icon Check icon Check icon Check icon Check icon
Money back guarantee Check icon Check icon Check icon Check icon Check icon
Console Check icon Check icon Check icon Check icon Check icon
Hostname API $9 / Month
$86 / Year
$18 / Month
$156 / Year
$36 / Month
$280 / Year
$72 / Month
$504 / Year
$144 / Month
$907 / Year
Order now Order now Order now Order now Order now

Don't see a package that suits your needs? Looking for something in between, or bigger than our biggest package? Contact our support.

Start using our API today!

To start using our API you need to create an account with a real email address.

By proceeding, you agree to the Terms of Use.
All your data is encrypted and secured.
Forgot your password?

Scroll to top