🚀 Experience the new and improved APIVoid! Check out what's new

Domain Age API: Obtain domain name registration date

A JSON API to get when a domain was first registered, get domain age in days, months, years along with the domain registration date. Use this API to check the age of a domain for security, marketing and research reasons.

Consumes 2 credits per API call

# Example Curl request from the command line:
                          
curl -X POST "https://api.apivoid.com/v2/domain-age" \
     -H "Content-Type: application/json" \
     -H "X-API-Key: YOUR_API_KEY_HERE" \
     -d '{"host": "example.com"}'

# Example JSON output for a 200 HTTP status code:

{
    "host": "example.com",
    "debug_message": "",
    "domain_age_found": true,
    "domain_registered": "yes",
    "domain_creation_date": "1995-08-14",
    "domain_age_in_days": 10700,
    "domain_age_in_months": 345,
    "domain_age_in_years": 29,
    "elapsed_ms": 310
}
Domain: avanzadiciembre(.)top

Checking...

Domain: facebook(.)com

Checking...

Domain: parcelnotices(.)top

Checking...

IP Address: activacionenlinea(.)com

Checking...

Domain: etherum(.)site

Checking...

Domain: apivoid(.)com

Checking...

Domain: coahoutletsales(.)com

Checking...

Domain: facontie(.)xyz

Checking...

Key Features

Check when a domain was first registered and thus if it is new

Businesses and startups use this Domain Age API to check if a domain name was registered say less than 30 days or or less than 1 year ago, useful to check if the domain is new and not-yet-known.

Support Most TLDs

This API supports most pupular domain TLDs such as .com, .org, .net, .info, .it, .in, site, .pl, .com.br.

Fast Responses

On average, this API can take from less than 1 second to 5 seconds to return a valid response.

Accurate Results

The API returns accurate information about domain registration date, the format is YYYY-MM-DD.

Errors Handling

Same as for all our other APIs, also with this one we do not decrease credits in case of errors.

Common Use Cases

Take a look at some real-world use cases of this API service

Our API can be used in many ways, from cybersecurity tasks to marketing-specific tasks. Here we showcase the most popular use cases according to our customers usage:

Enrich SIEM Data

Using a SIEM platform? Add domain registration information to security incidents related to domains.

Spot New Domains

With this API you can detect new domains, that have been registered less than N days or months ago.

Better Risk Assessment

Whether you need to get domain age, domain registration date or check if domain is new, our API has it all.

Marketing Tasks

Scan a list of domains to extract the domain age and registration date for marketing purposes.

Use cases

USAGE EXAMPLE

Learn how seamless it is to add and use Domain Age API anywhere you want

All it takes is a HTTPS POST request with JSON payload to our endpoint, and you’ll receive the response within seconds, usually within 1-3 seconds. Here are a few code examples to use the API:

$domain = 'google.com';

$apiUrl = 'https://api.apivoid.com/v2/domain-age';
$apiKey = 'your_api_key_here';

$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['host' => $domain]));
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($httpCode === 200) {
    $responseData = json_decode($response, true);

    print_r($responseData);

    // Block domain if it was created less than 1 month ago
    if (($responseData['domain_age_found'] ?? false) && (($responseData['domain_age_in_days'] ?? 0) <= 30)) {
        echo "Domains created less than 1 month ago are banned.";
        exit;
    }
    
    // Block domain if it was created less than 3 months ago
    if (($responseData['domain_age_found'] ?? false) && (($responseData['domain_age_in_months'] ?? 0) <= 3)) {
        echo "Domains created less than 3 months ago are banned.";
        exit;
    }
    
    // Block domain if it was created less than 1 year ago
    if (($responseData['domain_age_found'] ?? false) && (($responseData['domain_age_in_years'] ?? 0) === 0)) {
        echo "Domains created less than 1 year ago are banned.";
        exit;
    }
}

Start using our API services, it takes just a few minutes

Create your account, pick a subscription plan, and make your first API call instantly with your API key—simple as that!

Get started now