APIVoid logo

Parked Domain API Reference

Check if a domain is parked, inactive, or for sale, which is useful for filtering out domains that are currently not in use and therefore do not host real content.

Service details and pricing: Parked Domain API

POSThttps://api.apivoid.com/v2/parked-domain
2 credits per successful requestPOST · JSON

Request example

Query the endpoint via an HTTPS POST request (replace YOUR_API_KEY_HERE with your API key):

curl
curl -X POST "https://api.apivoid.com/v2/parked-domain" \
     -H "Content-Type: application/json" \
     -H "X-API-Key: YOUR_API_KEY_HERE" \
     -d '{"host": "example.com"}'

The same request in PHP:

php
$host = 'example.com';

$apiKey = 'YOUR_API_KEY_HERE';

$curl = curl_init('https://api.apivoid.com/v2/parked-domain');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(['host' => $host]));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);

if ($httpCode === 200) {
    $responseData = json_decode($response, true);
    print_r($responseData);
} else {
    print_r('An error occurred: '.$response);
}

Request parameters

Required

hoststringRequired

Host to submit, e.g. google.com.

Response example

A successful request returns HTTP 200 with a JSON body:

json · 200
{
    "host": "example.com",
    "parked_domain": false,
    "a_records_found": true,
    "ns_records_found": true,
    "mx_records_found": true,
    "txt_records_found": true,
    "elapsed_ms": 162
}

Response fields

The fields returned in the JSON response:

hoststring

Host submitted for the parked domain check.

parked_domainboolean

Returns true if domain is classified as parked.

a_records_foundboolean

Returns true if domain has DNS A records.

ns_records_foundboolean

Returns true if domain has DNS NS records.

mx_records_foundboolean

Returns true if domain has DNS MX records.

txt_records_foundboolean

Returns true if domain has DNS TXT records.

elapsed_msinteger

Time taken to process the request, in milliseconds.