Recherche WHOIS

Obtenez des informations WHOIS pour un domaine incluant le registraire, les dates et le statut.

Note de confidentialité : Les informations de contact peuvent être masquées en raison du RGPD et d'autres réglementations sur la vie privée. L'API détecte quand des services de confidentialité ou de proxy sont utilisés et renvoie un objet privacy avec les détails de détection.
GET/v1/whois2 Crédits

Paramètres de requête

ParamètreTypeDescription
domain requisstringNom de domaine complet (par exemple, example.com)

Champs de réponse

ChampTypeDescription
registeredbooleanSi le domaine est enregistré
registrarstringNom du registraire
created_datestringDate de création ISO 8601
expiry_datestringDate d'expiration ISO 8601
statusarrayCodes d'état EPP
nameserversarrayServeurs de noms autoritaires
contactsobjectTitulaire, administrateur, technique, contacts de facturation
privacyobjectDétection de la protection de la vie privée

Exemple de requête

curl -H "X-API-Key: your-api-key" "https://domscan.net/v1/whois?domain=github.com"
const domscanFetch = (url, options = {}) =>
  fetch(url, {
    ...options,
    headers: { ...options.headers, "X-API-Key": "your-api-key" },
  });

const response = await domscanFetch(
  "https://domscan.net/v1/whois?domain=github.com"
);
const data = await response.json();

console.log(`Registrar: ${data.registrar}`);
console.log(`Created: ${data.created_date}`);
console.log(`Expires: ${data.expiry_date}`);
console.log(`Nameservers: ${data.nameservers.join(', ')}`);

// Check for privacy protection
if (data.privacy.is_private) {
  console.log(`Privacy service: ${data.privacy.privacy_service}`);
}
import requests

domscan = requests.Session()
domscan.headers.update({"X-API-Key": "your-api-key"})

from datetime import datetime

response = domscan.get(
    "https://domscan.net/v1/whois",
    params={"domain": "github.com"}
)
data = response.json()

# Calculate days until expiration
expiry = datetime.fromisoformat(data['expiry_date'].replace('Z', '+00:00'))
days_left = (expiry - datetime.now(expiry.tzinfo)).days

print(f"Registrar: {data['registrar']}")
print(f"Expires in {days_left} days")
print(f"Privacy protected: {data['privacy']['is_private']}")
package main

import (
  "encoding/json"
  "fmt"
  "net/http"
  "os"
)

func domscanGet(url string) (*http.Response, error) {
  request, err := http.NewRequest(http.MethodGet, url, nil)
  if err != nil {
    return nil, err
  }
  request.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))
  return http.DefaultClient.Do(request)
}

func main() {
  resp, _ := domscanGet("https://domscan.net/v1/whois?domain=github.com")
  defer resp.Body.Close()

  var data map[string]interface{}
  json.NewDecoder(resp.Body).Decode(&data)

  fmt.Printf("Registrar: %s\n", data["registrar"])
  fmt.Printf("Created: %s\n", data["created_date"])
  fmt.Printf("Expires: %s\n", data["expiry_date"])
}
require 'net/http'
require 'json'
require 'date'

uri = URI("https://domscan.net/v1/whois?domain=github.com")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
data = JSON.parse(response.body)

expiry = DateTime.parse(data['expiry_date'])
days_left = (expiry - DateTime.now).to_i

puts "Registrar: #{data['registrar']}"
puts "Expires in #{days_left} days"

Exemple de réponse

{
                "domain": "example.com",
                "registered": true,
                "registrar": "RESERVED-Internet Assigned Numbers Authority",
                "registrar_url": "https://www.iana.org",
                "registrar_iana_id": "376",
                "created_date": "1995-08-14T04:00:00Z",
                "updated_date": "2023-08-14T07:01:38Z",
                "expiry_date": "2024-08-13T04:00:00Z",
                "status": ["clientDeleteProhibited", "serverUpdateProhibited"],
                "nameservers": ["a.iana-servers.net", "b.iana-servers.net"],
                "dnssec": true,
                "contacts": {
                "registrant": {
                "name": "REDACTED FOR PRIVACY",
                "organization": "Internet Assigned Numbers Authority",
                "email": null,
                "phone": null,
                "address": {
                "country": "US"
                },
                "role": "registrant"
                },
                "admin": { "name": "Domain Administrator", "email": "[email protected]" },
                "tech": { "name": "Technical Contact", "email": "[email protected]" },
                "billing": null
                },
                "privacy": {
                "is_private": false,
                "privacy_service": null,
                "detected_patterns": []
                },
                "summary": {
                "has_registrant": true,
                "has_admin": true,
                "has_tech": true,
                "has_billing": false,
                "contact_count": 3,
                "is_privacy_protected": false
                },
                "raw_rdap_link": "https://rdap.verisign.com/com/v1/domain/example.com",
                "checked_at": "2025-01-07T10:30:00Z",
                "query_time_ms": 145
                }
