Our Hosted Whois API Web Service provides registration details, also known as WHOIS Records, of a domain names.
Whoisjsonapi.com provides a RESTful API to get access to the whois data. It is designed for server-to-server communication between your system and the whoisjsonapi.com network using HTTPs protocol. Query responses are delivered in JSON format based on your requests which are made via GET method.
The following data is included:
- Important Dates (i.e. Expiration, Creation)
- Owner and contact information if available
- Nameservers
- Registrar information
Single domain request
By making a single domain request, you can obtain only the whois information for the specific domain you are querying. This request operates swiftly as it doesn't necessitate additional resources.
API endpoint
https://whoisjsonapi.com/v1/{domain}
Input parameters: required
apiToken |
Get your personal API TOKEN on the Dashboard page. |
domainName |
The domain for which WHOIS data is requested. |
Example
curl --location 'https://whoisjsonapi.com/v1/twitter.com' \
--header 'Authorization: Bearer {your-api-token}'
Bulk request
Bulk WHOIS API gives you parsed domain WHOIS ownership information for a list of domains
API endpoint
https://whoisjsonapi.com/v1/domains?d={domain1},{domain2},{domain3},...{domain20}
Input parameters: required
apiToken |
Get your personal API TOKEN on the Dashboard page. |
domainNames |
Comma separated list of domain names. You must specify at least one domain. |
Example
curl --location 'https://whoisjsonapi.com/v1/domains?d=facebook.com,twitter.com,bbc.com' \
--header 'Authorization: Bearer {your-api-token}'
Domain availability
The domain availability method checks the availability status of a single domain name. It accepts one argument: domain
The response will contain a JSON array of status objects with keys: domain and status*. The status key contains the status for the given domain.
There are two statuses provided by the API: active and inactive. INACTIVE domains indicate that they are available for purchase.
API endpoint
https://whoisjsonapi.com/v1/status/{domainName}
Input parameters: required
apiToken |
Get your personal API TOKEN on the Dashboard page. |
domainName |
The domain for which status is requested. |
Example
curl --location 'https://whoisjsonapi.com/v1/status/whois.com' \
--header 'Authorization: Bearer {your-api-token}'
Response
{
"domain": "whois.com",
"status": "active"
}
Authorization
When making a request to our REST API, the API token must be added either to the request Authorization header or as the GET parameter apiKey.
Example: API key in headers
curl --location 'https://whoisjsonapi.com/v1/whois.com' \
--header 'Authorization: Bearer {your-api-token}'
Example: API key in GET parameters
curl --location 'https://whoisjsonapi.com/v1/whois.com?apiKey={your-api-token}'
Response
Query responses are delivered in JSON format.
Domain
| Field | Type | Example value |
|---|---|---|
| id | String | 2320948_DOMAIN_COM-VRSN |
| domain | String | facebook.com |
| name | String | |
| extension | String | com |
| whois_server | String | whois.registrarsafe.com |
| status | Array | ["clientdeleteprohibited", "clienttransferprohibited"] |
| name_servers | Array | ["a.ns.facebook.com", "b.ns.facebook.com"] |
| created_date | String | 1997-03-29T05:00:00Z |
| updated_date | String | 2022-01-26T16:45:06Z |
| expiration_date | String | 2031-03-30T04:00:00Z |
Registrar
| Field | Type | Example value |
|---|---|---|
| id | String | 3237 |
| name | String | RegistrarSafe, LLC |
| phone | String | +1.6513097004 |
| String | [email protected] |
Registrant
| Field | Type | Example value |
|---|---|---|
| name | String | Domain Admin |
| organization | String | Meta Platforms, Inc. |
| street | String | 1601 Willow Rd |
| city | String | Menlo Park |
| province | String | CA |
| postal_code | String | 94025 |
| country | String | US |
| phone | String | +1.6515434890 |
| [email protected] |
Administrative
| Field | Type | Example value |
|---|---|---|
| name | String | Domain Admin |
| organization | String | Meta Platforms, Inc. |
| street | String | 1601 Willow Rd |
| city | String | Menlo Park |
| province | String | CA |
| postal_code | String | 94025 |
| country | String | US |
| phone | String | +1.6515434890 |
| [email protected] |
Technical
| Field | Type | Example value |
|---|---|---|
| name | String | Domain Admin |
| organization | String | Meta Platforms, Inc. |
| street | String | 1601 Willow Rd |
| city | String | Menlo Park |
| province | String | CA |
| postal_code | String | 94025 |
| country | String | US |
| phone | String | +1.6515434890 |
| [email protected] |
Response example
{
"domain": {
"id": "2320948_DOMAIN_COM-VRSN",
"domain": "facebook.com",
"punycode": "facebook.com",
"name": "facebook.com",
"extension": "com",
"whois_server": "whois.registrarsafe.com",
"status": [
"clientdeleteprohibited",
"clienttransferprohibited",
"clientupdateprohibited",
"serverdeleteprohibited",
"servertransferprohibited",
"serverupdateprohibited"
],
"name_servers": [
"d.ns.facebook.com",
"a.ns.facebook.com",
"b.ns.facebook.com",
"c.ns.facebook.com"
],
"created_date": "1997-03-29T05:00:00Z",
"created_date_in_time": "1997-03-29T05:00:00Z",
"updated_date": "2023-04-26T19:04:19Z",
"updated_date_in_time": "2023-04-26T19:04:19Z",
"expiration_date": "2032-03-30T04:00:00Z",
"expiration_date_in_time": "2032-03-30T04:00:00Z"
},
"registrar": {
"name": "RegistrarSafe, LLC",
"phone": "+1.6503087004",
"email": "[email protected]",
"referral_url": "https://www.registrarsafe.com"
},
"registrant": {
"name": "Domain Admin",
"organization": "Meta Platforms, Inc.",
"street": "1601 Willow Rd",
"city": "Menlo Park",
"province": "CA",
"postal_code": "94025",
"country": "US",
"phone": "+1.6505434800",
"email": "[email protected]"
}
}
Rate limits
A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled. API requests made by a throttled user or app will fail.
Platform rate limits
Errors
When you request information about a domain, you may receive a message that the domain was not found. This means that the domain has not yet been registered and might be available for purchase.
Code Examples
curl --location \
--request GET 'https://whoisjsonapi.com/v1/youtube.com' \
--header 'Authorization: Bearer {your token}'