Domain-API – Domain-Registrierungs-API – ICANN-Registrar-API – White-Label-Domain-Dienst

Mit NiceNIC Domain API v2 loslegen

Der API-Zugang ist für jeden aktiven NiceNIC-Benutzer kostenlos. Kein Reseller-Upgrade erforderlich. Konfigurieren Sie Ihre API-Anmeldedaten, führen Sie eine sichere Testanfrage durch und fügen Sie dann die Domänen-, DNS-, Abrechnungs-, Compliance- oder WHMCS-Workflows hinzu, die Ihre Anwendung benötigt.

DNS-Eintrag erstellen

Add a new DNS record for a specific domain

Content-Type application/json
category dns
action create_record

Request parameters

Parameter Name Type Describe Example
domain String (3-60) Domain name example.com
type String DNS record type (A, MX, CNAME, TXT, etc.) A
host String Host name for the DNS record www
value String DNS record value 192.168.1.1
pri Integer (Optional) Priority value (used for MX and SRV records) 20

Response parameters

Parameter Name Type Describe
id Integer DNS record ID
type String DNS record type (A, MX, CNAME, TXT, etc.)
host String Host name
value String DNS record value
ttl Integer Time to live in seconds
pri Integer Priority (for MX records)

Request Example

                                    
{
    curl https://api.nicenic.net/v2/?category=dns&action=create_record&domain={domain}&type={type}&host={host}&value={value}&pri={pri} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Return result

0 OK Successful response
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "id": 12345,
            "type": "A",
            "host": "@",
            "value": "192.168.1.1",
            "ttl": 3600,
            "pri": 0
        }        
    }
}
400 Bad Request
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Alle Rechte vorbehalten.