API per domini - API per la registrazione di domini - API registrar ICANN - Servizio domini white label

Inizia a creare con NiceNIC Domain API v2

L'accesso API è gratuito per ogni utente NiceNIC attivo. Non è richiesto alcun upgrade rivenditore. Configura le tue credenziali API, effettua una richiesta di test sicura, poi aggiungi i flussi di lavoro per domini, DNS, fatturazione, conformità o WHMCS di cui la tua applicazione ha bisogno.

Privacy WHOIS

Show or hide individual registrant fields for a supported domain. Fields omitted from the request keep their saved settings.

Content-Type application/json
categoria domain
azione set_whois_privacy

Parametri della richiesta

Nome del parametro Tipo Descrizione Esempio
domain String Required. A supported domain managed by the authenticated account. example.com
whois_privacy Object Required. Use whois_privacy[field] for at least one of the fields below. whois_privacy[email]=0
whois_privacy.organization Intero Registrant Organization. 0 means Hide and 1 means Show. 0
whois_privacy.name Intero Registrant Name. 0 means Hide and 1 means Show. 0
whois_privacy.address Intero Registrant Address. 0 means Hide and 1 means Show. 0
whois_privacy.phone Intero Registrant Phone. 0 means Hide and 1 means Show. 1
whois_privacy.fax Intero Registrant Fax. 0 means Hide and 1 means Show. 0
whois_privacy.email Intero Registrant Email. 0 means Hide and 1 means Show. 0

Parametri di risposta

Nome del parametro Tipo Descrizione
domain String Domain name.
whois_privacy Object All saved registrant visibility settings. Each field uses 0 for Hide or 1 for Show. Unset fields are omitted.
whois_privacy.organization Intero Registrant Organization. 0 means Hide and 1 means Show.
whois_privacy.name Intero Registrant Name. 0 means Hide and 1 means Show.
whois_privacy.address Intero Registrant Address. 0 means Hide and 1 means Show.
whois_privacy.phone Intero Registrant Phone. 0 means Hide and 1 means Show.
whois_privacy.fax Intero Registrant Fax. 0 means Hide and 1 means Show.
whois_privacy.email Intero Registrant Email. 0 means Hide and 1 means Show.

Esempio di richiesta

                                    
{
    curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_whois_privacy&domain={domain}&whois_privacy[organization]=0&whois_privacy[name]=0&whois_privacy[address]=0&whois_privacy[phone]=1&whois_privacy[email]=0'
      -H "Authorization: username:api_secret"
      -H "Content-Type: application/json"
}

Risultato della risposta

0 OK Risposta riuscita
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "domain" : "example.com",
        "whois_privacy" : {
            "organization" : 0,
            "name" : 0,
            "address" : 0,
            "phone" : 1,
            "email" : 0
        }        
    }
}
400 Richiesta non valida
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Tutti i diritti riservati.