POST/v1/whois/bulk2/domain

Recherche WHOIS en masse pour plusieurs domaines (max 20 par demande).

Corps de la requête

{
                "domains": ["example.com", "google.com", "github.com"]
                }

Champs de réponse

ChampType
results[]object[]
results[]object
results[].domainstring
results[].registeredboolean | null
results[].availableboolean | null
results[].availability_reasonstring
results[].registry_messagestring
results[].registrarstring | null
results[].registrar_urlstring | null
results[].registrar_iana_idstring | null
results[].created_datestring | null
results[].updated_datestring | null
results[].expiry_datestring | null
results[].domain_age_daysinteger | null
results[].domain_age_yearsinteger | null
results[].is_newly_registeredboolean
results[].days_until_expiryinteger | null
results[].transfer_lockedboolean
results[].nameservers[]string[]
results[].status[]string[]
results[].dnssecboolean
results[].contactsobject
results[].contacts.registrantobject
results[].contacts.registrant.namestring | null
results[].contacts.registrant.organizationstring | null
results[].contacts.registrant.emailstring | null
results[].contacts.registrant.phonestring | null
results[].contacts.registrant.faxstring | null
results[].contacts.registrant.addressobject
results[].contacts.registrant.address.streetstring | null
results[].contacts.registrant.address.citystring | null
results[].contacts.registrant.address.statestring | null
results[].contacts.registrant.address.postal_codestring | null
results[].contacts.registrant.address.countrystring | null
results[].contacts.registrant.rolestring
results[].contacts.adminobject
results[].contacts.admin.namestring | null
results[].contacts.admin.organizationstring | null
results[].contacts.admin.emailstring | null
results[].contacts.admin.phonestring | null
results[].contacts.admin.faxstring | null
results[].contacts.admin.addressobject
results[].contacts.admin.address.streetstring | null
results[].contacts.admin.address.citystring | null
results[].contacts.admin.address.statestring | null
results[].contacts.admin.address.postal_codestring | null
results[].contacts.admin.address.countrystring | null
results[].contacts.admin.rolestring
results[].contacts.techobject
results[].contacts.tech.namestring | null
results[].contacts.tech.organizationstring | null
results[].contacts.tech.emailstring | null
results[].contacts.tech.phonestring | null
results[].contacts.tech.faxstring | null
results[].contacts.tech.addressobject
results[].contacts.tech.address.streetstring | null
results[].contacts.tech.address.citystring | null
results[].contacts.tech.address.statestring | null
results[].contacts.tech.address.postal_codestring | null
results[].contacts.tech.address.countrystring | null
results[].contacts.tech.rolestring
results[].contacts.billingobject
results[].contacts.billing.namestring | null
results[].contacts.billing.organizationstring | null
results[].contacts.billing.emailstring | null
results[].contacts.billing.phonestring | null
results[].contacts.billing.faxstring | null
results[].contacts.billing.addressobject
results[].contacts.billing.address.streetstring | null
results[].contacts.billing.address.citystring | null
results[].contacts.billing.address.statestring | null
results[].contacts.billing.address.postal_codestring | null
results[].contacts.billing.address.countrystring | null
results[].contacts.billing.rolestring
results[].privacyobject
results[].privacy.is_privateboolean
results[].privacy.privacy_servicestring | null
results[].privacy.detected_patterns[]string[]
results[].raw_rdap_linkstring | null
results[].raw_whoisstring | null
results[].abuse_contactobject
results[].abuse_contact.emailstring
results[].abuse_contact.phonestring
results[].registry_domain_idstring | null
results[].registrar_whois_serverstring | null
results[].traditional_contactsobject
results[].nameserver_ips[]object[]
results[].nameserver_ips[]object
results[].nameserver_ips[].namestring
results[].nameserver_ips[].ipv4string | null
results[].nameserver_ips[].ipv6string | null
results[].checked_atstring
results[].query_time_msinteger
results[].summaryobject
results[].edge_summaryobject
results[].edge_summary.relay_configuredboolean
results[].edge_summary.data_sources[]string[]
results[].edge_summary.authoritative_sourcestring
results[].edge_summary.relay_whois_usedboolean
results[].edge_summary.raw_whois_availableboolean
results[].edge_summary.parse_error_countinteger | null
results[].edge_summary.registeredboolean | null
results[].edge_summary.availableboolean | null
results[].edge_summary.registration_age_daysinteger | null
results[].edge_summary.days_until_expiryinteger | null
results[].edge_summary.expires_within_30_daysboolean | null
results[].edge_summary.transfer_lockedboolean | null
results[].edge_summary.privacy_protectedboolean | null
results[].edge_summary.dnssecboolean | null
results[].edge_summary.nameserver_countinteger
results[].edge_summary.contact_roles_available[]string[]
results[].edge_summary.abuse_contact_availableboolean
results[].edge_summary.registrar_whois_serverstring | null
results[].metaobject
totalinteger
successfulinteger
failedinteger
query_time_msinteger
metaobject
meta.served_bystring
meta.totalinteger
meta.successfulinteger
meta.duration_msinteger

