Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Free domain WHOIS API

LeviLevi Member

Looking for fast and free domain WHOIS API. The more domains covered - the better. Goal: validate domain registration, if it is registered. Namesilo, namecheap and similar registrars does not fit, as their TLD support is limited (they do not support .lt domains for example).

Comments

  • tentortentor Member, Host Rep

    There is also https://deployment.rdap.org/, but it won't help you with .lt TLD

  • MannDudeMannDude Patron Provider, Veteran
    edited December 2023

    Can't you just write something to use the whois command?

    Haven't tested it, but ChatGPT suggests:

    check_domain.php:

    // Get the submitted domain name
    $domain = isset($_POST['domain']) ? $_POST['domain'] : '';
    
    // Validate the domain name
    if (empty($domain)) {
        echo 'Please enter a valid domain name.';
    } else {
        // Run the whois command
        $whois_output = shell_exec('whois ' . escapeshellarg($domain));
    
        // Check if the whois output contains information about registration
        if (strpos($whois_output, 'No match for domain') !== false) {
            echo 'This domain is not registered.';
        } else {
            echo 'This domain is already registered. Whois information: <br>' . nl2br($whois_output);
        }
    }
    
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Domain Checker</title>
    </head>
    <body>
    
    <h2>Domain Checker</h2>
    
    <form action="check_domain.php" method="post">
        <label for="domain">Enter Domain Name:</label>
        <input type="text" id="domain" name="domain" required>
        <button type="submit">Check Domain</button>
    </form>
    
    </body>
    </html>
    
    
  • tentortentor Member, Host Rep

    @MannDude said: Can't you just write something to use the whois command?

    Parsing whois is a hell

  • IIRC I did ~50,000 requests via GNU whois thru residential proxies. Without proxies it's a bitch.

  • Fck that, primitive checkdnsrr($domain, "NS") will suffice.

    Idea: free public domain status checker API with normal limits.

  • Domainr has an API for status checking. Free/non-commercial hosted on RapidAPI, commercial/high-volume hosted by them directly.

    Docs are here: https://domainr.com/docs/api

  • IP2WHOIS API at https://www.ip2location.io/ip2whois-documentation

    Free 500 queries monthly.

    { "domain": "locaproxy.com", "domain_id": "1710914405_DOMAIN_COM-VRSN", "status": "clientTransferProhibited https://icann.org/epp#clientTransferProhibited", "create_date": "2012-04-03T02:34:32Z", "update_date": "2021-12-03T02:54:57Z", "expire_date": "2024-04-03T02:34:32Z", "domain_age": 3863, "whois_server": "whois.godaddy.com", "registrar": { "iana_id": "146", "name": "GoDaddy.com, LLC", "url": "https://www.godaddy.com" }, "registrant": { "name": "Registration Private", "organization": "Domains By Proxy, LLC", "street_address": "DomainsByProxy.com", "city": "Tempe", "region": "Arizona", "zip_code": "85284", "country": "US", "phone": "+1.4806242599", "fax": "+1.4806242598", "email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM" }, "admin": { "name": "Registration Private", "organization": "Domains By Proxy, LLC", "street_address": "DomainsByProxy.com", "city": "Tempe", "region": "Arizona", "zip_code": "85284", "country": "US", "phone": "+1.4806242599", "fax": "+1.4806242598", "email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM" }, "tech": { "name": "Registration Private", "organization": "Domains By Proxy, LLC", "street_address": "DomainsByProxy.com", "city": "Tempe", "region": "Arizona", "zip_code": "85284", "country": "US", "phone": "+1.4806242599", "fax": "+1.4806242598", "email": "Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=LOCAPROXY.COM" }, "billing": { "name": "", "organization": "", "street_address": "", "city": "", "region": "", "zip_code": "", "country": "", "phone": "", "fax": "", "email": "" }, "nameservers": ["vera.ns.cloudflare.com", "walt.ns.cloudflare.com"] }

Sign In or Register to comment.