API de domaine - API d'enregistrement de domaine - API de bureau d'enregistrement ICANN - Service de domaine en marque blanche

Commencer à développer avec l’API de domaine v2 NiceNIC

L'accès à l'API est gratuit pour chaque utilisateur actif de NiceNIC. Aucune mise à niveau vers un compte revendeur n'est requise. Configurez vos identifiants d'API, effectuez une requête de test sécurisée, puis ajoutez les flux de travail de domaine, DNS, facturation, conformité ou WHMCS dont votre application a besoin.

Obtenir les détails du domaine

This operation allows you to get information about a domain name.

Content-Type application/json
category domain
action info

Request parameters

Parameter Name Type Describe Example
domain String (3-60) Domain name example.com

Response parameters

Parameter Name Type Describe
domain String Domain name
created_date Date Domain registration time
expired_date Date Domain expiration date
nameservers String[] The name servers that a domain name uses for delegation
organization String (1-255) Organization / Company name
name String (1-16) Registrant name
country String (1-255) Country
state String (1-255) Province / State
city String (1-255) City acronym
address String (1-255) Mailing address
postcode Integer (6) Post code / Zip code
phone "." to separate numbers (30) +Country code.district code and phone number
fax "." to separate numbers (30) +Country code.district code and fax numbe
email Email address Email address

Request Example

                                    
{
    curl https://api.nicenic.net/v2/?category=domain&action=info&domain={domain} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Return result

0 OK Successful response
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "domain" : "example.com",
        "created_date":"2025-01-31",
        "expired_date":"2026-01-01",
        "nameservers" : [
            "ns1.test.com",
            "ns2.test.com",
        ],
        "contacts" : [
            "registrant" : [
                "organization" : "Example Company",
                "name" : "Example User",
                "country" : "HK",
                "state" : "HK,
                "city" : "HK",
                "address" : "Hong Kong",
                "postcode" : "100000",
                "phone" : "+852.XXXXXXXX",
                "fax" : "+852.XXXXXXXX",
                "email" : "[email protected]",
            ]
        ]        
    }
}
400 Bad Request
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Tous droits réservés.