Exemple de réponse

{
  "results": [
    {
      "domain": "example.com",
      "registered": false,
      "available": true,
      "availability_reason": "closed_registry",
      "registry_message": "Request completed",
      "registrar": "example",
      "registrar_url": "https://example.com",
      "registrar_iana_id": "example",
      "created_date": "2026-08-27T12:00:00Z",
      "updated_date": "2026-08-27T12:00:00Z",
      "expiry_date": "2026-08-27T12:00:00Z",
      "domain_age_days": 1,
      "domain_age_years": 1,
      "is_newly_registered": false,
      "days_until_expiry": 1,
      "transfer_locked": false,
      "nameservers": [
        "example"
      ],
      "status": [
        "available"
      ],
      "dnssec": false,
      "contacts": {
        "registrant": {
          "name": "example",
          "organization": "example",
          "email": "[email protected]",
          "phone": "+34612345678",
          "fax": "example",
          "address": {
            "street": "example",
            "city": "example",
            "state": "example",
            "postal_code": "example",
            "country": "US"
          },
          "role": "example"
        },
        "admin": {
          "name": "example",
          "organization": "example",
          "email": "[email protected]",
          "phone": "+34612345678",
          "fax": "example",
          "address": {
            "street": "example",
            "city": "example",
            "state": "example",
            "postal_code": "example",
            "country": "US"
          },
          "role": "example"
        },
        "tech": {
          "name": "example",
          "organization": "example",
          "email": "[email protected]",
          "phone": "+34612345678",
          "fax": "example",
          "address": {
            "street": "example",
            "city": "example",
            "state": "example",
            "postal_code": "example",
            "country": "US"
          },
          "role": "example"
        },
        "billing": {
          "name": "example",
          "organization": "example",
          "email": "[email protected]",
          "phone": "+34612345678",
          "fax": "example",
          "address": {
            "street": "example",
            "city": "example",
            "state": "example",
            "postal_code": "example",
            "country": "US"
          },
          "role": "example"
        }
      },
      "privacy": {
        "is_private": false,
        "privacy_service": "example",
        "detected_patterns": [
          "example"
        ]
      },
      "raw_rdap_link": "example",
      "raw_whois": "example",
      "abuse_contact": {
        "email": "[email protected]",
        "phone": "+34612345678"
      },
      "registry_domain_id": "example",
      "registrar_whois_server": "example",
      "traditional_contacts": {},
      "nameserver_ips": [
        {
          "name": "example",
          "ipv4": "192.0.2.1",
          "ipv6": "2001:db8::1"
        }
      ],
      "checked_at": "2026-08-27T12:00:00Z",
      "query_time_ms": 1,
      "summary": {},
      "edge_summary": {
        "relay_configured": false,
        "data_sources": [
          "rdap"
        ],
        "authoritative_source": "rdap",
        "relay_whois_used": false,
        "raw_whois_available": true,
        "parse_error_count": 1,
        "registered": false,
        "available": true,
        "registration_age_days": 1,
        "days_until_expiry": 1,
        "expires_within_30_days": false,
        "transfer_locked": false,
        "privacy_protected": false,
        "dnssec": false,
        "nameserver_count": 1,
        "contact_roles_available": [
          "example"
        ],
        "abuse_contact_available": true,
        "registrar_whois_server": "example"
      },
      "meta": {}
    }
  ],
  "total": 1,
  "successful": 1,
  "failed": 1,
  "query_time_ms": 1,
  "meta": {
    "served_by": "example",
    "total": 1,
    "successful": 1,
    "duration_ms": 1
  }
}
GET/v1/rdapCrédits: 2

