Holiday Sale! Get over 30% off when you subscribe to an annual plan!

Whois API

The Whois API retrieves domain registration information for any given domain using the WHOIS protocol.

For basic domain availability information, check out our Domain API instead.

(4.2)

From 5,265 users

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
427ms446ms503ms679ms1156ms

Didn't find what you were looking for? Suggest an improvement


/v1/whois GET

https://api.api-ninjas.com/v1/whois

Returns domain registration details (e.g. registrar, contact information, expiration date, name servers) for a given domain name.

Parameters

  • domain  required

    Valid domain to check (e.g. example.com). For top-level domains other than .com, a premium subscription is required.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Sample Request Live Demo!

domain

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/whois?domain=example.com

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 { "domain_name": "example.com", "registrar": "reserved-internet assigned numbers authority", "whois_server": "whois.iana.org", "updated_date": 1628924504, "creation_date": 808372800, "expiration_date": 1660363200, "name_servers": [ "a.iana-servers.net", "b.iana-servers.net" ], "dnssec": "signeddelegation" }

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/whois?domain=example.com" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.