도메인 API - 도메인 등록 API - ICANN 리셀러 API - 화이트 라벨 도메인 서비스

NiceNIC 도메인 API v2로 구축 시작하기

API 액세스는 모든 활성 NiceNIC 사용자에게 무료입니다. 리셀러 업그레이드가 필요하지 않습니다. API 자격 증명을 구성하고 안전한 테스트 요청을 수행한 다음 애플리케이션에 필요한 도메인, DNS, 결제, 규정 준수 또는 WHMCS 워크플로를 추가하세요.

WHOIS 개인정보 보호

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

Content-Type application/json
카테고리 domain
action set_whois_privacy

요청 매개변수

매개변수 이름 유형 설명 예시
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 Integer Registrant Organization. 0 means Hide and 1 means Show. 0
whois_privacy.name Integer Registrant Name. 0 means Hide and 1 means Show. 0
whois_privacy.address Integer Registrant Address. 0 means Hide and 1 means Show. 0
whois_privacy.phone Integer Registrant Phone. 0 means Hide and 1 means Show. 1
whois_privacy.fax Integer Registrant Fax. 0 means Hide and 1 means Show. 0
whois_privacy.email Integer Registrant Email. 0 means Hide and 1 means Show. 0

응답 매개변수

매개변수 이름 유형 설명
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 Integer Registrant Organization. 0 means Hide and 1 means Show.
whois_privacy.name Integer Registrant Name. 0 means Hide and 1 means Show.
whois_privacy.address Integer Registrant Address. 0 means Hide and 1 means Show.
whois_privacy.phone Integer Registrant Phone. 0 means Hide and 1 means Show.
whois_privacy.fax Integer Registrant Fax. 0 means Hide and 1 means Show.
whois_privacy.email Integer Registrant Email. 0 means Hide and 1 means Show.

요청 예시

                                    
{
    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"
}

반환 결과

0 OK 성공 응답
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "domain" : "example.com",
        "whois_privacy" : {
            "organization" : 0,
            "name" : 0,
            "address" : 0,
            "phone" : 1,
            "email" : 0
        }        
    }
}
400 잘못된 요청
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. All rights reserved.