Paramètres de requête

ParamètreTyperequis
querystringoptionnel
typestring
Valeurs autorisées domainipautnum
optionnel
domainstringoptionnel

Champs de réponse

ChampType
querystring
typestring
statusstring
rdapobject
rdap.objectClassNamestring
rdap.handlestring
rdap.namestring
rdap.startAddressstring
rdap.endAddressstring
rdap.ipVersionstring

Exemple de requête

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/rdap?query=example.com"

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/rdap?type=ip&query=8.8.8.8"

curl -G -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/rdap" \
  --data "type=ip" \
  --data-urlencode "query=2001:4860:4860::8888/128"

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/rdap?type=autnum&query=AS174"

Exemple de réponse

{
  "query": "8.8.8.8",
  "type": "ip",
  "status": "found",
  "rdap": {
    "objectClassName": "ip network",
    "handle": "NET-8-8-8-0-2",
    "name": "LVLT-GOGL-8-8-8",
    "startAddress": "8.8.8.0",
    "endAddress": "8.8.8.255",
    "ipVersion": "v4"
  }
}

Codes de statut HTTP

  • 200 OK
  • 400 Requête incorrecte
  • 401 Non autorisé
  • 402 Paiement requis
  • 429 Trop de requêtes
POST/v1/rdap/bulkCrédits: 2/item

Paramètres de requête

ParamètreTyperequis
dry_runstring
Valeurs autorisées true
optionnel

Paramètres du corps

ParamètreTyperequis
queriesstring[]requis
typestring
Valeurs autorisées domainipautnum
Défaut domain
optionnel

Champs de réponse

ChampType
results[]unknown[]
metaobject
meta.totalinteger
meta.succeededinteger
meta.failedinteger
meta.max_itemsinteger
meta.credits_per_iteminteger
meta.duration_msinteger

Exemple de requête

