Aller au contenu
GET /v1/list

List TLDs (optionally by type)

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/tld-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/tld-api/v1/list" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tld-api/v1/list", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tld-api/v1/list");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/tld-api/v1/list",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "tlds": [
            {
                "idn": false,
                "tld": "ac",
                "type": "cctld",
                "country": "Ascension Island",
                "unicode": "ac"
            },
            {
                "idn": false,
                "tld": "ad",
                "type": "cctld",
                "country": "Andorra",
                "unicode": "ad"
            },
            {
                "idn": false,
                "tld": "ae",
                "type": "cctld",
                "country": "United Arab Emirates",
                "unicode": "ae"
            },
            {
                "idn": false,
                "tld": "af",
                "type": "cctld",
                "country": "Afghanistan",
                "unicode": "af"
            },
            {
                "idn": false,
                "tld": "ag",
                "type": "cctld",
                "country": "Antigua & Barbuda",
                "unicode": "ag"
            },
            {
                "idn": false,
                "tld": "ai",
                "type": "cctld",
                "country": "Anguilla",
                "unicode": "ai"
            },
            {
                "idn": false,
                "tld": "al",
                "type": "cctld",
                "country": "Albania",
                "unicode": "al"
            },
            {
                "idn": false,
                "tld": "am",
                "type": "cctld",
                "country": "Armenia",
                "unicode": "am"
            },
            {
                "idn": false,
                "tld": "ao",
                "type": "cctld",
                "country": "Angola",
                "unicode": "ao"
            },
            {
                "idn": false,
                "tld": "aq",
                "type": "cctld",
                "country": "Antarctica",
                "unicode": "aq"
            },
            {
                "idn": false,
                "tld": "ar",
                "type": "cctld",
                "country": "Argentina",
                "unicode": "ar"
            },
            {
                "idn": false,
                "tld": "as",
                "type": "cctld",
                "country": "American Samoa",
                "unicode": "as"
            },
            {
                "idn": false,
                "tld": "at",
                "type": "cctld",
                "country": "Austria",
                "unicode": "at"
            },
            {
                "idn": false,
                "tld": "au",
                "type": "cctld",
                "country": "Australia",
                "unicode": "au"
            },
            {
                "idn": false,
                "tld": "aw",
                "type": "cctld",
                "country": "Aruba",
                "unicode": "aw"
            },
            {
                "idn": false,
         
…