Domain API - Pendaftaran Domain API - ICANN Pendaftar API - White Label Domain Service

Start Building with NiceNIC Domain API v2

API access is free fatau every active NiceNIC user. Tidak reseller upgrade is required. Configure anda API credentials, make a safe test request, then add the domain, DNS, billing, compliance atau WHMCS wataukflows anda application needs.

Cipta Penamaran Nama Anak

Daftar a new DNS server fatau use with a specific domain

Content-Type application/json
kategori nameserverhost
tindakan add

Parameter permintaan

Nama parameter Jenis Huraikan Contoh
domain Rentetan Nama domain example.com
dns Rentetan (3-30) Nama pelayan DNS (mesti sepadan dengan domain) ns1.example.com
ip Rentetan Alamat IP pelayan DNS 192.168.1.1

Parameter respons

Nama parameter Jenis Huraikan
dns Rentetan Nama pelayan DNS
ip Rentetan Alamat IP pelayan DNS

Contoh Permintaan

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

Hasil Pulangan

0 OK Respons berjaya
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "dns": "ns1.example.com",
            "ip": "192.168.1.1"
        }        
    }
}
400 Permintaan tidak sah
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Hak Cipta © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Hak Cipta Terpelihara. · U.S. Affiliate: NICENIC LLC