curl -X POST "https://domscan.net/v1/rdap/bulk" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $DOMSCAN_API_KEY" \
  -d '{
  "queries": [
    "example.com",
    "cloudflare.com"
  ],
  "type": "domain"
}'
const response = await fetch("https://domscan.net/v1/rdap/bulk", {
  method: "POST",
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "queries": [
      "example.com",
      "cloudflare.com"
    ],
    "type": "domain"
  }),
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.post(
    "https://domscan.net/v1/rdap/bulk",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
    json={
        "queries": [
            "example.com",
            "cloudflare.com",
        ],
        "type": "domain",
    },
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "queries": [
	    "example.com",
	    "cloudflare.com"
	  ],
	  "type": "domain"
	}`)
	req, err := http.NewRequest(http.MethodPost, "https://domscan.net/v1/rdap/bulk", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/rdap/bulk")
request = Net::HTTP::Post.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")
request["Content-Type"] = "application/json"
request.body = JSON.generate({
  "queries" => [
    "example.com",
    "cloudflare.com"
  ],
  "type" => "domain"
})

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

Exemple de réponse

{
  "results": [
    {
      "input": "example",
      "data": {}
    }
  ],
  "meta": {
    "total": 1,
    "succeeded": 1,
    "failed": 1,
    "max_items": 10,
    "credits_per_item": 1,
    "duration_ms": 1
  }
}

Codes de statut HTTP

  • 200 OK
  • 400 Requête incorrecte
  • 401 Non autorisé
  • 402 Paiement requis
  • 409 HTTP 409
  • 422 HTTP 422
  • 429 Trop de requêtes
GET/v1/whois/historyCrédits: 3

Paramètres de requête

ParamètreTyperequis
domainstringrequis
limitinteger
Défaut 50
optionnel
cursorstringoptionnel

Champs de réponse

ChampType
has_moreboolean
next_cursorstring | null
domainstring
total_snapshotsinteger
first_seenstring | null
last_seenstring | null
snapshots[]object[]
snapshots[]object
snapshots[].idinteger
snapshots[].domainstring
snapshots[].registrarstring | null
snapshots[].registrar_iana_idstring | null
snapshots[].created_datestring | null
snapshots[].expiry_datestring | null
snapshots[].updated_datestring | null
snapshots[].status[]string[]
snapshots[].nameservers[]string[]
snapshots[].dnssecboolean
snapshots[].transfer_lockedboolean
snapshots[].privacy_protectedboolean
snapshots[].snapshot_datestring
snapshots[].changes_from_previous[]object[]
snapshots[].changes_from_previous[]object
snapshots[].changes_from_previous[].fieldstring
snapshots[].changes_from_previous[].old_valuestring | null
snapshots[].changes_from_previous[].new_valuestring | null
snapshots[].created_atstring
summaryobject
summary.registrar_changesinteger
summary.nameserver_changesinteger
summary.expiry_extensionsinteger
summary.privacy_togglesinteger
summary.status_changesinteger
lifecycle_drift_summaryobject
lifecycle_drift_summary.drift_detectedboolean
lifecycle_drift_summary.change_event_countinteger
lifecycle_drift_summary.latest_change_datestring | null
lifecycle_drift_summary.registrar_changedboolean
lifecycle_drift_summary.nameservers_changedboolean
lifecycle_drift_summary.expiry_extendedboolean
lifecycle_drift_summary.status_changedboolean
lifecycle_drift_summary.privacy_changedboolean
lifecycle_drift_summary.transfer_lock_changedboolean
lifecycle_drift_summary.dnssec_changedboolean
lifecycle_drift_summary.expiry_extension_days_totalinteger
lifecycle_drift_summary.latest_changes[]object[]
lifecycle_drift_summary.latest_changes[]object
lifecycle_drift_summary.latest_changes[].fieldstring
lifecycle_drift_summary.latest_changes[].old_valuestring | null
lifecycle_drift_summary.latest_changes[].new_valuestring | null
lifecycle_drift_summary.current_snapshotobject
lifecycle_drift_summary.current_snapshot.registrarstring | null
lifecycle_drift_summary.current_snapshot.expiry_datestring | null
lifecycle_drift_summary.current_snapshot.nameservers[]string[]
lifecycle_drift_summary.current_snapshot.status[]string[]
lifecycle_drift_summary.current_snapshot.privacy_protectedboolean
lifecycle_drift_summary.previous_snapshotobject
lifecycle_drift_summary.previous_snapshot.registrarstring | null
lifecycle_drift_summary.previous_snapshot.expiry_datestring | null
lifecycle_drift_summary.previous_snapshot.nameservers[]string[]
lifecycle_drift_summary.previous_snapshot.status[]string[]
lifecycle_drift_summary.previous_snapshot.privacy_protectedboolean

Exemple de requête

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/whois/history?domain=example.com&limit=50"
const response = await fetch("https://domscan.net/v1/whois/history?domain=example.com&limit=50", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.get(
    "https://domscan.net/v1/whois/history?domain=example.com&limit=50",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v1/whois/history?domain=example.com&limit=50", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/whois/history?domain=example.com&limit=50")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

Exemple de réponse

{
  "domain": "example.com",
  "total_snapshots": 1,
  "first_seen": "2026-07-09",
  "last_seen": "2026-07-09",
  "snapshots": [
    {
      "id": 42,
      "domain": "example.com",
      "registrar": "Example Registrar, Inc.",
      "registrar_iana_id": "9999",
      "created_date": "1995-08-14T04:00:00Z",
      "expiry_date": "2027-08-13T04:00:00Z",
      "updated_date": "2026-06-01T12:00:00Z",
      "status": [
        "client transfer prohibited"
      ],
      "nameservers": [
        "a.iana-servers.net",
        "b.iana-servers.net"
      ],
      "dnssec": true,
      "transfer_locked": true,
      "privacy_protected": true,
      "snapshot_date": "2026-07-09",
      "changes_from_previous": [
        {
          "field": "nameservers",
          "old_value": "ns1.example.net, ns2.example.net",
          "new_value": "a.iana-servers.net, b.iana-servers.net"
        }
      ],
      "created_at": "2026-07-09T10:15:30Z"
    }
  ],
  "summary": {
    "registrar_changes": 1,
    "nameserver_changes": 1,
    "expiry_extensions": 1,
    "privacy_toggles": 1,
    "status_changes": 1
  },
  "lifecycle_drift_summary": {
    "drift_detected": false,
    "change_event_count": 1,
    "latest_change_date": "2026-08-27T12:00:00Z",
    "registrar_changed": false,
    "nameservers_changed": false,
    "expiry_extended": false,
    "status_changed": false,
    "privacy_changed": false,
    "transfer_lock_changed": false,
    "dnssec_changed": false,
    "expiry_extension_days_total": 1,
    "latest_changes": [
      {
        "field": "example",
        "old_value": "example",
        "new_value": "example"
      }
    ],
    "current_snapshot": {
      "registrar": "example",
      "expiry_date": "2026-08-27T12:00:00Z",
      "nameservers": [
        "example"
      ],
      "status": [
        "available"
      ],
      "privacy_protected": false
    },
    "previous_snapshot": {
      "registrar": "example",
      "expiry_date": "2026-08-27T12:00:00Z",
      "nameservers": [
        "example"
      ],
      "status": [
        "available"
      ],
      "privacy_protected": false
    }
  },
  "has_more": false,
  "next_cursor": "example"
}

Codes de statut HTTP

  • 200 OK
  • 400 Requête incorrecte
  • 401 Non autorisé
  • 402 Paiement requis
  • 429 Trop de requêtes
GET/v2/whoisCrédits: 3

Paramètres de requête

ParamètreTyperequis
domainstringrequis

Champs de réponse

ChampType
domainstring
registeredboolean | null
availableboolean | null
availability_reasonstring
registry_messagestring
registrarstring | null
registrar_urlstring | null
registrar_iana_idstring | null
created_datestring | null
updated_datestring | null
expiry_datestring | null
domain_age_daysinteger | null
domain_age_yearsinteger | null
is_newly_registeredboolean
days_until_expiryinteger | null
transfer_lockedboolean
nameservers[]string[]
status[]string[]
dnssecboolean
contactsobject
contacts.registrantobject
contacts.registrant.namestring | null
contacts.registrant.organizationstring | null
contacts.registrant.emailstring | null
contacts.registrant.phonestring | null
contacts.registrant.faxstring | null
contacts.registrant.addressobject
contacts.registrant.address.streetstring | null
contacts.registrant.address.citystring | null
contacts.registrant.address.statestring | null
contacts.registrant.address.postal_codestring | null
contacts.registrant.address.countrystring | null
contacts.registrant.rolestring
contacts.adminobject
contacts.admin.namestring | null
contacts.admin.organizationstring | null
contacts.admin.emailstring | null
contacts.admin.phonestring | null
contacts.admin.faxstring | null
contacts.admin.addressobject
contacts.admin.address.streetstring | null
contacts.admin.address.citystring | null
contacts.admin.address.statestring | null
contacts.admin.address.postal_codestring | null
contacts.admin.address.countrystring | null
contacts.admin.rolestring
contacts.techobject
contacts.tech.namestring | null
contacts.tech.organizationstring | null
contacts.tech.emailstring | null
contacts.tech.phonestring | null
contacts.tech.faxstring | null
contacts.tech.addressobject
contacts.tech.address.streetstring | null
contacts.tech.address.citystring | null
contacts.tech.address.statestring | null
contacts.tech.address.postal_codestring | null
contacts.tech.address.countrystring | null
contacts.tech.rolestring
contacts.billingobject
contacts.billing.namestring | null
contacts.billing.organizationstring | null
contacts.billing.emailstring | null
contacts.billing.phonestring | null
contacts.billing.faxstring | null
contacts.billing.addressobject
contacts.billing.address.streetstring | null
contacts.billing.address.citystring | null
contacts.billing.address.statestring | null
contacts.billing.address.postal_codestring | null
contacts.billing.address.countrystring | null
contacts.billing.rolestring
privacyobject
privacy.is_privateboolean
privacy.privacy_servicestring | null
privacy.detected_patterns[]string[]
raw_rdap_linkstring | null
raw_whoisstring | null
abuse_contactobject
abuse_contact.emailstring
abuse_contact.phonestring
registry_domain_idstring | null
registrar_whois_serverstring | null
traditional_contactsobject
nameserver_ips[]object[]
nameserver_ips[]object
nameserver_ips[].namestring
nameserver_ips[].ipv4string | null
nameserver_ips[].ipv6string | null
checked_atstring
query_time_msinteger
summaryobject
edge_summaryobject
edge_summary.relay_configuredboolean
edge_summary.data_sources[]string[]
edge_summary.authoritative_sourcestring
edge_summary.relay_whois_usedboolean
edge_summary.raw_whois_availableboolean
edge_summary.parse_error_countinteger | null
edge_summary.registeredboolean | null
edge_summary.availableboolean | null
edge_summary.registration_age_daysinteger | null
edge_summary.days_until_expiryinteger | null
edge_summary.expires_within_30_daysboolean | null
edge_summary.transfer_lockedboolean | null
edge_summary.privacy_protectedboolean | null
edge_summary.dnssecboolean | null
edge_summary.nameserver_countinteger
edge_summary.contact_roles_available[]string[]
edge_summary.abuse_contact_availableboolean
edge_summary.registrar_whois_serverstring | null
metaobject

Exemple de requête

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v2/whois?domain=example.com"
const response = await fetch("https://domscan.net/v2/whois?domain=example.com", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.get(
    "https://domscan.net/v2/whois?domain=example.com",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v2/whois?domain=example.com", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v2/whois?domain=example.com")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

Exemple de réponse

{
  "domain": "example.com",
  "registrar": "Example Registrar, Inc.",
  "registrar_url": "https://registrar.example.net",
  "registrar_iana_id": "9999",
  "created_date": "2019-03-11T14:22:08Z",
  "updated_date": "2026-03-10T09:41:55Z",
  "expiry_date": "2027-03-11T14:22:08Z",
  "domain_age_days": 2769,
  "domain_age_years": 7,
  "is_newly_registered": false,
  "days_until_expiry": 153,
  "transfer_locked": true,
  "status": [
    "client transfer prohibited"
  ],
  "nameservers": [
    "ns1.example.net",
    "ns2.example.net"
  ],
  "dnssec": false,
  "contacts": {
    "registrant": null,
    "admin": null,
    "tech": null,
    "billing": null
  },
  "privacy": {
    "is_private": false,
    "privacy_service": null,
    "detected_patterns": []
  },
  "raw_rdap_link": "https://rdap.example.net/domain/example.com",
  "checked_at": "2026-10-09T10:15:30.000Z",
  "query_time_ms": 412,
  "registered": true,
  "summary": {
    "has_registrant": false,
    "has_admin": false,
    "has_tech": false,
    "has_billing": false,
    "contact_count": 0,
    "is_privacy_protected": false
  },
  "abuse_contact": {
    "email": "[email protected]",
    "phone": "+1.5555550100"
  },
  "registry_domain_id": "2336799_DOMAIN_COM-VRSN",
  "registrar_whois_server": "whois.registrar.example.net",
  "raw_whois": "Domain Name: EXAMPLE.COM\nRegistry Domain ID: 2336799_DOMAIN_COM-VRSN\nRegistrar WHOIS Server: whois.registrar.example.net\nCreation Date: 2019-03-11T14:22:08Z\n...",
  "nameserver_ips": [
    {
      "name": "ns1.example.net",
      "ipv4": "192.0.2.53",
      "ipv6": null
    }
  ],
  "edge_summary": {
    "relay_configured": true,
    "data_sources": [
      "rdap",
      "whois"
    ],
    "authoritative_source": "whois",
    "relay_whois_used": true,
    "raw_whois_available": true,
    "parse_error_count": 0,
    "registered": true,
    "available": false,
    "registration_age_days": 2769,
    "days_until_expiry": 153,
    "expires_within_30_days": false,
    "transfer_locked": true,
    "privacy_protected": false,
    "dnssec": false,
    "nameserver_count": 2,
    "contact_roles_available": [],
    "abuse_contact_available": true,
    "registrar_whois_server": "whois.registrar.example.net"
  },
  "meta": {
    "served_by": "pop=MAD country=ES",
    "data_sources": [
      "rdap",
      "whois"
    ],
    "note": "Contact information may be redacted due to privacy regulations (GDPR)"
  }
}

Codes de statut HTTP

  • 200 OK
  • 400 Requête incorrecte
  • 401 Non autorisé
  • 402 Paiement requis
  • 429 Trop de requêtes
  • 502 Mauvaise passerelle