A domain has a number of records associated with it, a DNS server can be queried to determine the IP address of the primary domain (A record), mail servers (MX records), DNS servers (NS nameservers) and other items such as SPF records (TXT records).
WhoisXmlApi.com provides RESTful APIs. It is designed for server-to-server communication between your system and the WhoisXmlApi.com network using standard HTTP or HTTPS protocols. Query responses are delivered in either XML or JSON format based on your requests which are made via GET/POST methods.
To get started you need a developer's account with WhoisXmlApi.com. Authentication is required each
time in order to use the API.
The first 500 DNS lookups are complimentary when you register for a free developer account.
Postman is a desktop and web application that allows you to make requests to an API from a graphical user interface. We recommend using Postman with WhoisXML APIs endpoints when exploring the APIs functionality, as well as when you are troubleshooting issues with your application.
The WhoisXML API Postman collection is available at the following links:
The collection includes a preconfigured environment. You will need to set up the api_key variable to fire each request. Get your personal API KEY on the My products page. If you have questions related to the API, you can ask them here: https://main.whoisxmlapi.com/contact-us
Required. Get your personal API KEY on the My products page.
Required. The target domain name.
Required. DNS type: A, NS, SOA, MX, etc. You can specify multiple comma-separated values, e.g., A,SOA,TXT; all records can be retrieved with type=_all.
Acceptable values: A, NS, SOA, MX, etc.;
Optional. Response output format.
Acceptable values: JSON | XML
After Sign Up you automatically get a free subscription plan limited to 500 queries per month.
The maximum number of requests per second is 30. In case that the limit is breached, your subsequent requests will be rejected until the next second.
We support around fifty DNS types. You can use type codes or names from the table below: